Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Faulty vertex normal transforming Polyhedron -> Nef Polyheron.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Faulty vertex normal transforming Polyhedron -> Nef Polyheron.


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Faulty vertex normal transforming Polyhedron -> Nef Polyheron.
  • Date: Fri, 20 Nov 2015 14:02:45 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:al3IExcuIdfwe4025oeNOwRElGMj4u6mDksu8pMizoh2WeGdxc68YB7h7PlgxGXEQZ/co6odzbGG7ua+BCdcvd6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvcOOKFkUzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzQrVcSTgnKGso/9bDtB/ZTALJ6GFPfH8Rl08COAXP5QrmX5r3+g/9rOt6xGHaEsDxSL0oQyWM5qx3TwX5yW1PYyU993vWjdA2iaZzrxeophg5yInRNtLGfMFid7/QKItJDVFKWdxcAnRM
  • Organization: GeometryFactory

On 11/20/2015 01:39 PM, Gilles wrote:
Hello Sébastien,

Thanks you !
Hacking the classBuild_polyhedron stops Nef to be
triangulated :

/...

Halffacet_const_handle f = opposite_facet->twin();

SHalfedge_around_facet_const_circulator
sfc1(f->facet_cycles_begin()), sfc2(sfc1);

// no triangulate

// if(++f->facet_cycles_begin() != f->facet_cycles_end() ||
// ++(++(++sfc1)) != sfc2) {
// Vector_3 orth = f->plane().orthogonal_vector();
// int c = CGAL::abs(orth[0]) > CGAL::abs(orth[1]) ? 0 : 1;
// c = CGAL::abs(orth[2]) > CGAL::abs(orth[c]) ? 2 : c;

// if(c == 0) {
// Triangulation_handler2<YZ> th(f);
// th.handle_triangles(B, VI);
// } else if(c == 1) {
// Triangulation_handler2<XZ> th(f);
// th.handle_triangles(B, VI);
// } else if(c == 2) {
// Triangulation_handler2<XY> th(f);
// th.handle_triangles(B, VI);
// } else
// CGAL_error_msg( "wrong value");

// } else {

B.begin_facet();
fc = f->facet_cycles_begin();
se = SHalfedge_const_handle(fc);
.../

About triangulating with fonction triangulate_faces, I'm afraid that this
fonction
does not exists in CGAL 4.5 ?

-> I will have to compile a brand new version !


The function exists but with another name;

CGAL/triangulate_polyhedron.h


Best Regards / nice week-end

Gilles




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Faulty-vertex-normal-transforming-Polyhedron-Nef-Polyheron-tp4661349p4661373.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page