maths
Class CBrush
in Brush.h
in Brush.cpp
- class CBrush
Class CBrush: Represents a convex object, supports some CSG operations.
Constructor Summary |
CBrush()
|
CBrush( const CBound& bounds )
Calculate bounds of this brush |
Method Summary |
void |
Bounds( CBound& result ) const
Cut the brush according to a given plane |
void |
Intersect( const CFrustum& frustum, CBrush& result ) const
Dump the faces to OpenGL |
bool |
IsEmpty() const
IsEmpty: Returns whether the brush is empty. |
void |
Render() const
Render: Renders the brush as OpenGL polygons. |
void |
Slice( const CPlane& plane, CBrush& result ) const
Intersect with frustum by repeated slicing |
m_Faces
private CBrush::FaceIndices m_Faces;
m_Vertices
private CBrush::Vertices m_Vertices;
no_vertex
private static const uint no_vertex;
CBrush
public CBrush();
CBrush
public CBrush( const CBound& bounds );
- Calculate bounds of this brush
Bounds
public void Bounds( CBound& result ) const;
- Cut the brush according to a given plane
Intersect
public void Intersect( const CFrustum& frustum, CBrush& result ) const;
- Dump the faces to OpenGL
IsEmpty
public bool IsEmpty() const;
- IsEmpty: Returns whether the brush is empty.
- Returns:
- @c true if the brush is empty, @c false otherwise
Render
public void Render() const;
- Render: Renders the brush as OpenGL polygons.
Slice
public void Slice( const CPlane& plane, CBrush& result ) const;
- Intersect with frustum by repeated slicing