Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] mesh_domain_with_polyline_features_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] mesh_domain_with_polyline_features_3


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] mesh_domain_with_polyline_features_3
  • Date: Mon, 28 Oct 2013 11:08:15 +0100
  • Organization: GeometryFactory

Le lundi 28 octobre 2013 10:38:47 Laurent Rineau a écrit :

> Le samedi 26 octobre 2013 11:34:20 Jack Lee a écrit :

> > Hello,

> >

> > I am trying to generate a 3D mesh from multi-labelled images, with

> > polylines to preserve the corners.

> >

> > Currently I'm trying it with a synthetically generated image, which is a

> > cylinder with a step increase in the diameter along its length. I've

> > tried the code below, which builds and executes without problem, but it

> > doesn't preserve the lines at all (see the screenshot). It's probably

> > (hopefully) some simple mistake, but I can't seem to find it. Could

> > somebody help please?

>

> I do not see any logical error in your code.

 

Actually, there was an error in the code:

 

> Mesh_criteria criteria(facet_angle=30, facet_size=4.5, facet_distance=5,

> cell_radius_edge_ratio=2, cell_size=size);

[...]

> Mesh_domain domain(image);

[...]

> domain.add_features(polylines.begin(), polylines.end());

 

For a domain with features, the criteria object must specify a 'edge_size' parameter, otherwise the code throw an error exception, in Debug, or does not mesh the polylines, in Release. You can set it to the same value as 'facet_size'.

 

--

Laurent Rineau, PhD

R&D Engineer at GeometryFactory http://www.geometryfactory.com/

Release Manager of the CGAL Project http://www.cgal.org/

 




Archive powered by MHonArc 2.6.18.

Top of Page