pub enum Frames {
Linear {
first: Direction,
second: Option<Direction>,
},
Circular {
axis: Option<TurnAxis>,
reversed: bool,
count: NumericInput,
angle: Spacing,
},
Curve {
path: Option<PathRef>,
count: NumericInput,
spacing: Spacing,
aligned: bool,
},
Points {
points: Vec<PointsRef>,
from: Option<PointsRef>,
},
Table {
rows: Vec<Offset>,
},
Fill {
face: Option<ElementReference<NamedModel, Plane>>,
spacing: NumericInput,
margin: NumericInput,
staggered: bool,
},
Holes {
features: Vec<FeatureRef>,
},
}Expand description
Where the instances of a pattern go (see the module’s docs).
Variants§
Linear
In a row along a direction, or in a grid along two.
Circular
Turned round an axis: counter-clockwise looking against it, the
other way if reversed.
Fields
count: NumericInputCurve
Along a path from where it starts — the seed where it starts — the
instances spacing apart along it, or spread over a length; each
turned as the path turns, if aligned, or kept as the seed is.
Points
At points: the seed at the first, or where from is.
Table
At offsets from the seed, a row each.
Fill
Filling a flat face on a grid through the seed — square, or each
row shifted half a step and the rows closer — every instance
margin or more inside the face’s edges.
Holes
At the holes features drilled: the seed in the first, each copy in another, turned as the hole is.
Fields
features: Vec<FeatureRef>Implementations§
Source§impl Frames
impl Frames
Sourcepub fn motions(
&self,
reader: &Reader<'_>,
anchor: &dyn Fn() -> GeopResult<Vector3>,
) -> GeopResult<Vec<(String, Pose)>>
pub fn motions( &self, reader: &Reader<'_>, anchor: &dyn Fn() -> GeopResult<Vector3>, ) -> GeopResult<Vec<(String, Pose)>>
Where its instances go, as reader reads the part: each a label
and the motion from the seed, the seed itself left out. anchor is
where the seed is, for a fill: asked only there.
Sourcepub fn fields<'a, A: 'a>(
&self,
f: &mut EditForm<'a, A>,
before: &Reader<'a>,
at: Option<Vector3>,
set: impl Fn(&mut A, Frames) + Clone + 'a,
)
pub fn fields<'a, A: 'a>( &self, f: &mut EditForm<'a, A>, before: &Reader<'a>, at: Option<Vector3>, set: impl Fn(&mut A, Frames) + Clone + 'a, )
Its fields in f: which kind — a choice keyed frames — and that
kind’s own, picked in the part before reads; handles of a row’s
from at. set puts the frames set where the arguments keep them.