Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 18, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant