pub enum ObjectRole {
Model,
Modifier,
SupportBlocker,
SupportEnforcer,
NegativeVolume,
Other(String),
}Expand description
What a volume is for, as the metadata a package’s writer keeps names its role.
The core specification has no word for this. Tools that prepare a model
for printing write it in their own vocabulary: as metadata of an object
in the model (<metadata name="…">), or in configuration parts under
Metadata/ (*.config) that describe each object’s volumes by an
attribute or a key/value pair. Those are read by name, whatever
namespace prefix the name carries: a volume_type or subtype of
ModelPart/normal_part, ParameterModifier/modifier_part,
NegativeVolume/negative_part, SupportBlocker or SupportEnforcer
(case, underscores and hyphens aside); and the flags modifier,
infill_mesh and cutting_mesh (a modifier), anti_overhang_mesh (a
support blocker) and support_mesh (a support enforcer) set true.
Variants§
Model
Part of what is to be made.
Modifier
A volume that changes how the parts it overlaps are made, and is not made itself.
SupportBlocker
A volume where no support is to be generated.
SupportEnforcer
A volume where support is to be generated.
NegativeVolume
A volume cut out of the parts it overlaps.
Other(String)
A role the metadata names that is none of these, as written.
Trait Implementations§
Source§impl Clone for ObjectRole
impl Clone for ObjectRole
Source§impl Debug for ObjectRole
impl Debug for ObjectRole
impl Eq for ObjectRole
Source§impl PartialEq for ObjectRole
impl PartialEq for ObjectRole
impl StructuralPartialEq for ObjectRole
Auto Trait Implementations§
impl Freeze for ObjectRole
impl RefUnwindSafe for ObjectRole
impl Send for ObjectRole
impl Sync for ObjectRole
impl Unpin for ObjectRole
impl UnsafeUnpin for ObjectRole
impl UnwindSafe for ObjectRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.