AbstractBimCoreApi API.
Plane that this point lies on.
whether point is virtual or not.
Protected Readonly_BimCoreApi API.
Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_When true then DynamicPolygon.onPointTrackableScreen will trigger for this instance. Otherwise it will not
ReadonlyplanePlane that this point lies on.
Protected Static Readonly_Check if this point can be deleted or not.
X coordinate of point in local space.
Y coordinate of point in local space.
Z coordinate of point in local space.
X coordinate of point in world space.
Set the X coordinate of point in world space.
Y coordinate of point in world space.
Set the Y coordinate of point in world space.
Z coordinate of point in world space.
Set the Z coordinate of point in world space.
Same as calling DynamicPolygon.apply.
Deletes this point from the parent DynamicPolygon.
It is possible to use isDeletable to check if point can be deleted beforehand.
ProtectedinsertAttempt to move a point to a new location on Plane.
To find the location, a ray is shot from camera through canvasCoordinate
and then an intersection test is performed. If the ray intersects Plane, the point is moved to the coordinates
of the intersection. Otherwise nothing happens.
It is also not possible to move a point if it results in a complex polygon.
The point is assigned the same x,y,z values
as the coordinate where the ray intersects the plane.
ProtectedmoveEnables iteration of all points in the polygon.
Optionalpredicate: (p: DynamicPolygonPoint) => booleanOptional predicate. If specified only points where the predicate returns true will be returned.
If true then polygon point are visited in backwards direction. Default is false.
generator.
ProtectedrecalculateProtectedrecalculateProtectedremoveSet coordinates in local space.
X coordinate in local space.
Y coordinate in local space.
Z coordinate in local space.
This method has two purposes.
Check if this point is virtual or not (if v is undefined). This is very useful in a UI
where a different visualization for a 'virtual drag point' and a 'real drag point' may be required..
Convert this point to/from virtual by specifying v.
Optionalv: booleanOptional. If not specified function only returns current state. If specified then point is converted to either a virtual point (v = true) or
a non virtual point (v = false).
If v was not specified then true if point is virtual, otherwise false. If v was specified
it returns true if point was successfully converted. Otherwise false. A point cannot be converted from
non virtual to virtual if there are 3 or less non virtual points in the polygon.
StaticIsPredicate to check if a point is virtual or not.
Point to check
true if point is not virtual, otherwise false.
Represents a point in a DynamicPolygon. Inherit from this class if additional functionality is required.