Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Combined Transformations | Geometric Transformations
Geometric Modelling with Python
Abschnitt 2. Kapitel 8
single

single

Challenge: Combined Transformations

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

Practice combining geometric transformations on a quadrilateral and visualizing the result. You will use translation, rotation, and scaling matrices as a sequence to transform a shape and then plot both the original and transformed quadrilaterals.

  • Convert the list of quadrilateral points to a NumPy array.
  • Add a column of ones to convert to homogeneous coordinates.
  • Initialize the combined transformation matrix as the identity matrix.
  • Multiply the transformation matrices in the given sequence.
  • Apply the combined transformation matrix to all points.
  • Convert back from homogeneous coordinates to regular 2D coordinates.
  • Prepare the original quadrilateral coordinates for plotting.
  • Prepare the transformed quadrilateral coordinates for plotting, also closing the shape.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 8
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt