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
- 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
- Within the first 4 points
rectangleEdgeTransform(data: AnyCurve | Point3d[] | IndexedXYZCollection, requireClosurePoint: boolean = true): Transform | undefined
Parameter | Type | Description |
---|---|---|
data | AnyCurve | Point3d[] | IndexedXYZCollection | |
requireClosurePoint | boolean |
Defined in
Last Updated: 05 June, 2020