lib/fab/src/tree/triangulate.cpp
// Finds an array of vertices (as x,y,z float triplets).
// Sets *count to the number of vertices returned.
Finds an array of vertices (as x,y,z float triplets).
Sets *count to the number of vertices returned.
Finds an array of vertices ( as x y z float triplets ) . Sets * count to the number of vertices returned .
void triangulate(MathTree* tree, const Region r,
                 bool detect_edges, volatile int* halt,
                 float** const verts, unsigned* const count)
{
    Mesher t(tree, detect_edges, halt);
    t.triangulate_region(r);
    *verts = t.get_verts(count);
}
void triangulate ( MathTree * tree , const Region r , bool detect_edges , volatile int * halt , float * * const verts , unsigned * const count ) { Mesher t ( tree , detect_edges , halt ) ; t . triangulate_region ( r ) ; * verts = t . get_verts ( count ) ; }
Finds an array of vertices (as x,y,z float triplets).
Finds an array of vertices ( as x y z float triplets ) .
// Top-level call to the recursive triangulation function. // Copy data from tristate struct to output pointers.