Module parry3d::transformation::utils
source · Expand description
Utilities useful for various generations tasks.
Functions§
- Applies a revolution, using the Y symmetry axis passing through the origin.
- Pushes to
out
a set of points forming an arc starting atstart
, ending atend
with revolution center atcenter
. The curve is approximated by pushingnsubdivs
points. Thestart
andend
point are not pushed toout
. - Pushes to
out_vtx
a set of points forming an arc starting atstart
, ending atend
with revolution center atcenter
. The curve is approximated by pushingnsubdivs
points. Thestart
andend
point are not pushed toout_vtx
. - Pushes the index buffer for an arc between
start
andend
and intermediate points in the rangearc
. - Pushes a discretized counterclockwise circle to a buffer.
- Pushes the index buffer of a closed loop.
- Creates the faces from a circle and a point that is shared by all triangle.
- Creates the faces from a circle and a point that is shared by all triangle.
- Pushes indices so that a circle is filled with triangles. Each triangle will have the
base_circle
point in common. Pushesnsubdiv - 2
elements toout
. - Pushes the index buffer of an open chain.
- Creates the faces from two circles with the same discretization.
- Given four corner points, pushes to two counterclockwise triangles to
out
. - Creates the faces from two circles with the same discretization.
- Reverses the clockwising of a set of faces.
- Returns the transformed version of a vector of points.
- Applies in-place a transformation to an array of points.
- Returns the transformed version of a vector of points.