94 void GetFaces(std::vector<std::vector<size_t> >&
out)
const;
115 #endif // maths_brush_h
void GetFaces(std::vector< std::vector< size_t > > &out) const
Writes a vector of the faces in this brush to out.
void Intersect(const CFrustum &frustum, CBrush &result) const
Intersect: Intersect the brush with the given frustum.
static void out(const wchar_t *fmt,...)
std::vector< CVector3D > GetVertices() const
Returns a copy of the vertices in this brush.
std::vector< CVector3D > Vertices
bool IsEmpty() const
IsEmpty: Returns whether the brush is empty.
static const size_t NO_VERTEX
Class CBrush: Represents a convex object, supports some CSG operations.
void Slice(const CPlane &plane, CBrush &result) const
Slice: Cut the object along the given plane, resulting in a smaller (or even empty) brush representin...
Vertices m_Vertices
Collection of unique vertices that make up this shape.
FaceIndices m_Faces
Holds the face definitions of this brush.
void Bounds(CBoundingBoxAligned &result) const
Bounds: Calculate the axis-aligned bounding box for this brush.
std::vector< size_t > FaceIndices