Today I make a minor update on my Tetrahedron modifier. Loops and faces are constructed in order to get a solid tetrahedron mesh.
In the Tetrahedron modifier,
DerivedMesh with desired count of vertices, loops, and faces is allocated
then vertices, loops and faces data are filled into
This is a common approach to construct
DerivedMesh from scratch.
The similar method can also be seen in Remesh modifier.
You can also use BMesh tools to construct
DerivedMesh in a modifier.
This is usually seen in modifiers whose task is to refine parts of mesh.
A typical example is Bevel modifier.
In this approach, a BMesh object has to be constructed using
then followed by desired BMesh operations.
After all operations have finished,
the BMesh object gets converted to result
and released using