Skip to main content

circular_pattern

Function circular_pattern 

Source
pub fn circular_pattern(
    topo: &mut Topology,
    solid: SolidId,
    axis_direction: Vec3,
    count: usize,
) -> Result<CompoundId, OperationsError>
Expand description

Create a circular pattern of a solid.

Produces count copies arrayed around an axis, evenly spaced over a full 360 degrees. The original solid is included as the first element.

Returns a compound containing all copies.

ยงErrors

Returns an error if count < 2, the axis is zero-length, or copy/transform fails.