PrimFit

Engine/source/ts/tsMeshFit.cpp

A helper class for fitting primitives (Box, Sphere, Capsule) to a triangulated mesh.

More...

Public Functions

fitBox(U32 vertCount, const F32 * verts)
fitCapsule(U32 vertCount, const F32 * verts)
fitSphere(U32 vertCount, const F32 * verts)

Detailed Description

A helper class for fitting primitives (Box, Sphere, Capsule) to a triangulated mesh.

Public Attributes

Point3F mBoxSides 
MatrixF mBoxTransform 
F32 mCapHeight 
F32 mCapRadius 
MatrixF mCapTransform 
Point3F mSphereCenter 
F32 mSphereRadius 

Public Functions

PrimFit()

fitBox(U32 vertCount, const F32 * verts)

fitCapsule(U32 vertCount, const F32 * verts)

fitSphere(U32 vertCount, const F32 * verts)

getBoxVolume()

getCapsuleVolume()

getSphereVolume()