intersectSegment Method
Compute the intersection of a line (parameterized as a line segment) with the plane of this triangle.
intersectSegment(point0: Point3d, point1: Point3d, result?: TriangleLocationDetail): TriangleLocationDetail
see BarycentricTriangle.intersectRay3d
| Parameter | Type | Description |
|---|---|---|
| point0 | Point3d | start point of segment on line to intersect |
| point1 | Point3d | end point of segment on line to intersect |
| result | TriangleLocationDetail | optional pre-allocated object to fill and return |
Returns - TriangleLocationDetail
details d of the line-plane intersection d.point:
d.isValidreturns true if and only if the line intersects the plane.d.classifycan be used to determine where the intersection lies with respect to the triangle.d.ais the intersection parameter. Ifd.ais in [0,1], the segment intersects the plane of the triangle.
Defined in
- geometry3d/BarycentricTriangle.ts Line 432
Last Updated: 29 September, 2023