Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image
Chronological Thread
- From: gori23 <>
- To:
- Subject: Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image
- Date: Tue, 24 Nov 2015 06:23:18 -0800 (PST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
- Ironport-phdr: 9a23:nszOCBy3uqSuNhbXCy+O+j09IxM/srCxBDY+r6Qd0ekTIJqq85mqBkHD//Il1AaPBtWGra0ZwLaL+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStOU0Jn8i7360qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD884mosVPWKG/c6UjRqFDFxwnNXo07Yvlr0rtVwyKs3QbSGRMyVIcGA/IqgrmRJ7sqTDSue902S3cNsrzG+NnEQ++5rtmHUe7wBwMMCQ0pTna
Hi Padraig,
Thanks for your reply.
It actually pointed me towards the right solution. Here is what I do now:
for (Tr::All_facets_iterator it=t.all_facets_begin(); it !=
t.all_facets_end(); ++it) // loop through facets
{
Tr::Facet f(*it);
C3t3::Surface_patch_index sp = c3t3.surface_patch_index(f);
// now sp.first/second contain information to which domains the facets
belongs (on both sides)
// now get the vertices of the facet and add the triangle to the belonging
cells
...
}
This generally works well, however occasionally I get malformed regions,
where there is 1 or 2 triangles too many, so that the domain cant be closed
proplerly. Another problem is that the orientation of the triangles seems to
be random. is there a way to get oriented tris from CGAL?
And finally I haven't solved the first problem (of the inital posting) yet,
I can only open 3d data from files.
Thanks a lot.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-Problem-when-generating-mesh-make-mesh-3-from-segmented-3d-image-tp4661387p4661390.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image, gori23, 11/23/2015
- Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image, Pádraig Ó Conbhuí, 11/23/2015
- Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image, gori23, 11/24/2015
- Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image, Pádraig Ó Conbhuí, 11/23/2015
Archive powered by MHonArc 2.6.18.