FacetFaceData Class
Data for a face in a polyface containing facets. This is built up cooperatively by the PolyfaceBuilder and its callers, and stored as a FaceData array in PolyfaceData.
Methods
Name | Description | |
---|---|---|
clone(result?: FacetFaceData): FacetFaceData | Create a deep copy of this FacetFaceData object. | |
convertParamToDistance(param: Point2d, result?: Point2d): Point2d | Return distance-based parameter from stored parameter value. | |
convertParamToNormalized(param: Point2d, result?: Point2d): Point2d | Return normalized (0-1) parameter from stored parameter value. | |
convertParamXYToDistance(x: number, y: number, result?: Point2d): Point2d | Return distance-based parameter from stored parameter value. | |
convertParamXYToNormalized(x: number, y: number, result?: Point2d): Point2d | Return normalized (0-1) parameter from stored parameter value. | |
scaleDistances(distanceScale: number): void | Scale distance parameters. | |
setNull(): void | Restore this FacetFaceData to its null constructor state. | |
setParamDistanceRangeFromNewFaceData(polyface: IndexedPolyface, facetStart: number, facetEnd: number): boolean | Sets the param and paramDistance range of this FacetFaceData based on the newly terminated facets that make it up. | |
createNull(): FacetFaceData Static | Create a FacetFaceData with null ranges. |
Properties
Name | Type | Description | |
---|---|---|---|
paramDistanceRange Accessor ReadOnly | Range2d | (property accessor) Return a reference to the distance-scaled parameter range. | |
paramRange Accessor ReadOnly | Range2d | (property accessor) Return a reference to the parameter range. |
Defined in
- polyface/FacetFaceData.ts Line 21
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.