Use model.geom(<tag>).create(<ftag>,"BezierPolygon") to create a Bézier polygon or a line segment. The following properties are available
If type is
open or
closed, a curve consisting of line, quadratic, or cubic rational Bézier segments is constructed. If
type is
solid, the solid enclosed by such a closed polygon is constructed. If
type is
closed or
solid, but the first and last control points are different, an extra linear segment is added to close the curve.
The degree of the nth segment is
degree[n], and it must be 1 (linear), 2 (quadratic), or 3 (cubic). The
nth segment has
degree[n]+1 control points and weights. The weights are stored consecutively in the array
w, which has length
degree[0]+...+degree[N-1]+N, where
N is the number of segments. The
ith coordinates of the control points are stored consecutively in the array
p[i]. Adjacent segments share the common control point, which means that
p[i] has length
degree[0]+...+degree[N-1]+1.