SketchLine.intersections Method

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

Description

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

Syntax

"sketchLine_var" is a variable referencing a SketchLine object.

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

#include <Fusion/Sketch/SketchLine.h

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

Return Value

Type Description
boolean Returns true if intersections are found

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