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: "Lee, Jack" <>
  • To: "" <>
  • Subject: RE: [cgal-discuss] mesh_domain_with_polyline_features_3
  • Date: Mon, 28 Oct 2013 10:13:33 +0000
  • Accept-language: en-GB, en-US

Thank you very much -- just tried it and it works beautifully.

Jack



From: <> on behalf of Laurent Rineau (CGAL/GeometryFactory) <>
Sent: 28 October 2013 10:08
To:
Subject: Re: [cgal-discuss] mesh_domain_with_polyline_features_3
 

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