Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Clip make_surface_mesh output

Subject: CGAL users discussion list

List archive

[cgal-discuss] Clip make_surface_mesh output


Chronological Thread 
  • From: Kim <>
  • To:
  • Subject: [cgal-discuss] Clip make_surface_mesh output
  • Date: Fri, 11 Sep 2020 03:12:09 -0500 (CDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:OTCdlR24Y0ltNwt2smDT+DRfVm0co7zxezQtwd8ZseISKvad9pjvdHbS+e9qxAeQG9mCtbQd0bad4/mocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTuwbalvIBmoogjducobjZZ/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF+gqJVrgyiqRJizIHbfI6bOeFifq7fYd8WWXZNUtpPWyFHH4iyb5EPD+0EPetAqof9pl4Opga5CAmpBePj0CNHhnjs3a0gzeshFhvK3BA+ENILqHTUq8/1O70WUe2uy6nI0CnDb/dR2Tf664jEaAwuofaJXb9pd8fa1EYgGR/fgFqKtYzlIy2a1v4Ls2WD7edsSP6jhmEppg9xoTWixcUhh4nXi48R1lzJ9SV0zJoxKNC6SEN3f9GqHYVSuiyaNYZ7Qd0uTmBrtSg6ybALpZi2dzUExpQgwh7Qcf2Hc46Q7xLlTumeOix3hHZ7d76lmxmy9k2gx+vhXce3yFZHtjdJn93Iu3wX2RHe6dKLR/h880u72DuC1gbe4fxeL08uj6rUMZshz6YwlpUNtUTDGTf7mEP5gaOMcEUr4POn5P/jYrr4vJOTK4h0igTmPqQvnMywH/g4PxATU2Wf/emwzrPu8E7jTLhJj/A6iKjUvZHCKcQevKG5AgtV0og56xa4CjeryNEYnXgdIF1ZfxKHlZLpNE/JIPziEfewnVGskC9sx/DcJLLhBo7ALn/ekLf9ebZ97ElcyAkpwd9D4JJUD6kNIOjvVU/pqNzYEhg5PhSozOboEtp90poSVn+OAq+CLKzSrESI5vk0LumXZI4VvS79JOI/6/7vi385g14dcrOz0ZsZcnDrVshhdk6WaH6pjtYaGnoRpSI/SvbrgRuMS219fXG3CoE943lvDYPgBoDZXI2qxqCM2T+8BJRSTmdbFlSLFnSufIKBDaRfIBmOK9Nsx2RXHYOqTJUsgEn36V3KjoF/J++RwRU28JLu0N8sur/VyVc0/DZ+C8nb2GaIHTgtwjE4AgQu1aU6mnRTj0+Z2PEj0ftFCdhU4PAPWQA/Z8aFnr5KTuvqUweERe+nDVOvQ9GoGzY0F4ljxMISZ0F6GJOpiRWRhCc=

Hi everyone,

I am trying to clip a surface mesh using a closed PolygonMesh "shell" I am
importing from an external file. The section of the code in question looks
as follows:
CGAL::make_surface_mesh(c2t3, // Reconstructed mesh
(output)
surface, // Implicit surface
criteria, // Meshing criteria
CGAL::Manifold_tag()); // Require manifold mesh
PolygonMesh to_be_cut;
CGAL::facets_in_complex_2_to_triangle_mesh(c2t3, to_be_cut);
bool testing = CGAL::Polygon_mesh_processing::clip(to_be_cut, shell,
CGAL::parameters::clip_volume(true).use_compact_clipper(true));

This is giving me the followin error:
terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: CGAL::is_valid_polygon_mesh(tm)
File: ./libs/CGAL-5.1/include/CGAL/Polygon_mesh_processing/orientation.h

Since if I save the output of make_surface_mesh to a file and read the file
back in to a "PolygonMesh to_be_cut" the clipper has no problems, the
problem must lie in going from c2t3 to polygonMesh but I can't seem to
figure out how to make it work. Hopefully someone can help.

Kind regards,
Kim




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.19+.

Top of Page