Polyhedron_incremental_builder_3::test_facet_indices fails

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Polyhedron_incremental_builder_3::test_facet_indices fails

Zohar
The builder fails with:

CGAL::Polyhedron_incremental_builder_3<HDS>::                                                                                                          
add_vertex_to_facet(): input error: disconnected facet complexes at vertex
15:                                                                          
           involved facets are: 14 2 9 6 5 8 1 10 3 11 12 7 13 (closed
cycle) and.

I ran the test_facet, and it fails on the check:

    //Test if all halfedges of the new face
    //are possibly consecutive border halfedges in the HDS.
    //Possibly because it may be not directly encoded in the HDS
    //(using next() function ). This situation can occur when one or
    //more facets share only a vertex: For example, the new facet we try to
add
    //would make the vertex indices[i] a manifold but this should be
forbidden
    //if a facet only incident to that vertex has already been inserted.
    //We check this for each vertex of the sequence.

Can you explain please what this means or maybe provide a small example?




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Polyhedron_incremental_builder_3::test_facet_indices fails

Zohar
I think it checks for a non-manifold vertex. More specifically, consider a
vertex incident to two triangle fans. If you add a facet that would close
one of the fans into a cone, then it's definitely going to be a non-manifold
vertex. For example, the last facet:

OFF
6 4 0

-1 -1 0
1 -1 0
1 1 -1
-1 1 0
0 0 0
-1 0 0

3 0 1 4
3 2 3 4
3 3 5 4
3 2 4 5



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss