pub struct ProfileLoop {
pub curves: Vec<NurbsCurve>,
pub edge_names: Vec<Option<String>>,
pub loop_id: Option<u64>,
}Expand description
One closed boundary of a SketchProfile: head-to-tail world-space curves plus
the per-curve source edge name ({sketchId}:G{gid}, parallel to curves). The
profile-consumers stamp sidewall names from edge_names (extrude → {name}_E).
Fields§
§curves: Vec<NurbsCurve>§edge_names: Vec<Option<String>>§loop_id: Option<u64>The loop’s STABLE identity within its source sketch (see the sketch
feature’s loop_ids), persisted per edge in persistentData.sketch and
resilient to adding/removing edges. The profile-swept features embed it in
their per-loop cap and hole-wall names, so those names no longer move when
a DIFFERENT loop is added or removed. None for a loop with no numeric
geometry id behind it (a FACE profile, or a hand-built test profile) —
ProfileLoop::key then falls back to the loop’s own edge names.
Implementations§
Source§impl ProfileLoop
impl ProfileLoop
Sourcepub fn key(&self) -> Option<String>
pub fn key(&self) -> Option<String>
This loop’s naming KEY — the token the profile-swept features embed in the
faces they build from it ({cap_base}:{key}_START, {id}:HOLE:{key}).
L{loop_id} for a sketch loop. None when the loop has no identity to key
on, and the caller keeps its previous un-keyed spelling: a FACE profile
(always a single region — nothing to disambiguate, and its faces keep the
names every saved model already stores) or a hand-built profile with no
numeric geometry ids behind it.
Trait Implementations§
Source§impl Clone for ProfileLoop
impl Clone for ProfileLoop
Source§fn clone(&self) -> ProfileLoop
fn clone(&self) -> ProfileLoop
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more