Struct openconfiguration::AttachPoint
source · pub struct AttachPoint {
pub kind: AttachPointType,
pub key: String,
pub foreign: String,
pub tags: Option<Vec<String>>,
pub point: Vector3,
pub rotation: Quaternion,
pub enabled: bool,
pub representation: AttachPointRepresentation,
}Expand description
An attachment point for planning support and placement of children. All attributes are mandatory, except for Tags.
Two attachment points match:
- if Key and Foreign match, if needed with wildcards in the Foreign key,
- there’s at least one matching Tag on both sides, in case at least one has tags,
- the Types match to each other, such as L - R
- both of them are enabled
- the position offset in global space is less than 0.2 [m]
- the rotation offset in global space is less than 45 deg
IGXC Compatibility: the Rotation is changed to Quaternion, in IGXC it was Euler-based.
Fields
kind: AttachPointTypeThe type of the point
key: StringOwn key of the point. Should match the counterpart’s foreign key.
foreign: StringAllowed keys of counterpart’s points. May contain /// and ? characters.
An optional list of ids or tags to be used for attach-point matching. If one point defines tags, the other point matches–if it already matches–and additionally provides at least one compatible tag. Two tags are compatible if there case-normalized versions are equal.
point: Vector3The position of the point, relative to the Product.
rotation: QuaternionThe orientation of the point, relative to the Product.
enabled: boolAttribute controls if the point is enabled. If disabled, it should be invisible too.
representation: AttachPointRepresentationThe visual representation of the attachment point.
Trait Implementations
sourceimpl Clone for AttachPoint
impl Clone for AttachPoint
sourcefn clone(&self) -> AttachPoint
fn clone(&self) -> AttachPoint
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more