pub enum PatternKind {
Unresolved {
form: Option<PatternForm>,
},
Linear {
direction: Option<Vector3>,
spacing: Length,
count: u32,
second: Option<LinearPatternDirection>,
},
LinearOffsets {
direction: Option<Vector3>,
offsets: Vec<Length>,
},
Circular {
axis_origin: Point3,
axis_dir: Vector3,
angle: Angle,
count: u32,
},
CircularAngles {
axis_origin: Point3,
axis_dir: Vector3,
angles: Vec<Angle>,
},
CurveDriven {
path: Option<PathRef>,
spacing: Length,
count: u32,
},
Mirror {
plane_origin: Point3,
plane_normal: Vector3,
},
Scale {
center: PatternScaleCenter,
final_factor: f64,
count: u32,
},
Composite {
stages: Vec<PatternStage>,
},
}Expand description
Spatial transform used to repeat or reflect seed features.
Variants§
Unresolved
Pattern construction whose form or required operands are unresolved.
Fields
§
form: Option<PatternForm>Native pattern form, when identified independently of its operands.
Linear
Repeats seeds evenly along a straight direction.
Fields
§
second: Option<LinearPatternDirection>Optional complete second translation direction.
LinearOffsets
Repeats seeds at explicitly located distances along a straight direction.
Fields
Circular
Repeats seeds evenly around an axis.
Fields
CircularAngles
Repeats seeds at explicitly located angles around an axis.
Fields
CurveDriven
Repeats seeds at fixed arc-length spacing along a curve.
Fields
Mirror
Reflects seeds across a plane.
Fields
Scale
Repeats seeds using progressive uniform scales.
Fields
§
center: PatternScaleCenterFixed locus used by every scale transform.
Composite
Applies an ordered sequence of pattern stages.
Fields
§
stages: Vec<PatternStage>Stages in application order.
Trait Implementations§
Source§impl Clone for PatternKind
impl Clone for PatternKind
Source§fn clone(&self) -> PatternKind
fn clone(&self) -> PatternKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatternKind
impl Debug for PatternKind
Source§impl<'de> Deserialize<'de> for PatternKind
impl<'de> Deserialize<'de> for PatternKind
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
Source§impl JsonSchema for PatternKind
impl JsonSchema for PatternKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PatternKind
impl PartialEq for PatternKind
Source§impl Serialize for PatternKind
impl Serialize for PatternKind
impl StructuralPartialEq for PatternKind
Auto Trait Implementations§
impl Freeze for PatternKind
impl RefUnwindSafe for PatternKind
impl Send for PatternKind
impl Sync for PatternKind
impl Unpin for PatternKind
impl UnsafeUnpin for PatternKind
impl UnwindSafe for PatternKind
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