samlittlewood / carve

Automatically exported from code.google.com/p/carve
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 tanglaoy...@gmail.com on 19 Apr 2014 at 2:59

GoogleCodeExporter commented 9 years ago
This problem is solved. The examples in geometry.cpp tell me how to do.

Thanks,
Tang Laoya

Original comment by tanglaoy...@gmail.com on 21 Apr 2014 at 2:00