Open 3D Engine WhiteBox Gem API Reference 26.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
WhiteBox::Csg::TriangleMesh Struct Reference

#include <WhiteBoxCsgCore.h>

Public Member Functions

size_t VertexCount () const
 
size_t TriangleCount () const
 

Public Attributes

std::vector< double > m_positions
 Flattened vertex positions (x0, y0, z0, x1, y1, z1, ...).
 
std::vector< uint32_t > m_indices
 Triangle list indices (three per triangle, CCW winding).
 

Detailed Description

An indexed triangle mesh using only std types.

Note
This intentionally has no AZ/O3DE dependencies so the CSG core can be compiled and tested in isolation from the engine (see Tests/WhiteBoxCsgCoreTest).

The documentation for this struct was generated from the following file: