Line3D.intersectWithSurface Method

Parent Object: Line3D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Line3D.h>

Description

Intersect this line with a surface to get the intersection point(s).

Syntax

"line3D_var" is a variable referencing a Line3D object.
returnValue = line3D_var.intersectWithSurface(surface)
"line3D_var" is a variable referencing a Line3D object.

#include <Core/Geometry/Line3D.h>

returnValue = line3D_var->intersectWithSurface(surface);

Return Value

Type Description
ObjectCollection Returns a collection of the intersection points.

Parameters

Name Type Description
surface Surface The intersecting surface. The surface can be a Plane, Cone, Cylinder, EllipticalCone, EllipticalCylinder, Sphere, Torus or a NurbsSurface.

Version

Introduced in version August 2014