Previous
TRIMMERs
nurbs-loop
Creates a closed loop of nurbs curves which may be used to trim
a surface.
The orientation of the loop decides the type of trimming. In
particular if the the orientation is clockwise the loop will be
treated as the boundary of the surface, otherwise it will be
treated as a hole.
- string "tolerance", float tolerance
Specify the maximum size for the segments that are used to
approximate the curve.
The default value is 0.001.
- string "curves", int curves
Specify the number of curves that compose the loop.
- string "size", intarray size
Specify the size (i.e. the number of control points) of each
nurbs curve.
The size of this array must be equal to the number of curves.
- string "degree", intarray degree
Specify the degree of each nurbs curve.
The size of this array must be equal to the number of curves.
- string "points", vector3array points
Specify the control points for all the nurbs segments in the loop.
Points are specified in homogeneous coordinates.
The size of this array must be equal to the sum of the sizes of the
individual curves.
- string "knots", floatarray knots
Specify the knot vectors for all the nurbs segments in the loop.
The size of this array must be equal to the sum of the sizes of the
knot vectors of the individual curves (the size of the knot
vector for a nurbs curve of degree m with n control points
is: n + m + 1).
- string "min", floatarray min
Specify the starting point for each nurbs segment in the
loop.
The size of this array must be equal to the number of curves.
- string "max", floatarray max
Specify the end point for each nurbs segment in the
loop.
The size of this array must be equal to the number of curves.
nurbs-loop-set
Creates a hierarchical set of nurbs loops.
Loops may be detached or nested, so as to produce different
portions of a surface, possibly with holes.
Loops should never intersect.
- string "loops", intarray loops
Specify the loops in the set.
- string "type", string type
Specify the actual rule that is used to compose the loops and
to determine if a point is inside or outside of the set.
Valid types are:
- "oriented" : use the orientation of each loop to decide
wether it is a region or a hole. If a loop is contained
into another loop their orientation should be opposite. If
two loops are in the same portion of the surface (i.e. they
are contained into a same loop, or they are not contained into
anything else) they should possess the same orientation.
- "nested" : use the physical geometry of the loops to
decide wether they are holes or regions. First level
loops, which are not contained into other loops, always
determine a region. Second level loops always determine a
hole, and so on, alternating.