PC-DMIS 2021.2 Object Library
CADIntersectLine Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
linePointX
linePointY
linePointZ
lineVectorI
lineVectorJ
lineVectorK
geometryFilterFlags
vectorOption
surfaceBoundaryOption
lineIntersectFlags
pIntersectPointX
pIntersectPointY
pIntersectPointZ
pIntersectVectorI
pIntersectVectorJ
pIntersectVectorK
pCadHandle
PCDLRN ActiveX DLL > CadModel Object : CADIntersectLine Method

Glossary Item Box

Description

Intersect the CAD model with a line. For multiple intersection points, the point returned depends on the line intersection flags. Geometry that is on a hidden level or a hidden assembly component is not checked.

Syntax

Visual Basic
Public Function CADIntersectLine( _
   ByVal linePointX As Double, _
   ByVal linePointY As Double, _
   ByVal linePointZ As Double, _
   ByVal lineVectorI As Double, _
   ByVal lineVectorJ As Double, _
   ByVal lineVectorK As Double, _
   ByVal geometryFilterFlags As ENUM_CAD_GEOMETRY_FILTER_FLAGS, _
   ByVal vectorOption As ENUM_CAD_VECTOR_OPTION, _
   ByVal surfaceBoundaryOption As ENUM_CAD_SURFACE_BOUNDARY_OPTION, _
   ByVal lineIntersectFlags As ENUM_CAD_LINE_INTERSECT_FLAGS, _
   ByRef pIntersectPointX As Double, _
   ByRef pIntersectPointY As Double, _
   ByRef pIntersectPointZ As Double, _
   ByRef pIntersectVectorI As Double, _
   ByRef pIntersectVectorJ As Double, _
   ByRef pIntersectVectorK As Double, _
   ByRef pCadHandle As CadHandle _
) As ENUM_CAD_RESULT

Parameters

linePointX
linePointY
linePointZ
lineVectorI
lineVectorJ
lineVectorK
geometryFilterFlags
ValueDescription
CAD_ALL_GEOMETRYTest all geometry
CAD_CURVE_GEOMETRYOnly test curve geometry
CAD_POINT_GEOMETRYOnly test point geometry
CAD_SURFACE_GEOMETRYOnly test surface geometry
vectorOption
ValueDescription
CAD_RETURN_NORMAL_TO_CURVESReturn the normal to curves or, for surface boundaries, the surface normal. The curve normal is defined as the curve's second derivative vector negated.
CAD_RETURN_TANGENT_TO_CURVESReturn the tangent to curves (including boundaries). This is the default option.
surfaceBoundaryOption
ValueDescription
CAD_SURFACE_BOUNDARIESFor surfaces, constrain the result to the surface boundaries (inner or outer). Does not affect curves.
CAD_SURFACE_DEFAULTFor surfaces, constrain the result to the surface itself, within the surface boundaries. Does not affect curves. This is the default option.
CAD_SURFACE_OUTER_BOUNDARIESFor surfaces, constrain the result to the outer surface boundary. Does not affect curves.
lineIntersectFlags
ValueDescription
CAD_INTERSECT_CLOSEST_ORIGINReturn intersection closest to the line point. By default, the intersection at the maximum line parameter is returned.
CAD_POSITIVE_PARAMETER_INTERSECTIONS_ONLYOnly return intersections at positive line parameters (treat the line as a ray).
pIntersectPointX
pIntersectPointY
pIntersectPointZ
pIntersectVectorI
pIntersectVectorJ
pIntersectVectorK
pCadHandle

See Also

Copyright © 2021. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.