pub struct Entity {
pub entity_id: String,
pub name: String,
pub type: EntityType,
pub children: Vec<i32>,
pub parents: Vec<i32>,
}Expand description
An entity in the CAD model topology (solids, sheets, faces, edges, vertices).
Fields§
§entity_id: StringUnique entity id, e.g. A1_I2_B3_TE4 or B1_TE2
name: StringHuman-readable entity name, e.g. face_name@body_name
type: EntityTypeType of the entity
children: Vec<i32>Indices of the children of this entity in this list
parents: Vec<i32>Indices in this list of all entities this entity is a child of. Empty for top-level entities, i.e. solids and sheets. An entity can have several parents: an edge is usually shared by two faces, a vertex by several edges.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Entity
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more