sketch.segment.node.delete

Syntax

b := sketch.segment.node.delete(p)
b := sketch.segment.node.delete(sp,i)

Delete a node from the extrusion path. By default the segments connected to the node are deleted as well. When the continuous-path deletion mode is active (see sketch path continuous), a node connected to exactly two segments is instead removed by joining its two neighbors with a single straight segment.

The first node of the path (ID 1) cannot be deleted, as it corresponds to the construction view projection. An error is raised if this is attempted.

Returns:

b - true when the node was deleted

Arguments:

p - node pointer, or

sp - sketch set pointer and

i - index of a segment along the path; the node at the end of that segment is deleted. This form is kept for compatibility with older data files and is only meaningful for a contiguous linear path.