Function parry3d::transformation::utils::push_arc_and_idx
source · pub fn push_arc_and_idx(
center: Point<Real>,
start: u32,
end: u32,
nsubdivs: u32,
out_vtx: &mut Vec<Point<Real>>,
out_idx: &mut Vec<[u32; 2]>
)
Expand description
Pushes to out_vtx
a set of points forming an arc starting at start
, ending at end
with
revolution center at center
. The curve is approximated by pushing nsubdivs
points.
The start
and end
point are not pushed to out_vtx
.
ALso pushes to out_idx
the appropriate index buffer to form the arc (including attaches to
the start
and end
points).