carve icon indicating copy to clipboard operation
carve copied to clipboard

How to construct a carve::mesh::MeshSet<3> meshset if number of facet is zero?

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

Dear all,

Usually we can construct a meshset by the following lines:
...
  std::vector<carve::mesh::MeshSet<3>::vertex_t> verts;
  std::vector<carve::mesh::MeshSet<3>::face_t *> faces;
...
  carve::mesh::MeshSet<3> poly(faces);
...

Usually if all nodes are vertices of facets, all nodes and faces are included 
in the meshset. However, if in this set the number of faces is zero, all the 
sizes of verts and faces would be zero in poly. Furthermore, if there are only 
one triangle (faces) but there are 4 nodes, if we construct the meshset as 
above, the one node which are not the vertex of triangle is missed. How to do 
to let all nodes are included in the meshset?


Thanks,
Tang Laoya

Original issue reported on code.google.com by [email protected] on 19 Apr 2014 at 2:59

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter

This problem is solved. The examples in geometry.cpp tell me how to do.

Thanks,
Tang Laoya

Original comment by [email protected] on 21 Apr 2014 at 2:00

GoogleCodeExporter avatar Dec 12 '15 18:12 GoogleCodeExporter