Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
GetTrianglesContextVertexList Class Reference

Implementation of GetTrianglesStart/Next that uses a fixed list of vertices for the triangles. These are transformed into world space when getting the triangles. More...

#include <GetTrianglesContext.h>

Public Member Functions

 GetTrianglesContextVertexList (Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale, Mat44Arg inLocalTransform, const Vec3 *inTriangleVertices, size_t inNumTriangleVertices, const PhysicsMaterial *inMaterial)
 Constructor, to be called in GetTrianglesStart. More...
 
int GetTrianglesNext (int inMaxTrianglesRequested, Float3 *outTriangleVertices, const PhysicsMaterial **outMaterials)
 

Static Public Member Functions

static void sCreateHalfUnitSphereTop (std::vector< Vec3 > &ioVertices, int inDetailLevel)
 Helper function that creates a vertex list of a half unit sphere (top part) More...
 
static void sCreateHalfUnitSphereBottom (std::vector< Vec3 > &ioVertices, int inDetailLevel)
 Helper function that creates a vertex list of a half unit sphere (bottom part) More...
 
static void sCreateUnitOpenCylinder (std::vector< Vec3 > &ioVertices, int inDetailLevel)
 Helper function that creates an open cylinder of half height 1 and radius 1. More...
 

Detailed Description

Implementation of GetTrianglesStart/Next that uses a fixed list of vertices for the triangles. These are transformed into world space when getting the triangles.

Constructor & Destructor Documentation

◆ GetTrianglesContextVertexList()

GetTrianglesContextVertexList::GetTrianglesContextVertexList ( Vec3Arg  inPositionCOM,
QuatArg  inRotation,
Vec3Arg  inScale,
Mat44Arg  inLocalTransform,
const Vec3 inTriangleVertices,
size_t  inNumTriangleVertices,
const PhysicsMaterial inMaterial 
)
inline

Constructor, to be called in GetTrianglesStart.

Member Function Documentation

◆ GetTrianglesNext()

int GetTrianglesContextVertexList::GetTrianglesNext ( int  inMaxTrianglesRequested,
Float3 outTriangleVertices,
const PhysicsMaterial **  outMaterials 
)
inline

◆ sCreateHalfUnitSphereBottom()

static void GetTrianglesContextVertexList::sCreateHalfUnitSphereBottom ( std::vector< Vec3 > &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates a vertex list of a half unit sphere (bottom part)

◆ sCreateHalfUnitSphereTop()

static void GetTrianglesContextVertexList::sCreateHalfUnitSphereTop ( std::vector< Vec3 > &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates a vertex list of a half unit sphere (top part)

◆ sCreateUnitOpenCylinder()

static void GetTrianglesContextVertexList::sCreateUnitOpenCylinder ( std::vector< Vec3 > &  ioVertices,
int  inDetailLevel 
)
inlinestatic

Helper function that creates an open cylinder of half height 1 and radius 1.


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