|
(Note that these are not member functions.)
|
void | begin_surface () |
| Begin surface construction. Must be called at the beginning of the surface construction and used in pair with end_surface() at the end of surface mesh construction. ().
|
|
Face | add_face (const std::vector< Vertex > &vertices) |
| Add a face to the mesh. More...
|
|
Face | add_triangle (Vertex v1, Vertex v2, Vertex v3) |
| Add a new triangle face connecting vertices v1, v2, and v3. More...
|
|
Face | add_quad (Vertex v1, Vertex v2, Vertex v3, Vertex v4) |
| Add a new quad face connecting vertices v1, v2, v3, and v4. More...
|
|
void | end_surface (bool log_issues=true) |
| Finalize surface construction. Must be called at the end of the surface construction and used in pair with begin_surface() at the beginning of surface mesh construction. More...
|
|
A helper class for constructing manifold surface mesh models.
SurfaceMeshBuilder resolves non-manifoldness while building a surface mesh. It is typically used to load a model from a file (because you don't know if the mesh is manifold or not). For meshes guaranteed to be manifold, you can also use the built-in add_vertex() and add_[face/triangle/quad]() functions of SurfaceMesh for their construction. Example use:
SurfaceMeshBuilder builder(mesh);
builder.begin_surface();
for_each_vertex:
builder.add_vertex(p);
for_each_face:
builder.add_face(ids);
builder.end_surface();
- Examples
- Tutorial_104_SurfaceMesh.