Class CBrush: Represents a convex object, supports some CSG operations.
More...
#include <Brush.h>
Class CBrush: Represents a convex object, supports some CSG operations.
◆ FaceIndices
◆ Vertices
◆ CBrush() [1/2]
◆ CBrush() [2/2]
CBrush: Construct a brush from a bounds object.
- Parameters
-
◆ Bounds()
Bounds: Calculate the axis-aligned bounding box for this brush.
- Parameters
-
result | the resulting bounding box is stored here |
◆ GetFaces()
void CBrush::GetFaces |
( |
std::vector< std::vector< size_t > > & |
out | ) |
const |
Writes a vector of the faces in this brush to out
.
Each face is itself a vector, listing the vertex indices that make up the face, starting and ending with the same index. Intended for testing purposes; you should not need to use this method directly.
◆ GetVertices()
const std::vector< CVector3D > & CBrush::GetVertices |
( |
| ) |
const |
Returns vertices in the brush.
Intended for testing purposes; you should not need to use this method directly.
◆ Intersect()
void CBrush::Intersect |
( |
const CFrustum & |
frustum, |
|
|
CBrush & |
result |
|
) |
| const |
Intersect: Intersect the brush with the given frustum.
- Parameters
-
frustum | the frustum to intersect with |
result | the resulting brush is stored here |
◆ IsEmpty()
bool CBrush::IsEmpty |
( |
| ) |
const |
|
inline |
IsEmpty: Returns whether the brush is empty.
- Returns
true
if the brush is empty, false
otherwise
◆ Slice()
void CBrush::Slice |
( |
const CPlane & |
plane, |
|
|
CBrush & |
result |
|
) |
| const |
Slice: Cut the object along the given plane, resulting in a smaller (or even empty) brush representing the part of the object that lies in front of the plane (as defined by the positive direction of its normal vector).
- Parameters
-
plane | the slicing plane |
result | the resulting brush is stored here |
◆ m_Faces
Holds the face definitions of this brush.
Each face is a sequence of indices into m_Vertices that starts and ends with the same vertex index, completing a loop through all the vertices that make up the face. This vector holds all the face sequences back-to-back, thus looking something like 'x—xy-----—yz–z' in the general case.
◆ m_Vertices
Collection of unique vertices that make up this shape.
◆ NO_VERTEX
const size_t CBrush::NO_VERTEX = ~0u |
|
staticprivate |
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/maths/Brush.h
- /home/docker/jenkins/workspace/technical-docs/source/maths/Brush.cpp