ConvexFacetLocationDetail Class

Implementation of FacetLocationDetail for a convex facet.

  • If edgeCount is 3, TriangularFacetLocationDetail is more efficient.

Extends

Methods

Name Description
clone(): ConvexFacetLocationDetail Clone the instance  
copyContentsFrom(other: ConvexFacetLocationDetail): void Set the instance contents from the other detail.  
getBarycentricCoordinates(facetVertices?: IndexedXYZCollection, distanceTolerance: number = Geometry.smallMetricDistance): undefined | number[] Get the barycentric coordinates of this location, if they have been computed.  
getColor(facetColors?: number[], facetVertices?: IndexedXYZCollection, distanceTolerance: number = Geometry.smallMetricDistance): undefined | number Get color interpolated from facet data.  
getNormal(facetNormals?: IndexedXYZCollection, facetVertices?: IndexedXYZCollection, distanceTolerance: number = Geometry.smallMetricDistance): undefined | Vector3d Get normal interpolated from facet data.  
getParam(facetParams?: IndexedXYCollection, facetVertices?: IndexedXYZCollection, distanceTolerance: number = Geometry.smallMetricDistance): undefined | Point2d Get uv parameter interpolated from facet data.  
invalidate(deep: boolean = true): void Invalidate this detail.  
create(facetIndex: number, edgeCount: number, detail?: PolygonLocationDetail, result?: ConvexFacetLocationDetail): ConvexFacetLocationDetail Static Create a detail.  

Properties

Name Type Description
isConvex Accessor ReadOnly boolean Whether the facet is convex.  

Inherited properties

Name Type Inherited from Description
_detail Protected PolygonLocationDetail NonConvexFacetLocationDetail  
a Accessor ReadOnly number NonConvexFacetLocationDetail Get the application-specific number.
classify Accessor ReadOnly PolygonLocation NonConvexFacetLocationDetail Get the code that classifies the location of the point with respect to the facet.
closestEdge Accessor ReadOnly { edgeParam: number, startVertexIndex: number } NonConvexFacetLocationDetail Get the projection of the point onto the closest facet edge.
edgeCount Accessor ReadOnly number NonConvexFacetLocationDetail Get the edge count of this facet.
facetIndex Accessor ReadOnly number NonConvexFacetLocationDetail Get the facet index.
isInsideOrOn Accessor ReadOnly boolean NonConvexFacetLocationDetail Whether the point is inside or on the polygon.
isValid Accessor ReadOnly boolean NonConvexFacetLocationDetail Whether this instance specifies a valid location.
point Accessor ReadOnly Point3d NonConvexFacetLocationDetail Get the world coordinates of the point.

Defined in

Last Updated: 30 November, 2023