SketchControlPointSpline.breakCurve Method

Parent Object: SketchControlPointSpline
Defined in namespace "adsk::fusion" and the header file is <Fusion/Sketch/SketchControlPointSpline.h>

Description

Breaks a curve into two or three pieces by finding intersections of this curve with all other curves in the sketch and splitting this curve at the nearest intersections to a specified point on the curve.

Syntax

"sketchControlPointSpline_var" is a variable referencing a SketchControlPointSpline object.
# Uses no optional arguments.
returnValue = sketchControlPointSpline_var.breakCurve(segmentPoint)

# Uses optional arguments.
returnValue = sketchControlPointSpline_var.breakCurve(segmentPoint, createConstraints)
"sketchControlPointSpline_var" is a variable referencing a SketchControlPointSpline object.

#include <Fusion/Sketch/SketchControlPointSpline.h>

// Uses no optional arguments.
returnValue = sketchControlPointSpline_var->breakCurve(segmentPoint);

// Uses optional arguments.
returnValue = sketchControlPointSpline_var->breakCurve(segmentPoint, createConstraints);

Return Value

Type Description
ObjectCollection All of the curves resulting from the break are returned in an ObjectCollection. In the case where no intersections are found and as a result the curve is not broken, an empty ObjectCollection is returned.

Parameters

Name Type Description
segmentPoint Point3D A point that specifies the segment of the curve that is to be split from the rest of the curve. The nearest intersection(s) to this point define the break location(s).
createConstraints boolean Optional argument that specifies if constraints should be created between the new curve segments. A value of true indicates constraints will be created.

This is an optional argument whose default value is True.

Version

Introduced in version July 2022