Project 2c © Jorg Peters

Points: 30

hints.

Task 1: Cage-based deformation

Points: 10

  • Place the N points Pi into the four triangles of a quincunx pattern Qj where Q0 is the central point of the square, initially at (0,0).
  • Make all 5 points of Q movable.
  • Determine the barycentric coordinates of each point with respect to the four triangles and only retain the triple of positive ones (ie the ones with respect to the triangle into which the point falls)
  • Move the central point Q0 and update the Pi by placing them at their barycentric coordinates with respect to the modified triangles.
  • Deform the original subdivision curve by moving Q0.

    Computer graphics demonstration showing a curve and control points in a dark blue window. A square with a cross, the quincunx pattern, encloses all points
    Figure 1. Reference image for Cage-based deformation
  • Task 2: 3D Picking and Dragging

    Points: 5

    When the Shift key is pressed on the keyboard, horizontal mouse motion moves B-spline control points Pi in the z-direction. This motion is not yet visible.

    Computer graphics demonstration showing a curve and control points in a dark blue window. A selected yellow control point is connected to nearby green control points; red marks appear along the curve.
    Figure 2. Reference image for 3D picking and dragging.

    Task 3: Double View

    Points: 10

    Two-view computer graphics display on a dark blue background. The upper view shows a figure-eight-like curve with control points; the lower view shows a side projection of the same curve and its control polygon.
    Figure 3. Reference image for the double-view display.

    Task 4

    Points: 5

    What to Submit