snapLocationToEdge Method
Adjust the location to the closest edge of the triangle if within either given tolerance.
snapLocationToEdge(location: TriangleLocationDetail, distanceTolerance: numberGeometry.smallMetricDistance, parameterTolerance: numberGeometry.smallFloatingPoint): boolean
@returns whether the location was adjusted
Parameter | Type | Description |
---|---|---|
location | TriangleLocationDetail | details of a point in the plane of the triangle (note that location.local andlocation.world possibly updated to lie on the triangle closest edge) |
distanceTolerance | number | absolute distance tolerance (or zero to ignore) |
parameterTolerance | number | barycentric coordinate fractional tolerance (or zero to ignore) |
Returns - boolean
whether the location was adjusted
Defined in
- geometry3d/BarycentricTriangle.ts Line 575
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.