Expand description
Utilities useful for various generations tasks.
Functions§
- compute_
normals - Computes the normals of a set of vertices.
- push_
circle - Pushes a discretized counterclockwise circle to a buffer.
- push_
degenerate_ open_ top_ ring_ indices - Creates the faces from a circle and a point that is shared by all triangle.
- push_
degenerate_ top_ ring_ indices - Creates the faces from a circle and a point that is shared by all triangle.
- push_
filled_ circle_ indices - Pushes indices so that a circle is filled with triangles. Each triangle will have the
base_circle
point in common. Pushesnsubdiv - 2
elements toout
. - push_
open_ ring_ indices - Creates the faces from two circles with the same discretization.
- push_
rectangle_ indices - Given four corner points, pushes to two counterclockwise triangles to
out
. - push_
ring_ indices - Creates the faces from two circles with the same discretization.
- push_
xy_ arc - Pushes a discretized counterclockwise circle to a buffer.
The circle is contained on the plane spanned by the
x
andy
axis. - reverse_
clockwising - Reverses the clockwising of a set of faces.
- split_
index_ buffer - Duplicates the indices of each triangle on the given index buffer.
- split_
index_ buffer_ and_ recover_ topology - Duplicates the indices of each triangle on the given index buffer, giving the same id to each identical vertex.