Intersect the CAD model with a plane. For multiple intersection points, the point closest to the input point is returned. For surfaces, only the boundaries are intersected. Geometry that is on a hidden level or a hidden assembly component is not checked.
Visual Basic |
---|
Public Function CADIntersectPlane( _ ByVal planePointX As Double, _ ByVal planePointY As Double, _ ByVal planePointZ As Double, _ ByVal PlaneVectorI As Double, _ ByVal PlaneVectorJ As Double, _ ByVal PlaneVectorK 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, _ 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 |
- planePointX
- planePointY
- planePointZ
- PlaneVectorI
- PlaneVectorJ
- PlaneVectorK
- geometryFilterFlags
Value Description CAD_ALL_GEOMETRY Test all geometry CAD_CURVE_GEOMETRY Only test curve geometry CAD_POINT_GEOMETRY Only test point geometry CAD_SURFACE_GEOMETRY Only test surface geometry - vectorOption
Value Description CAD_RETURN_NORMAL_TO_CURVES Return 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_CURVES Return the tangent to curves (including boundaries). This is the default option. - surfaceBoundaryOption
Value Description CAD_SURFACE_BOUNDARIES For surfaces, constrain the result to the surface boundaries (inner or outer). Does not affect curves. CAD_SURFACE_DEFAULT For surfaces, constrain the result to the surface itself, within the surface boundaries. Does not affect curves. This is the default option. CAD_SURFACE_OUTER_BOUNDARIES For surfaces, constrain the result to the outer surface boundary. Does not affect curves. - pIntersectPointX
- pIntersectPointY
- pIntersectPointZ
- pIntersectVectorI
- pIntersectVectorJ
- pIntersectVectorK
- pCadHandle