rectangleEdgeTransform MethodStatic
Test if data
is one of several forms of a rectangle.
- If so, return transform with
- origin at one corner
- x and y columns extend along two adjacent sides
- z column is unit normal.
- The recognized data forms for simple analysis of points are:
- LineString
- Loop containing rectangle content
- Path containing rectangle content
- Array of Point3d[]
- IndexedXYZCollection
- Points are considered a rectangle if
- Within the first 4 points
- vectors from 0 to 1 and 0 to 3 are perpendicular and have a non-zero cross product
- vectors from 0 to 3 and 1 to 2 are the same
- Within the first 4 points
- optionally require a 5th point that closes back to point0
- If there are other than the basic number of points (4 or 5) the data
rectangleEdgeTransform(data: Point3d[] | IndexedXYZCollection | AnyCurve, requireClosurePoint: boolean = true): undefined | Transform
Parameter | Type | Description |
---|---|---|
data | Point3d[] | IndexedXYZCollection | AnyCurve | |
requireClosurePoint | boolean |
Returns - undefined | Transform
Defined in
- curve/RegionOps.ts Line 505
Last Updated: 20 June, 2023