SketchCurve.intersections Method

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

Description

Get the curves that intersect this curve along with the intersection points (Point3D)

Syntax

"sketchCurve_var" is a variable referencing a SketchCurve object.

(returnValue, intersectingCurves, intersectionPoints) = sketchCurve_var.intersections(sketchCurves)

#include <Fusion/Sketch/SketchCurve.h

// Declare the output arguments.
Ptr<ObjectCollection> sketchCurves;
Ptr<ObjectCollection> intersectingCurves;
Ptr<ObjectCollection> intersectionPoints;
boolean returnValue = sketchCurve_var->intersections(sketchCurves, intersectingCurves, intersectionPoints);

Return Value

Type Description
boolean Returns true if the method was successful. It can be successful regardless of whether intersections were found or not.

Parameters

Name Type Description
sketchCurves ObjectCollection A collection of curves to attempt to find intersections with. Set the value of this parameter to null to use all curves in the sketch for the calculation.
intersectingCurves ObjectCollection A collection of the actual intersecting curves
intersectionPoints ObjectCollection A collection of intersection points (Point3D) Item numbers in this collection correspond to the item numbers in the intersectingCurves collection.

Version

Introduced in version August 2014