Skip to main content

revolve

Function revolve 

Source
pub fn revolve(
    cross_section: &Polygons,
    circular_segments: i32,
    revolve_degrees: f64,
) -> ManifoldImpl
Expand description

Constructs a manifold by revolving polygons around the Y axis (becomes Z).

  • cross_section: non-overlapping polygons (each a Vec<Vec2>)
  • circular_segments: number of divisions around the circle (0 = auto)
  • revolve_degrees: how many degrees to revolve (clamped to 360)