mesh - Reconstruct surface from 3D triangular meshes -


i have 3d model, consists of 3d triangular meshes. want partition meshes different groups. each group represents surface, such planar face, cylindrical surface. surface recognition/reconstruction.

the input set of 3d triangular meshes. output mesh segmentations per surface.

is there library meets requirement?

if want go lots of mesh processing, point cloud library idea, i'd suggest cgal: http://www.cgal.org more algorithms , loads of structures aimed @ meshes.

lastly, problem describe solved on own:

  1. enumerate vertices
  2. enumerate polygons
  3. create array of ints size of number of vertices in "big" mesh, initialize 0.
  4. create array of ints size of number of polygons in "big" mesh, initialize 0.
  5. initialize counter 0
  6. for each polygon in mesh, @ vertices , value each has in array. if values each vertex zero, increase counter , assign each of values in vertex array , polygon array correspondingly. if not, relabel vertices , polygons higher number smallest, non-zero number.

the relabeling can done table. might save lots of issues interfacing code library you're not interested in.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -