Subject: CGAL users discussion list
List archive
- From: Felipe Bordeu <>
- To:
- Subject: Re: [cgal-discuss] mesh from image with features
- Date: Mon, 21 Oct 2013 12:02:09 +0200
Solved, my problem was the missing
"edge_size" parameter in the definition of the Mesh_criteria
Thanks,
Le 18/10/2013 15:44, Felipe Bordeu a écrit :
Thanks but...
so my mesh_domain class is
typedef CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3,K>
Mesh_domainImage;
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef
CGAL::Mesh_domain_with_polyline_features_3<Mesh_domainImage>
Mesh_domain;
I used the add_feature to add point from a polyline:
CGAL::Image_3 image;
image.read_raw("./data.raw",400,...);
Mesh_domain domain(image);
//contructoin of the polyline as in the manual//
domain.add_features(polylines.begin(), polylines.end());
but I get the following error in the make_mesh_3 call (C3t3 c3t3
= CGAL::make_mesh_3<C3t3>(domain, criteria);):
terminate called after throwing an instance of
'CGAL::Precondition_exception'
what(): CGAL ERROR: precondition violation!
Expr: sp > 0
File: /usr/include/CGAL/Mesh_3/Protect_edges_sizing_field.h
Line: 628
Abandon (core dumped)
I looked the value of sp in gdb and is strictly zero.
Felipe
Le 18/10/2013 09:58, Mariette Yvinec a écrit :
This class
CGAL::Mesh_domain_with_polyline_features_3< MeshDomain_3 >
(http://doc.cgal.org/latest/Mesh_3/classCGAL_1_1Mesh__domain__with__polyline__features__3.html)
might solve your problem.
Le 18/10/13 09:46, Felipe Bordeu a
écrit :
Hello everybody,
I'm making a mesh from a 3D image (using
CGAL::Image_3::read_raw and CGAL::make_mesh_3<C3t3>...)
but I know somes features of this image (2 polylines).
Do you know how to add features to my mesh_domain (of type
CGAL::Labeled_image_mesh_domain_3<CGAL::Image_3,CGAL::Exact_predicates_inexact_constructions_kernel>
)?
I read the manual (http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3/Chapter_main.html
). but my mesh_domain class miss the add_features(...) member
function.
Felipe
--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------
--
Mariette Yvinec
Geometrica project team
INRIA Sophia-Antipolis
--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------
--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------
|
Archive powered by MHonArc 2.6.18.