IBMCurve2DMorph
IBMCurve2DType.mp4
Description
A set of Curve2D shapes created using type field. The type field lists how the points should be consumed and are:
- MoveTo - move from current point to this point.
- LineTo - draws a line from the current point to this point.
- CurveTo - draws a bezier curve using the current point as the first endpoint, then two points as
controls and the third as the other endpoint.
- NextCurveTo - draws bezier curve from the current point as the first endpoint, then one point as one of
the controls, the other control point being computed from the previous curve, and a second point for the other
endpoint.
Each of the shapes has its Material2D filled field alternated between false and true so that the shapes
alternate between lines and filled geometries. Shapes are filled by closing each segment and using the
even-odd winding rule to define the interior. Holes may be created as a result of the fill rule.
The upper six Curve2D shapes are all done with MoveTo and LineTo. The next six are done with MoveTo and
CurveTo. The final three using a mix of all types.
Screenshot
Snapshot taken when filled="false".
Second snapshot taken when filled="true".
Back to main index