Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TriangleGrouper Class Referenceabstract

A class that groups triangles in batches of N (according to closeness) More...

#include <TriangleGrouper.h>

Inheritance diagram for TriangleGrouper:
NonCopyable TriangleGrouperClosestCentroid TriangleGrouperMorton

Public Member Functions

virtual ~TriangleGrouper ()=default
 Virtual destructor.
 
virtual void Group (const VertexList &inVertices, const IndexedTriangleList &inTriangles, int inGroupSize, Array< uint > &outGroupedTriangleIndices)=0
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

A class that groups triangles in batches of N (according to closeness)

Constructor & Destructor Documentation

◆ ~TriangleGrouper()

virtual TriangleGrouper::~TriangleGrouper ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ Group()

virtual void TriangleGrouper::Group ( const VertexList inVertices,
const IndexedTriangleList inTriangles,
int  inGroupSize,
Array< uint > &  outGroupedTriangleIndices 
)
pure virtual

Group a batch of indexed triangles

Parameters
inVerticesThe list of vertices
inTrianglesThe list of indexed triangles (indexes into inVertices)
inGroupSizeHow big each group should be
outGroupedTriangleIndicesAn ordered list of indices (indexing into inTriangles), contains groups of inGroupSize large worth of indices to triangles that are grouped together. If the triangle count is not an exact multiple of inGroupSize the last batch will be smaller.

Implemented in TriangleGrouperClosestCentroid, and TriangleGrouperMorton.


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