Skip to content

Correct usage of CGAL::Euler::split_edge() #7794

Answered by sloriot
nimafo asked this question in Q&A
Discussion options

You must be logged in to vote
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_incremental_builder_3.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/intersections.h> //temp
#include <cassert>
#include <vector> //temp
#include <set>

template <class HDS>
class Build_quad : public CGAL::Modifier_base<HDS>
{
public:
    Build_quad() {}

    void operator()(HDS &hds)
    {
        CGAL::Polyhedron_incremental_builder_3<HDS> B(hds, true);
        B.begin_surface(4, 1, 8);
        typedef typename HDS::Vertex Vertex;
        typedef typename Vertex::Point Point;
        B.add_vertex(Point(0, 0, 0));
        B.add_vertex(Point(1, 0, 0));
        B.add_vertex(Point(1, 1, 0));
        B.add_vertex(Point(0, 1, 0));…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@nimafo
Comment options

@sloriot
Comment options

@nimafo
Comment options

Comment options

You must be logged in to vote
1 reply
@nimafo
Comment options

Comment options

You must be logged in to vote
1 reply
@nimafo
Comment options

Comment options

You must be logged in to vote
1 reply
@nimafo
Comment options

Answer selected by nimafo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants