The following methods apply to all spline shape objects.
Properties
None
Methods
applyOffset <spline_shape_node> <offset_float>
For each spline in the shape, makes a copy of the spline, offset on all sides to the distance in units specified by offset_float
. If a spline is open, the resulting spline and its outline will make a single closed spline. Negative offset_float
values create an offset spline to the left of the spline (as the spline is drawn from its start to its finish). The spline_shape_node
is converted to a SplineShape (Editable Spline) if it is not already a SplineShape.
measureOffset <spline_shape_node> <point3>
Returns a Float value whose absolute value is the distance from point3
to the closest point on a spline in the shape. The sign of the value is positive if the point3
position is to the left of the spline (as the spline is drawn from its start to its finish). The value returned by this method can usually be used as the offset_float
parameter in applyOffset()
to have an offset spline pass through the point3
position. If the closest point on a spline in the shape is an endpoint of an open spline, the offset spline will not pass through the point3
position.
trimextend <fixed_node_array> <alterable_node_array> \
[ trim: <boolean> ] [ extend: <boolean>] [ infinite: <boolean>] \
[ project: view|#3D|#grid]