mirror of https://github.com/vitalif/openscad
33 lines
908 B
C++
33 lines
908 B
C++
#ifndef CGAL_NEF_POLYHEDRON_H_
|
|
#define CGAL_NEF_POLYHEDRON_H_
|
|
|
|
#include "cgalfwd.h"
|
|
#include "memory.h"
|
|
#include <string>
|
|
|
|
class CGAL_Nef_polyhedron
|
|
{
|
|
public:
|
|
CGAL_Nef_polyhedron() : dim(0) {}
|
|
CGAL_Nef_polyhedron(CGAL_Nef_polyhedron2 *p);
|
|
CGAL_Nef_polyhedron(CGAL_Nef_polyhedron3 *p);
|
|
~CGAL_Nef_polyhedron() {}
|
|
|
|
bool empty() const { return (dim == 0 || (!p2 && !p3)); }
|
|
CGAL_Nef_polyhedron &operator+=(const CGAL_Nef_polyhedron &other);
|
|
CGAL_Nef_polyhedron &operator*=(const CGAL_Nef_polyhedron &other);
|
|
CGAL_Nef_polyhedron &operator-=(const CGAL_Nef_polyhedron &other);
|
|
CGAL_Nef_polyhedron &minkowski(const CGAL_Nef_polyhedron &other);
|
|
CGAL_Nef_polyhedron copy() const;
|
|
std::string dump_p2() const;
|
|
int weight() const;
|
|
class PolySet *convertToPolyset();
|
|
class DxfData *convertToDxfData() const;
|
|
|
|
int dim;
|
|
shared_ptr<CGAL_Nef_polyhedron2> p2;
|
|
shared_ptr<CGAL_Nef_polyhedron3> p3;
|
|
};
|
|
|
|
#endif
|