pub struct Lit {
pub whole: bool,
pub faces: BTreeSet<String>,
pub edges: BTreeSet<String>,
pub vertices: BTreeSet<String>,
pub solids: BTreeSet<String>,
pub features: BTreeSet<String>,
pub sketches: BTreeSet<String>,
pub curves: BTreeSet<(String, String)>,
pub sketch_points: BTreeSet<(String, String)>,
pub datums: BTreeSet<String>,
}Expand description
What a set of elements lights of one drawn part (see the module docs).
Fields§
§whole: boolWhether all of it is lit: a placed part hovered or selected whole.
faces: BTreeSet<String>§edges: BTreeSet<String>§vertices: BTreeSet<String>§solids: BTreeSet<String>§features: BTreeSet<String>Steps whose features’ faces are lit, wherever they are.
sketches: BTreeSet<String>Whole sketches, by name.
curves: BTreeSet<(String, String)>Curves of sketches, by the sketch’s name and the curve’s id.
sketch_points: BTreeSet<(String, String)>Points of sketches, by the sketch’s name and the point’s id.
datums: BTreeSet<String>Datums and their components, by name as drawn: origin:x an axis.
Implementations§
Source§impl Lit
impl Lit
Sourcepub fn of<'e>(
targets: &Targets,
instance: &str,
elements: impl IntoIterator<Item = &'e PickedElement>,
) -> Self
pub fn of<'e>( targets: &Targets, instance: &str, elements: impl IntoIterator<Item = &'e PickedElement>, ) -> Self
What elements light of the part named in targets, drawn as the
placed part instance — "" for the part itself: those of the
part’s own model lighting its faces, edges, vertices and solids by
name, whatever kind of thing drawn as them they are (the plane a
face is, the line an edge runs along); those of a sketch, it, or
its curves and points; those of its datums, them; a feature, the
faces it made.
Sourcepub fn face(
&self,
name: &str,
solid: Option<&str>,
feature: Option<&str>,
) -> bool
pub fn face( &self, name: &str, solid: Option<&str>, feature: Option<&str>, ) -> bool
Whether the face name, of solid, made by feature, is lit.