intersectSegment MethodStatic
Compute the intersection of a line (parameterized as a line segment) with the plane of this polygon.
intersectSegment(polygon: IndexedXYZCollection | Point3d[], point0: Point3d, point1: Point3d, tolerance: number = Geometry.smallMetricDistance, result?: PolygonLocationDetail): PolygonLocationDetail
@returns details d of the line-plane intersection d.point:
d.isValid()returns true if and only if the line intersects the plane.d.codeindicates where the intersection lies with respect to the polygon.d.ais the segment intersection parameter. Ifd.ais in [0,1], the segment intersects the plane of the polygon.d.edgeIndexandd.edgeParamspecify the location of the closest point on the polygon to the intersection, withindistTol.
@see intersectRay3d
| Parameter | Type | Description |
|---|---|---|
| polygon | IndexedXYZCollection | Point3d[] | points of the polygon, closure point optional |
| point0 | Point3d | start point of segment on line to intersect |
| point1 | Point3d | end point of segment on line to intersect |
| tolerance | number | optional distance tolerance to determine point-vertex and point-edge coincidence. |
| result | PolygonLocationDetail | optional pre-allocated object to fill and return |
Returns - PolygonLocationDetail
details d of the line-plane intersection d.point:
d.isValid()returns true if and only if the line intersects the plane.d.codeindicates where the intersection lies with respect to the polygon.d.ais the segment intersection parameter. Ifd.ais in [0,1], the segment intersects the plane of the polygon.d.edgeIndexandd.edgeParamspecify the location of the closest point on the polygon to the intersection, withindistTol.
Defined in
- geometry3d/PolygonOps.ts Line 1295
Last Updated: 29 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.