6 #include <polylib/polylibgmp.h>
10 void decompose(Polyhedron
*C
);
11 virtual void handle(Polyhedron
*P
, int sign
) = 0;
14 struct polar_decomposer
: public decomposer
{
15 void decompose(Polyhedron
*C
, unsigned MaxRays
);
16 virtual void handle(Polyhedron
*P
, int sign
);
17 virtual void handle_polar(Polyhedron
*P
, int sign
) = 0;
20 struct vertex_decomposer
{
22 unsigned nbV
; // number of vertices
23 Param_Vertices
*V
; // current vertex
24 int vert
; // current vertex index
27 vertex_decomposer(Polyhedron
*P
, unsigned nbV
, polar_decomposer
*pd
) :
28 P(P
), nbV(nbV
), pd(pd
) {}
29 void decompose_at_vertex(Param_Vertices
*V
, int _i
, unsigned MaxRays
);