Subject: CGAL users discussion list
List archive
- From: Qianqian Fang <>
- To:
- Subject: [cgal-discuss] set maximum surface node number for surface mesher
- Date: Mon, 09 Mar 2009 17:57:19 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=CkJPrhfg94zbIjS4Yvq5PRc6g5aNKk7ER98uVVHGCWFK9F14wfFJ1MDbwDPgcZWubX bcNHCBVbg38EWO2VGncwtlyu6XVs4Mf8ssi7wNH0PWGOjaNPfg50iH0llnR5gtiX8LdQ 9YdavX/B0e0Hbx7poM+ZDO/4JqzReIwmvwziY=
hi
I realized that when a gray-scale image contains pointy structures, setting the
angular bound to a certain number (say 30) will result in an endless refinement
process and eventually exhaust the system memory. To prevent this from happening,
I want to set a termination criterion when the surface mesh nodes exceed a
maximum node number. I checked the refine_mesh() function defined
in include/CGAL/Surface_mesher/Surface_mesher.h , in the debug mode,
it exposes the node number (tr.number_of_vertices) which can be used
for this purpose. However, I believe there must exist a more elegant way
to set this termination criterion outside of this function.
Can someone tell me what I should do to add this criterion to the surface
mesher example? ( examples/Surface_mesher/mesh_a_3d_gray_image.cpp)
thank you very much
Qianqian
- [cgal-discuss] set maximum surface node number for surface mesher, Qianqian Fang, 03/09/2009
- <Possible follow-up(s)>
- [cgal-discuss] set maximum surface node number for surface mesher, Qianqian Fang, 03/11/2009
Archive powered by MHonArc 2.6.16.