igor::iMeshBuilderUtils Namespace Reference

Functions

void addPlane (iMeshBuilder &meshBuilder, float32 width, float32 depth, uint32 segmentsX, uint32 segmentsZ, bool normals)
 
void addSphere (iMeshBuilder &meshBuilder, float32 radius, uint32 segments)
 
void addCylinder (iMeshBuilder &meshBuilder, float32 radius, float32 height, uint32 segments, bool hasCaps)
 
void addBox (iMeshBuilder &meshBuilder, float32 width, float32 height, float32 depth)
 
void addCone (iMeshBuilder &meshBuilder, float32 radius, float32 height, uint32 segments)
 
void addCircle (iMeshBuilder &meshBuilder, float32 radius, uint32 segments)
 
void addRing (iMeshBuilder &meshBuilder, float32 innerRadius, float32 outerRadius, uint32 segments)
 
void addMesh (iMeshBuilder &meshBuilder, const iMeshPtr mesh)
 

Function Documentation

◆ addBox()

void IGOR_API igor::iMeshBuilderUtils::addBox ( iMeshBuilder meshBuilder,
float32  width,
float32  height,
float32  depth 
)

adds a box to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
widthwidth of the box
heightheight of the box
depthdepth of the box

◆ addCircle()

void IGOR_API igor::iMeshBuilderUtils::addCircle ( iMeshBuilder meshBuilder,
float32  radius,
uint32  segments = 16 
)

adds a circle to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
radiusthe radius of the circle
segmentsthe segment count of the circle

◆ addCone()

void IGOR_API igor::iMeshBuilderUtils::addCone ( iMeshBuilder meshBuilder,
float32  radius,
float32  height,
uint32  segments = 16 
)

adds a cone to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
radiusthe radius of the cones base
heightthe height of the cone
segmentsthe segment count of the cone

◆ addCylinder()

void IGOR_API igor::iMeshBuilderUtils::addCylinder ( iMeshBuilder meshBuilder,
float32  radius,
float32  height,
uint32  segments = 16,
bool  hasCaps = true 
)

adds a cylinder to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
radiusthe radius of the cylinder
heightthe height of the cylinder
segmentsthe segment count of the cylinder
hasCapsif true the cylinder will have caps on top and bottom

◆ addMesh()

void IGOR_API igor::iMeshBuilderUtils::addMesh ( iMeshBuilder meshBuilder,
const iMeshPtr  mesh 
)

adds a mesh to the mesh builder

Parameters
meshBuilderthe given mesh builder instance
meshthe mesh to be added

◆ addPlane()

void IGOR_API igor::iMeshBuilderUtils::addPlane ( iMeshBuilder meshBuilder,
float32  width,
float32  depth,
uint32  segmentsX = 16,
uint32  segmentsZ = 16,
bool  normals = true 
)

adds a plane to the given mesh builder instance

the plane is centered at the origin facing up

Parameters
meshBuilderthe given mesh builder instance
widththe width along the x axis
depththe depth along the z axis
segmentsXthe segment count along the x axis
segmentsZthe segment count along the z axis
normalsif true add normals

◆ addRing()

void IGOR_API igor::iMeshBuilderUtils::addRing ( iMeshBuilder meshBuilder,
float32  innerRadius,
float32  outerRadius,
uint32  segments = 16 
)

adds a ring to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
innerRadiusthe inner radius of the ring
outerRadiusthe outer radius of the ring
segmentsthe segment count of the ring

◆ addSphere()

void IGOR_API igor::iMeshBuilderUtils::addSphere ( iMeshBuilder meshBuilder,
float32  radius,
uint32  segments = 16 
)

adds a sphere to the given mesh builder instance

Parameters
meshBuilderthe given mesh builder instance
radiusthe radius of the cylinder
segmentsthe segment count of the cylinder