pub enum ProfileRef {
Unresolved(String),
Native(String),
Sketch(SketchId),
SketchProfiles {
sketch: SketchId,
profiles: Vec<u32>,
},
SketchRegions {
sketch: SketchId,
regions: Vec<SketchProfileRegion>,
},
SketchSelection {
sketch: SketchId,
selections: Vec<String>,
},
SpatialSketchProfiles {
sketch: SpatialSketchId,
profiles: Vec<u32>,
},
SpatialSketchSelection {
sketch: SpatialSketchId,
selections: Vec<String>,
},
HistoricalFaces {
state: FeatureInputTopologyId,
faces: Vec<HistoricalFaceId>,
native: Vec<String>,
},
Feature(FeatureId),
Generated {
curves: Vec<GeneratedCurveRef>,
native: String,
},
Faces(Vec<FaceId>),
}Expand description
Profile consumed by a profile-driven feature.
Variants§
Unresolved(String)
A profile is required by the identified native owner but its carrier is unresolved.
Native(String)
Opaque reference into a native feature-input record; no neutral geometry given.
Sketch(SketchId)
Solved neutral sketch profile.
SketchProfiles
Specific solved profile loops within one neutral sketch.
Fields
profiles: Vec<u32>Zero-based indices into crate::sketches::Sketch::profiles.
SketchRegions
Exact union of bounded atomic regions within one neutral sketch.
Fields
regions: Vec<SketchProfileRegion>Connected regions in source selection order.
SketchSelection
Source-native selection within a known neutral sketch.
Fields
SpatialSketchProfiles
Specific solved profile loops within one neutral spatial sketch.
Fields
sketch: SpatialSketchIdSpatial sketch containing the selected loops.
profiles: Vec<u32>Zero-based indices into crate::sketches::SpatialSketch::profiles.
SpatialSketchSelection
Source-native selection within a known neutral spatial sketch.
Fields
sketch: SpatialSketchIdSpatial sketch containing the unresolved selected geometry.
HistoricalFaces
Profile given by faces in the consuming feature’s input topology.
Fields
state: FeatureInputTopologyIdInput topology containing every selected face.
faces: Vec<HistoricalFaceId>State-local face identities in source selection order.
Feature(FeatureId)
Complete curve result of an earlier construction-history feature.
Generated
Curves in an intermediate regenerated feature result, paired with the format-native persistent reference required for rewrite.
Fields
curves: Vec<GeneratedCurveRef>Persistent feature-local curve identities.
Faces(Vec<FaceId>)
Profile given directly as a set of solved B-rep faces.
Trait Implementations§
Source§impl Clone for ProfileRef
impl Clone for ProfileRef
Source§fn clone(&self) -> ProfileRef
fn clone(&self) -> ProfileRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProfileRef
impl Debug for ProfileRef
Source§impl<'de> Deserialize<'de> for ProfileRef
impl<'de> Deserialize<'de> for ProfileRef
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>,
Source§impl JsonSchema for ProfileRef
impl JsonSchema for ProfileRef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more