#ifndef __OpenCSG__primitive_helper_h__
#define __OpenCSG__primitive_helper_h__
#include "opencsgConfig.h"
#include "area.h"
#include <vector>
namespace OpenCSG {
class Primitive;
namespace Algo {
bool intersectXY(const Primitive* a, const Primitive* b);
bool intersectXYZ(const Primitive* a, const Primitive* b);
bool containsXY(const Primitive* a, const Primitive* b);
unsigned int getConvexity(const std::vector<Primitive*>& primitives);
}
namespace OpenGL {
unsigned int calcMaxDepthComplexity(const std::vector<Primitive*>& primitives,
const PCArea& area);
void renderLayer(unsigned int layer, const std::vector<Primitive*>& primitives);
}
}
#endif