Angle Dimension
Below we will consider the object displaying an angle between two vectors.
Object
Common type of an angle dimension object (TypeScript):
export type C3DViewAngleDimension = {
type: C3DViewObjectTypes.AngleDimension // "AngleDimension"
uuid?: string
points: {
p1: C3DViewPoint
p2: C3DViewPoint
p3: C3DViewPoint
tp?: C3DViewPoint
}
placement?: C3DViewPlacement
options: C3DViewDimensionOptions
userData: C3DUserData
}
The properties type, uuid, and userData are described here. The property options is described here. Additionally for this PMI object:
type can be
C3DViewObjectTypes.AngleDimension
or a string"AngleDimension"
;userData object is created in the process when returned in the
onCreate
event callback.
points is a group of points to build an object:
p1 is a starting object point on geometry;
p2 is a center object point on geometry;
p3 is an ending object point on geometry;
tp is a dimension text position.
placement is a plane to orientate geometry (optional).
New in version 1.6.4: Made the placement property optional.