My Project
Loading...
Searching...
No Matches
chai3d Namespace Reference

Classes

class  cAlgorithmFingerProxy
 This class implements a finger-proxy force rendering algorithm. More...
 
class  cAlgorithmPotentialField
 This class implements a force algorithms for handling all haptic effects associated with objects. More...
 
class  cAudioBuffer
 This class implements an audio buffer. More...
 
class  cAudioDevice
 This class implements an audio device context. More...
 
class  cAudioSource
 This class implements an audio source. More...
 
class  cBackground
 This class implements a 2D background widget. More...
 
class  cBitmap
 This class implements a 2D bitmap widget. More...
 
class  cCamera
 This class implements a virtual camera. More...
 
class  cCollisionAABB
 This class implements an axis-aligned bounding box collision detector. More...
 
class  cCollisionAABBBox
 This structure implements the boundary nodes of an axis-aligned bounding box. More...
 
class  cCollisionAABBNode
 This structure implements a tree node inside an AABB collision tree. More...
 
class  cCollisionBrute
 This class implements a brute force approach for collision detection. More...
 
struct  cCollisionEvent
 This structure stores the data related to a collision event. More...
 
class  cCollisionRecorder
 This class implements a collision detection recorder that stores all collision events that are reported by a collision detector. More...
 
struct  cCollisionSettings
 This structure stores the collision settings that are passed to a collision detector when querying for collisions. More...
 
struct  cColorb
 This class defines a color using a GLubyte representation for each component. More...
 
struct  cColorf
 This class defines a color using a GLfloat representation for each component. More...
 
class  cDeltaDevice
 This class implements an interface to all Force Dimension and Novint haptic devices. More...
 
class  cDial
 This class implements a 2D dial widget. More...
 
class  cDirectionalLight
 This class implements a directional light source. More...
 
class  cDisplayList
 This class provides support for OpenGL display lists. More...
 
class  cEffectMagnet
 This class implements a haptic magnetic effect. More...
 
class  cEffectStickSlip
 This class implements a haptic stick and slip effect. More...
 
class  cEffectSurface
 This class implements a haptic surface effect. More...
 
class  cEffectVibration
 This class implements a haptic vibration effect. More...
 
class  cEffectViscosity
 This class implements a haptic viscosity effect. More...
 
class  cFileXML
 
class  cFog
 This class implements fog inside the world. More...
 
class  cFont
 This class implements support for 2D fonts. More...
 
class  cFrameBuffer
 This class implements an OpenGL framebuffer. More...
 
class  cFrequencyCounter
 This class implements a frequency counter. More...
 
class  cGenericArray
 This class implements an abstract class for describing geometrical elements composed of vertices. More...
 
class  cGenericCollision
 This class implements a base class for collision detection. More...
 
class  cGenericDevice
 This class implements an abstract class for hardware devices. More...
 
class  cGenericEffect
 This class implements a base class for haptic effects. More...
 
class  cGenericForceAlgorithm
 This class implements a base class for modeling force rendering algorithms. More...
 
class  cGenericHapticDevice
 This class implements a base class for haptic devices. More...
 
class  cGenericLight
 This class implements a base class for modeling light sources. More...
 
class  cGenericObject
 This class implements a base class for all 2D or 3D objects in CHAI3D. More...
 
class  cGenericTexture
 This class implements a base class for textures. More...
 
class  cGenericTool
 This class implements a base class for modeling haptic tools. More...
 
class  cGenericType
 This class implements an abstract type. More...
 
class  cGenericWidget
 This class implements a base class for widgets. More...
 
class  cHapticDeviceHandler
 This class implements a universal haptic device handler. More...
 
struct  cHapticDeviceInfo
 This structure stores all technical specifications of a haptic device. More...
 
class  cHapticPoint
 This class implements a haptic point on a tool. More...
 
class  cHistogram
 This class implements a 2D histogram to display an array of data value. More...
 
class  cImage
 This class implements a 2D image data structure. More...
 
struct  cInteractionEvent
 This structure stores information associated with the interaction of a haptic tool with a shape primitive. More...
 
class  cInteractionRecorder
 This class stores a list of interaction events. More...
 
class  cLabel
 This class implements a 2D label widget to display one line of text. More...
 
class  cLeapDevice
 This class implements an interface to the Leap Motion tracker interface. More...
 
class  cLevel
 This class implements a 2D level display widget. More...
 
struct  cMarchingCubeGridCell
 
struct  cMarchingCubeTriangle
 
class  cMaterial
 This class models material properties. More...
 
struct  cMatrix3d
 This class implements a 3D matrix. More...
 
class  cMesh
 This class implements a 3D polygonal mesh. More...
 
class  cMultiImage
 This class implements an array of 2D image structures. More...
 
class  cMultiMesh
 This class implements a 3D multi-mesh object. More...
 
class  cMultiPoint
 This class implements 3D point cloud object. More...
 
class  cMultiSegment
 This class implements a collection 3D segments. More...
 
class  cMutex
 This class implements a mutex. More...
 
class  cMyCustomDevice
 This class is a interface to support custom haptic devices (template). More...
 
class  cNormalMap
 This class implements a normal map. More...
 
class  cPanel
 This class implements a 2D panel widget. More...
 
class  cPhantomDevice
 This class implements an interface to all 3D-System Phantom haptic devices. More...
 
class  cPointArray
 This class implements an array of 3D points. More...
 
class  cPositionalLight
 This class implements a positional light source. More...
 
class  cPrecisionClock
 This class implements a high precision clock. More...
 
struct  cQuaternion
 This class implements a quaternion. More...
 
struct  cRenderOptions
 This structures provide a containers for storing rendering options that are passed through the scenegraph when rendering the world. (For internal OpenGL use). More...
 
class  cScope
 This class implements a 2D scope to display signals. More...
 
class  cSegmentArray
 This class implements an array of 3D segments. More...
 
class  cShader
 This class implements a shader primitive. More...
 
class  cShaderProgram
 This class implements a shader program primitive. More...
 
class  cShadowMap
 This class implements a shadow map for spot lights (cSpotLight). More...
 
class  cShapeBox
 This class implements a 3D shape box. More...
 
class  cShapeCylinder
 This class implements a 3D shape cylinder. More...
 
class  cShapeEllipsoid
 This class implements a 3D shape ellipsoid. More...
 
class  cShapeLine
 This class implements a 3D line. More...
 
class  cShapeSphere
 This class implements a 3D shape sphere. More...
 
class  cShapeTorus
 This class implements a 3D shape torus. More...
 
class  cSixenseDevice
 This class implements an interface to the Sixense Razor Hydra magnetic tracker interface. More...
 
class  cSocket
 This class implements all methods shared by TCP and UDP sockets. More...
 
class  cSocketTCP
 This class implements all methods specific to TCP sockets. More...
 
class  cSocketUDP
 This class implements all methods specific to UDP sockets. More...
 
class  cSpotLight
 This class implements a spot light source. More...
 
class  cTexture1d
 This class implements a 1D texture map. More...
 
class  cTexture2d
 This class implements a 2D texture map. More...
 
class  cTexture3d
 This class implements a 3D texture map. More...
 
class  cTextureVideo
 This class implements a video texture map. More...
 
class  cThread
 This class implements support for threads. More...
 
class  cToolCursor
 This class implements a cursor using a single haptic point. More...
 
class  cToolGripper
 This class implements a gripper using a two haptic points. More...
 
struct  cTransform
 This class implements a 4D transformation matrix encoded as column-major. More...
 
class  cTriangleArray
 This class implements an array of 3D triangles. More...
 
struct  cVector3d
 This class implements a 3D vector. More...
 
class  cVertexArray
 This class implements array of 3D vertices. More...
 
struct  cVertexArrayOptions
 This structure manages user options when creating vertex arrays. More...
 
class  cVideo
 This class implements support for video files of the OGG/Vorbis format. More...
 
class  cViewPanel
 This class implements a 2D display panel associated with a framebuffer. More...
 
class  cViewport
 This class implements a viewport. More...
 
class  cVoxelObject
 This class implements a 3D volumetric object composed of voxels. More...
 
class  cWorld
 This class implements a virtual world. More...
 
class  cXTouchController
 This class implements support for the X-Touch midi controller. More...
 

Typedefs

typedef std::shared_ptr< cDeltaDevice > cDeltaDevicePtr
 
typedef std::shared_ptr< cGenericHapticDevice > cGenericHapticDevicePtr
 
typedef std::shared_ptr< cLeapDevice > cLeapDevicePtr
 
typedef std::shared_ptr< cMyCustomDevice > cMyCustomDevicePtr
 
typedef std::shared_ptr< cPhantomDevice > cPhantomDevicePtr
 
typedef std::shared_ptr< cSixenseDevice > cSixenseDevicePtr
 
typedef std::shared_ptr< cFrameBuffer > cFrameBufferPtr
 
typedef std::shared_ptr< cFont > cFontPtr
 
typedef std::shared_ptr< cGenericArray > cGenericArrayPtr
 
typedef std::shared_ptr< cImage > cImagePtr
 
typedef std::shared_ptr< cMultiImage > cMultiImagePtr
 
typedef std::shared_ptr< cPointArray > cPointArrayPtr
 
typedef std::shared_ptr< cSegmentArray > cSegmentArrayPtr
 
typedef std::shared_ptr< cTriangleArray > cTriangleArrayPtr
 
typedef std::shared_ptr< cVertexArray > cVertexArrayPtr
 
typedef std::shared_ptr< cVideo > cVideoPtr
 
typedef std::shared_ptr< cGenericTexture > cGenericTexturePtr
 
typedef std::shared_ptr< cMaterial > cMaterialPtr
 
typedef std::shared_ptr< cNormalMap > cNormalMapPtr
 
typedef std::shared_ptr< cTexture1d > cTexture1dPtr
 
typedef std::shared_ptr< cTexture2d > cTexture2dPtr
 
typedef std::shared_ptr< cTexture3d > cTexture3dPtr
 
typedef std::shared_ptr< cTextureVideo > cTextureVideoPtr
 
typedef std::shared_ptr< cShader > cShaderPtr
 
typedef std::shared_ptr< cShaderProgram > cShaderProgramPtr
 

Enumerations

enum  cAABBNodeType { C_AABB_NODE_INTERNAL , C_AABB_NODE_LEAF , C_AABB_NOT_DEFINED }
 Internal AABB Node Types. More...
 
enum  cCollisionType {
  C_COL_NOT_DEFINED , C_COL_SHAPE , C_COL_POINT , C_COL_SEGMENT ,
  C_COL_TRIANGLE , C_COL_VOXEL
}
 
enum  cHapticDeviceModel {
  C_HAPTIC_DEVICE_VIRTUAL , C_HAPTIC_DEVICE_DELTA_3 , C_HAPTIC_DEVICE_DELTA_6 , C_HAPTIC_DEVICE_OMEGA_3 ,
  C_HAPTIC_DEVICE_OMEGA_6L , C_HAPTIC_DEVICE_OMEGA_6R , C_HAPTIC_DEVICE_OMEGA_7L , C_HAPTIC_DEVICE_OMEGA_7R ,
  C_HAPTIC_DEVICE_SIGMA_6L , C_HAPTIC_DEVICE_SIGMA_6R , C_HAPTIC_DEVICE_SIGMA_7L , C_HAPTIC_DEVICE_SIGMA_7R ,
  C_HAPTIC_DEVICE_LAMBDA_7L , C_HAPTIC_DEVICE_LAMBDA_7R , C_HAPTIC_DEVICE_FALCON , C_HAPTIC_DEVICE_MPR ,
  C_HAPTIC_DEVICE_PHANTOM_TOUCH , C_HAPTIC_DEVICE_PHANTOM_OMNI , C_HAPTIC_DEVICE_PHANTOM_DESKTOP , C_HAPTIC_DEVICE_PHANTOM_15_6DOF ,
  C_HAPTIC_DEVICE_PHANTOM_30_6DOF , C_HAPTIC_DEVICE_PHANTOM_OTHER , C_TRACKER_DEVICE_SIXENSE , C_TRACKER_DEVICE_LEAP ,
  C_HAPTIC_DEVICE_CUSTOM
}
 
enum  cXTouchModel { C_XTOUCH_NOT_DETECTED , C_XTOUCH_COMPACT , C_XTOUCH_MINI }
 
enum  cStereoMode {
  C_STEREO_DISABLED , C_STEREO_ACTIVE , C_STEREO_PASSIVE_LEFT_RIGHT , C_STEREO_PASSIVE_TOP_BOTTOM ,
  C_STEREO_PASSIVE_DUAL_DISPLAY
}
 
enum  cEyeMode { C_STEREO_LEFT_EYE , C_STEREO_RIGHT_EYE }
 
enum  cEulerOrder {
  C_EULER_ORDER_XYZ , C_EULER_ORDER_XYX , C_EULER_ORDER_XZY , C_EULER_ORDER_XZX ,
  C_EULER_ORDER_YZX , C_EULER_ORDER_YZY , C_EULER_ORDER_YXZ , C_EULER_ORDER_YXY ,
  C_EULER_ORDER_ZXY , C_EULER_ORDER_ZXZ , C_EULER_ORDER_ZYX , C_EULER_ORDER_ZYZ
}
 
enum  cShaderType { C_VERTEX_SHADER = 0x0001 , C_FRAGMENT_SHADER = 0x0002 , C_GEOMETRY_SHADER = 0X0003 }
 
enum  CThreadPriority { CTHREAD_PRIORITY_GRAPHICS , CTHREAD_PRIORITY_HAPTICS }
 
enum  cHistogramMode { C_HISTOGRAM_MODE_LINE , C_HISTOGRAM_MODE_LINE_FILL , C_HISTOGRAM_MODE_BAR }
 

Functions

void XTouchInterfaceCallback (double a_deltatime, std::vector< unsigned char > *a_message, void *a_userData)
 
bool cLoadFileMP3 (const std::string &a_filename, unsigned char *&a_data, unsigned int *a_sizeInBytes, unsigned short *a_bitsPerSample, double *a_samplingRate, unsigned int *a_numSamples, bool *a_stereo)
 This function loads a MP3 audio file.
 
bool cLoadFileWAV (const std::string &a_filename, unsigned char *&a_data, unsigned int *a_sizeInBytes, unsigned short *a_bitsPerSample, double *a_samplingRate, unsigned int *a_numSamples, bool *a_stereo)
 This function loads a WAV audio file.
 
bool cLoadFileBMP (cImage *a_image, const std::string &a_filename)
 This function loads a BMP image file.
 
bool cSaveFileBMP (cImage *a_image, const std::string &a_filename)
 This function saves a BMP image file.
 
bool cLoadFileGIF (cImage *a_image, const std::string &a_filename)
 This function loads a GIF image file.
 
bool cSaveFileGIF (cImage *a_image, const std::string &a_filename)
 This function saves a GIF image file.
 
bool cLoadFileJPG (cImage *a_image, const std::string &a_filename)
 This function loads a JPG image file.
 
bool cLoadJPG (cImage *a_image, const void *a_buffer, unsigned int a_len)
 This function loads a PNG image buffer.
 
bool cSaveFileJPG (cImage *a_image, const std::string &a_filename)
 This function saves a JPG image file.
 
bool cSaveJPG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len)
 This function saves a JPG image buffer.
 
bool cLoadFilePNG (cImage *a_image, const std::string &a_filename)
 This function loads a PNG image file.
 
bool cLoadPNG (cImage *a_image, const unsigned char *a_buffer, unsigned int a_len)
 This function loads a PNG image buffer.
 
bool cSaveFilePNG (cImage *a_image, const std::string &a_filename)
 This function saves a PNG image file.
 
bool cSavePNG (cImage *a_image, unsigned char **a_buffer, unsigned int *a_len)
 This function saves a PNG image buffer.
 
bool cLoadFilePPM (cImage *a_image, const std::string &a_filename)
 This function loads a PPM image file.
 
bool cSaveFilePPM (cImage *a_image, const std::string &a_filename)
 This function saves a PPM image file.
 
bool cLoadFileRAW (cImage *a_image, const std::string &a_filename)
 This function loads a RAW image file.
 
bool cSaveFileRAW (cImage *a_image, const std::string &a_filename)
 This function saves a RAW image file.
 
bool cLoadFileSTB (cImage *a_image, const std::string &a_filename)
 This function loads an image file.
 
bool cLoadFile3DS (cMultiMesh *a_object, const std::string &a_filename)
 This function loads a 3DS model file.
 
bool cSaveFile3DS (cMultiMesh *a_object, const std::string &a_filename)
 This function saves a 3DS model file.
 
bool cLoadFileOBJ (cMultiMesh *a_object, const std::string &a_filename)
 This function loads an OBJ model file.
 
bool cSaveFileOBJ (cMultiMesh *a_object, const std::string &a_filename)
 This function saves an OBJ model file.
 
bool cLoadFileSTL (cMultiMesh *a_object, const std::string &a_filename)
 This function loads an STL model file.
 
bool cSaveFileSTL (cMultiMesh *a_object, const std::string &a_filename)
 This function saves an STL model file.
 
bool cSaveFileTRI (cMultiMesh *a_object, const std::string &a_filename)
 This function saves an TRI model file.
 
GLubyte cColorFtoB (GLfloat a_value)
 This function converts a color component from GLfloat type to GLubyte type.
 
GLfloat cColorBtoF (GLubyte a_value)
 This function converts a color component from GLubyte type to GLfloat type.
 
void cLookAt (const cVector3d &a_eye, const cVector3d &a_at, const cVector3d &a_up)
 This function aligns the current z-axis with a reference frame (similar to function gluLookAt).
 
void cDrawFrame (const double &a_scale=1.0)
 This function draws an x-y-z frame.
 
void cDrawFrame (const double &a_axisLengthScale, const double &a_axisThicknessScale)
 This function draws an x-y-z frame.
 
void cDrawWireBox (const double &a_xMin, const double &a_xMax, const double &a_yMin, const double &a_yMax, const double &a_zMin, const double &a_zMax)
 This function draws a box using lines.
 
void cDrawSphere (const double &a_radius, const unsigned int a_numSlices=10, const unsigned int a_numStacks=10)
 This function draws a sphere.
 
void cDrawArrow (const cVector3d &a_arrowStart, const cVector3d &a_arrowTip, const double a_width=0.05)
 This function draws an arrow on the z-axis using a cone and a cylinder.
 
void cDrawSolidTorus (const double &a_innerRadius, const double &a_outerRadius, const int a_sides, const int a_rings)
 This function draws a torus.
 
void cCreatePlane (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a plane.
 
void cCreatePlane2 (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_colorTopLeft=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorTopRight=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorBottomLeft=cColorf(1.0, 1.0, 1.0, 1.0), const cColorf &a_colorBottomRight=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a plane.
 
void cCreateMap (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const unsigned int a_numSidesX=10, const unsigned int a_numSidesY=10, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a height map. Similar to a map, but with more triangles.
 
void cCreateDisk (cMesh *a_mesh, const double &a_radiusX, const double &a_radiusY, const unsigned int a_numSlices=36, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a disk.
 
void cCreatePanel (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_radiusCorners=0, const int &a_numSegmentsPerCorner=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a panel with optional rounded corners.
 
void cCreatePanel2 (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_cornerTopLeftRadius=0, const double &a_cornerTopRightRadius=0, const double &a_cornerBottomLeftRadius=0, const double &a_cornerBottomRightRadius=0, const int &a_numSegmentsPerCorner=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_colorTopLeft=cColorf(0.5f, 0.5f, 0.5f, 1.0f), const cColorf &a_colorTopRight=cColorf(0.5f, 0.5f, 0.5f, 1.0f), const cColorf &a_colorBottomLeft=cColorf(0.3f, 0.3f, 0.3f, 1.0f), const cColorf &a_colorBottomRight=cColorf(0.3f, 0.3f, 0.3f, 1.0f))
 This function creates a panel with optional rounded corners.
 
void cCreateBox (cMesh *a_mesh, const double &a_lengthX, const double &a_lengthY, const double &a_lengthZ, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a box.
 
void cCreateCylinder (cMesh *a_mesh, const double &a_height, const double &a_radius, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const unsigned int a_numRings=1, const bool a_includeTop=true, const bool a_includeBottom=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a cylinder.
 
void cCreateCone (cMesh *a_mesh, const double &a_height, const double &a_radiusBottom, const double &a_radiusTop=0.0, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const unsigned int a_numRings=1, const bool a_includeBottom=true, const bool a_includeTop=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a cone.
 
void cCreatePipe (cMesh *a_mesh, const double &a_height, const double &a_innerRadius, const double &a_outerRadius, const unsigned int a_numSides=32, const unsigned int a_numHeightSegments=1, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a pipe.
 
void cCreateSphere (cMesh *a_mesh, const double &a_radius, const unsigned int a_numSlices=32, const unsigned int a_numStacks=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a sphere.
 
void cCreateEllipsoid (cMesh *a_mesh, const double &a_radiusX, const double &a_radiusY, const double &a_radiusZ, const unsigned int a_numSlices=32, const unsigned int a_numStacks=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates an ellipsoid.
 
void cCreateRing (cMesh *a_mesh, const double &a_innerRadius, const double &a_outerRadius, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a ring.
 
void cCreateRingSection (cMesh *a_mesh, const double &a_innerRadius0, const double &a_innerRadius1, const double &a_outerRadius, const double &a_coverageAngleDEG=360, const bool a_includeExtremityFaces=true, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a ring section.
 
void cCreateSquarePyramid (cMesh *a_mesh, const double &a_height, const double &a_baseSize, const bool a_includeBottom=true, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a pyramid.
 
void cCreateTeaPot (cMesh *a_mesh, const double &a_size, const int &a_quality=4, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a tea pot.
 
void cCreateArrow (cMesh *a_mesh, const double &a_length=0.4, const double &a_radiusShaft=0.01, const double &a_lengthTip=0.1, const double &a_radiusTip=0.03, const bool a_includeTipsAtBothExtremities=false, const unsigned int a_numSides=32, const cVector3d &a_direction=cVector3d(0, 0, 1), const cVector3d &a_pos=cVector3d(0, 0, 0), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates an arrow.
 
void cCreateCircularArrow (cMesh *a_mesh, const double &a_innerRadius0=0.05, const double &a_innerRadius1=0.05, const double &a_outerRadius=0.3, const double &a_lengthTip=0.2, const double &a_radiusTip=0.1, const double &a_coverageAngleDEG=270, const bool a_includeTipsAtBothExtremities=false, const unsigned int a_numSides=32, const unsigned int a_numRings=32, const cVector3d &a_direction=cVector3d(0, 0, 1), const cVector3d &a_pos=cVector3d(0, 0, 0), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates an circular arrow.
 
void cCreateBezierPatch (cMesh *a_mesh, const cVector3d *a_controlPoints, const int a_numDivisions=8, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a Bezier patch.
 
void cCreateTeaPot (cMesh *a_mesh, const double &a_size, const cVector3d &a_pos=cVector3d(0, 0, 0), const cMatrix3d &a_rot=cIdentity3d(), const cColorf &a_color=cColorf(1.0, 1.0, 1.0, 1.0))
 This function creates a tea pot.
 
bool SECTION_RENDER_PARTS_WITH_MATERIALS (cRenderOptions a_options, bool a_useTransparency)
 
bool SECTION_RENDER_OPAQUE_PARTS_ONLY (cRenderOptions a_options)
 
cVector3d cEvalBezierCurve (const cVector3d *a_controlPoints, double a_t)
 This function determines the position of a point along a Bezier curve.
 
cVector3d cEvalBezierPatch (const cVector3d *a_controlPoints, double a_u, double a_v)
 This function determines the position of a point along a Bezier patch.
 
cVector3d cDerivBezier (const cVector3d *a_controlPoints, double a_t)
 This function determines the derivative of a point along a Bezier curve.
 
cVector3d cDerivUBezier (const cVector3d *a_controlPoints, double a_u, double a_v)
 This function determines the derivative of a point on a Bezier patch along the u parametric direction.
 
cVector3d cDerivVBezier (const cVector3d *a_controlPoints, double a_u, double a_v)
 This function determines the derivative of a point on a Bezier patch along the v parametric direction.
 
cVector3d cSurfaceNormalBezier (const cVector3d *a_controlPoints, double a_u, double a_v)
 This function determines the surface normal at a point on a Bezier patch.
 
double cTriangleArea (const cVector3d &a_vertex0, const cVector3d &a_vertex1, const cVector3d &a_vertex2)
 This function computes the area of a triangle.
 
cVector3d cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint, const cVector3d &a_planeNormal)
 This function computes the projection of a point onto a plane.
 
cVector3d cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint0, const cVector3d &a_planePoint1, const cVector3d &a_planePoint2)
 This function computes the projection of a point onto a plane.
 
void cProjectPointOnPlane (const cVector3d &a_point, const cVector3d &a_planePoint0, const cVector3d &a_planePoint1, const cVector3d &a_planePoint2, double &a_r01, double &a_r02)
 This function computes the projection of a point onto a plane.
 
cVector3d cProjectPointOnLine (const cVector3d &a_point, const cVector3d &a_pointOnLine, const cVector3d &a_directionOfLine)
 This function computes the projection of a point onto a line.
 
cVector3d cProjectPointOnSegment (const cVector3d &a_point, const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB)
 This function computes the projection of a point onto a segment.
 
cVector3d cProjectPointOnDiskXY (const cVector3d &a_point, const double &a_height, const double &a_radius)
 This function computes the projection of a point onto a disk.
 
cVector3d cProjectPointOnTriangle (const cVector3d &a_point, const cVector3d &a_vertex0, const cVector3d &a_vertex1, const cVector3d &a_vertex2)
 This function computes the projection of a point onto a triangle.
 
cVector3d cProject (const cVector3d &a_vector0, const cVector3d &a_vector1)
 This function computes the projection of a vector V0 onto a vector V1.
 
double cDistanceToLine (const cVector3d &a_point, const cVector3d &a_linePoint1, const cVector3d &a_linePoint2)
 This function computes the distance between a point and a line.
 
cVector3d cComputeSurfaceNormal (const cVector3d &a_surfacePoint0, const cVector3d &a_surfacePoint1, const cVector3d &a_surfacePoint2)
 This function computes the surface normal of a plane.
 
bool cBoxContains (const cVector3d &a_point, const cVector3d &a_boxMin, const cVector3d &a_boxMax)
 This function checks if a point is contained in a box.
 
int cIntersectionSegmentPlane (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_planePos, const cVector3d &a_planeNormal, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal)
 This function computes the intersection between a segment and a plane.
 
int cIntersectionSegmentDisk (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_diskPos, const cVector3d &a_diskNormal, const double &a_diskRadius, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal)
 This function computes the intersection between a segment and a disk.
 
int cIntersectionSegmentSphere (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_spherePos, const double &a_sphereRadius, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1)
 This function computes the intersection between a segment and a sphere.
 
int cIntersectionSegmentEllipsoid (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_pos, const double &a_radiusX, const double &a_radiusY, const double &a_radiusZ, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1)
 This function computes the intersection between a segment and a sphere.
 
int cIntersectionSegmentToplessCylinder (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_cylinderPointA, const cVector3d &a_cylinderPointB, const double &a_cylinderRadius, cVector3d &a_collisionPoint0, cVector3d &a_collisionNormal0, double &a_collisionPointRelPosAB0, cVector3d &a_collisionPoint1, cVector3d &a_collisionNormal1, double &a_collisionPointRelPosAB1)
 This function computes the intersection between a segment and a topless cylinder.
 
int cIntersectionSegmentCylinder (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const double &a_baseRadius, const double &a_topRadius, const double &a_height, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal)
 This function computes the nearest intersection point between a segment and a cylinder.
 
int cIntersectionSegmentBox (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_boxMin, const cVector3d &a_boxMax, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal)
 This function computes the nearest intersection point between a segment and a box.
 
int cIntersectionSegmentTorus (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const double &a_innerRadius, const double &a_outerRadius, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal)
 This function computes the nearest intersection point between a segment and a torus.
 
bool cIntersectionSegmentTriangle (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, const cVector3d &a_triangleVertex0, const cVector3d &a_triangleVertex1, const cVector3d &a_triangleVertex2, const bool a_reportFrontSideCollision, const bool a_reportBackSideCollision, cVector3d &a_collisionPoint, cVector3d &a_collisionNormal, double &a_collisionPosVertex01, double &a_collisionPosVertex02)
 This function computes the intersection between a segment and a triangle.
 
cVector3d cVertexInterpolation (double a_isolevel, cVector3d a_p1, cVector3d a_p2, double a_valp1, double a_valp2)
 This function linearly interpolate the position where an isosurface cuts an edge between two vertices, each with their own scalar value.
 
int cPolygonize (cMarchingCubeGridCell a_grid, double a_isolevel, cMarchingCubeTriangle *a_triangles)
 This function calculates the triangular facets required to represent the isosurface through the cell.
 
bool cCheckBit (const unsigned int &a_value, const unsigned int &a_bitPosition)
 This function checks if a given bit is enabled.
 
unsigned int cSetBit (const unsigned int &a_data, const unsigned int &a_bitPosition, const bool a_value)
 This function sets the value of a specified bit of an unsigned integer.
 
bool cZero (const double &a_value, const double &a_tolerance=C_TINY)
 This function checks if a value is equal to or almost near zero.
 
bool cEqual (const double &a_value1, const double &a_value2, const double &a_tolerance=C_TINY)
 This function checks if a value is equal to a given value.
 
template<class T >
T cAbs (const T &a_value)
 This function computes an absolute value.
 
template<class T >
double cSign (const T &a_value)
 This function computes the sign of a value.
 
template<class T >
T cMax (const T &a_value1, const T &a_value2)
 This function computes the maximum value between two values.
 
template<class T >
T cMin (const T &a_value1, const T &a_value2)
 This function computes the minimum value between two values.
 
template<class T >
T cMax3 (const T &a_value1, const T &a_value2, const T &a_value3)
 This function computes the maximum value between three values.
 
template<class T >
T cMin3 (const T &a_value1, const T &a_value2, const T &a_value3)
 This function computes the minimum value between three values.
 
template<class T >
void cSwap (T &a_value1, T &a_value2)
 This function swaps two elements.
 
template<class T >
T cLerp (const double &a_level, const T &a_value1, const T &a_value2)
 This function computes a linear interpolation between two values.
 
template<class T >
T cClamp (const T &a_value, const T &a_low, const T &a_high)
 This function clamps a value to a specified range.
 
template<class T >
T cClamp0 (const T &a_value)
 This function clamps a value to a value ranged between 0 and infinity.
 
double cClamp01 (const double &a_value)
 This function clamps a value to a value ranged between 0.0 and 1.0.
 
template<class T , class V >
bool cContains (const T &a_value, const V &a_low, const V &a_high)
 This function checks whether a value is within a specified range.
 
double cSqr (const double &a_value)
 This function computes the square of a scalar.
 
double cSqrt (const double &a_value)
 This function computes the square root of a scalar.
 
double cCbrt (const double &a_value)
 This function computes the cubic root of a scalar.
 
double cModuloRange (double a_value, double a_min, double a_max)
 This method computes the modulo of a double within a range.
 
double cCosDeg (const double &a_angleDeg)
 Compute the cosine of an angle defined in degrees.
 
double cSinDeg (const double &a_angleDeg)
 This function computes the sine of an angle defined in degrees.
 
double cTanDeg (const double &a_angleDeg)
 This function computes the tangent of an angle defined in degrees.
 
double cCosRad (const double &a_angleRad)
 This function computes the cosine of an angle defined in radians.
 
double cSinRad (const double &a_angleRad)
 This function computes the sine of an angle defined in radians.
 
double cTanRad (const double &a_angleRad)
 This function computes the tangent of an angle defined in radians.
 
double cDegToRad (const double &a_angleDeg)
 This function converts an angle from degrees to radians.
 
double cRadToDeg (const double &a_angleRad)
 This function converts an angle from radians to degrees.
 
int cNumDigits (int a_value)
 This function computes the number of digits that compose a given integer.
 
cVector3d cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the addition of two vectors.
 
cVector3d cAdd (const cVector3d &a_vector1, const cVector3d &a_vector2, const cVector3d &a_vector3)
 This function computes the addition of three vectors.
 
cVector3d cSub (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the subtraction of two vectors.
 
cVector3d cNegate (const cVector3d &a_vector)
 This function computes the negated vector.
 
cVector3d cMul (const double &a_value, const cVector3d &a_vector)
 This function computes the multiplication of a vector by a scalar.
 
cVector3d cDiv (const double &a_value, const cVector3d &a_vector)
 This function computes the division of a vector by a scalar.
 
cVector3d cCross (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the cross product between two vectors.
 
double cDot (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the dot product between two vectors.
 
cVector3d cNormalize (const cVector3d &a_vector)
 This function computes the normalized vector.
 
double cDistance (const cVector3d &a_point1, const cVector3d &a_point2)
 This function computes the Euclidean distance between two points.
 
double cDistanceSq (const cVector3d &a_point1, const cVector3d &a_point2)
 This function computes the squared distance between two points.
 
bool cEqualPoints (const cVector3d &a_point1, const cVector3d &a_point2, const double a_epsilon=C_SMALL)
 This function determines whether two vectors are equal (i.e. represent the same point).
 
cMatrix3d cIdentity3d (void)
 This function return a 3x3 identity matrix.
 
cMatrix3d cAdd (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 This function computes the addition between two matrices.
 
cMatrix3d cSub (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 This function computes the subtraction between two matrices.
 
cMatrix3d cRotEulerRad (const double &a_angleRad1, const double &a_angleRad2, const double &a_angleRad3, const cEulerOrder a_eulerOrder, const bool a_useIntrinsicEulerModel=true)
 This function builds a rotation matrix from a set of Euler angles defined in radians.
 
cMatrix3d cRotEulerDeg (const double &a_angleDeg1, const double &a_angleDeg2, const double &a_angleDeg3, const cEulerOrder a_eulerOrder, const bool a_useIntrinsicEulerModel=true)
 This function builds a rotation matrix from a set of Euler angles defined in degrees.
 
cMatrix3d cRotAxisAngleRad (const double &a_axisX, const double &a_axisY, const double &a_axisZ, const double &a_angleRad)
 This function builds a rotation matrix from an axis-angle representation.
 
cMatrix3d cRotAxisAngleDeg (const double &a_axisX, const double &a_axisY, const double &a_axisZ, const double &a_angleDeg)
 This function builds a rotation matrix from an axis-angle representation.
 
cMatrix3d cMul (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 This function computes the multiplication of two matrices.
 
cVector3d cMul (const cMatrix3d &a_matrix, const cVector3d &a_vector)
 This function computes the multiplication of a matrix and a vector.
 
cMatrix3d cTranspose (const cMatrix3d &a_matrix)
 This function computes the transpose of a matrix.
 
cMatrix3d cInverse (const cMatrix3d &a_matrix)
 This function computes the inverse of a matrix.
 
double cAngle (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the angle in radians between two vectors.
 
double cCosAngle (const cVector3d &a_vector1, const cVector3d &a_vector2)
 This function computes the cosine of the angle between two vectors.
 
cVector3d operator* (const cMatrix3d &a_matrix, const cVector3d &a_vector)
 An overloaded * operator for matrix/vector multiplication.
 
cMatrix3d operator* (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 An overloaded * operator for matrix/matrix multiplication.
 
cMatrix3d operator* (const double &a_scalar, const cMatrix3d &a_matrix)
 An overloaded * operator for scalar/matrix multiplication.
 
cMatrix3d operator+ (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 An overloaded + operator for matrix/matrix addition.
 
cMatrix3d operator- (const cMatrix3d &a_matrix1, const cMatrix3d &a_matrix2)
 An overloaded - operator for matrix/matrix addition.
 
int cSolveLinear (double a_coefficient[2], double a_solution[1])
 This function computes the solution of a linear equation.
 
int cSolveQuadric (double a_coefficient[3], double a_solution[2])
 This function computes the solution of a quadric equation.
 
int cSolveCubic (double a_coefficient[4], double a_solution[3])
 This function computes the solution of a cubic equation.
 
int cSolveQuartic (double a_coefficient[5], double a_solution[4])
 This function computes the solution of a quartic equation.
 
cQuaternion operator* (const cQuaternion &a_quaternion, const double a_scale)
 An overloaded * operator for quaternion/scalar multiplication.
 
cQuaternion operator* (const double a_scale, const cQuaternion &a_quaternion)
 An overloaded * operator for scalar/quaternion multiplication.
 
cQuaternion operator* (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1)
 An overloaded * operator for quaternion multiplication.
 
cQuaternion operator+ (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1)
 An overloaded + operator for quaternion addition.
 
cQuaternion operator- (const cQuaternion &a_quaternion0, const cQuaternion &a_quaternion1)
 An overloaded - operator for quaternion subtraction.
 
cTransform operator* (const cTransform &a_matrix1, const cTransform &a_matrix2)
 
cVector3d operator* (const cTransform &a_matrix, const cVector3d &a_vector)
 
cVector3d operator* (const cVector3d &a_vector, const double a_scale)
 An overloaded * operator for vector/scalar multiplication.
 
cVector3d operator* (const double a_scale, const cVector3d &a_vector)
 An overloaded * operator for scalar/vector multiplication.
 
cVector3d operator/ (const cVector3d &a_vector, const double a_scale)
 An overloaded / operator for vector/scalar division.
 
cVector3d operator+ (const cVector3d &a_vector0, const cVector3d &a_vector1)
 An overloaded + operator for vector/vector addition.
 
cVector3d operator- (const cVector3d &a_vector0, const cVector3d &a_vector1)
 An overloaded - operator for vector/vector subtraction.
 
cVector3d operator- (const cVector3d &a_vector0)
 An overloaded - operator for vector negation.
 
double operator* (const cVector3d &a_vector0, const cVector3d &a_vector1)
 An overloaded * operator for vector/vector dotting.
 
int cSocketInitialize ()
 This function initializes a TCP or UDP socket.
 
int cSocketBlock (int a_socket, bool a_block)
 This function configures a TCP or UDP socket blocking mode.
 
void cSocketClose (int &a_socket)
 This function closes a TCP or UDP socket.
 
void cSocketCleanup ()
 This function clears all flags on a TCP or UDP socket.
 
int cSocketSetTimeout (int a_socket, double a_timeout)
 This function sets the timeout associated with a TCP or UDP socket.
 
double cSocketGetTimeout (int a_socket)
 This function retrieves the timeout associated with a TCP or UDP socket.
 
int cSocketGetLocalIP (int a_index, sockaddr_in *a_sin)
 This function retrieves the local IP address.
 
cBitmap * NEW_CHAI3D_WHITE_LOGO ()
 
cBitmap * NEW_CHAI3D_BLACK_LOGO ()
 
cFontPtr NEW_CFONT_CALIBRI_144 ()
 
cFontPtr NEW_CFONT_CALIBRI_16 ()
 
cFontPtr NEW_CFONT_CALIBRI_18 ()
 
cFontPtr NEW_CFONT_CALIBRI_20 ()
 
cFontPtr NEW_CFONT_CALIBRI_22 ()
 
cFontPtr NEW_CFONT_CALIBRI_24 ()
 
cFontPtr NEW_CFONT_CALIBRI_26 ()
 
cFontPtr NEW_CFONT_CALIBRI_28 ()
 
cFontPtr NEW_CFONT_CALIBRI_32 ()
 
cFontPtr NEW_CFONT_CALIBRI_36 ()
 
cFontPtr NEW_CFONT_CALIBRI_40 ()
 
cFontPtr NEW_CFONT_CALIBRI_72 ()
 
cFontPtr NEW_CFONT_CONSOLAS_16 ()
 
cFontPtr NEW_CFONT_CONSOLAS_18 ()
 
cFontPtr NEW_CFONT_CONSOLAS_20 ()
 
cFontPtr NEW_CFONT_CONSOLAS_22 ()
 
cFontPtr NEW_CFONT_CONSOLAS_24 ()
 
cFontPtr NEW_CFONT_CONSOLAS_28 ()
 
cFontPtr NEW_CFONT_CONSOLAS_32 ()
 
void cSleepMs (const unsigned int a_interval)
 This function suspends the execution of the current thread for a specified interval.
 
std::string cGetCurrentPath ()
 This function retrieves the absolute path of the current executable.
 
const std::string cGetVersion ()
 This function returns a string containing the CHAI3D library version.
 
void cGetVersion (int &a_major, int &a_minor, int &a_patch)
 This retrieves the CHAI3D library version numbers.
 
int cStrLength (const char *a_input)
 This function computes the length of an ANSI string.
 
std::string cGetFilename (const std::string &a_input, const bool a_includeFileExtension=true)
 This function extracts the filename with or without its extension.
 
std::string cGetFileExtension (const std::string &a_input, const bool a_includeDot=false)
 This function extracts the file extension of a file.
 
std::string cGetDirectory (const std::string &a_input)
 This function extracts the directory path from the full file path.
 
std::string cReplaceFileExtension (const std::string &a_input, const std::string &a_extension)
 This function replaces the file extension of a filename with a new extension name.
 
std::string cStr (const bool a_value)
 This function converts a boolean into a string.
 
std::string cStr (const int a_value)
 This function converts an integer into a string.
 
std::string cStr (const unsigned int a_value)
 This function converts an unsigned integer into a string.
 
std::string cStr (const float a_value, const unsigned int a_precision=2)
 This function converts a float into a string.
 
std::string cStr (const double a_value, const unsigned int a_precision=2)
 This function converts a double into a string.
 
std::string cStrToLower (const std::string &a_input)
 This function converts a string to lower case.
 

Variables

const unsigned int C_MAX_DEVICES = 16
 
const int C_DEVICE_HISTORY_SIZE = 200
 Size of buffer.
 
const double C_DEVICE_MIN_ACQUISITION_TIME = 0.0001
 Smallest time interval between two position/status reads from a haptic device.
 
const int C_MAX_DOF = 16
 Maximum number of joint of a haptic device.
 
const unsigned int C_MAX_HAPTIC_DEVICES = 16
 Maximum number of devices that can be connected at the same time.
 
const int C_XTOUCH_MAX_BUTTONS = 200
 
const int C_XTOUCH_MAX_SLIDERS = 200
 
const int C_XTOUCH_MAX_DIALS = 200
 
const int C_EFFECT_MAX_IDN = 16
 
bool g_objLoaderUnifyVerticesWithSamePosition = false
 
bool g_objLoaderShouldGenerateExtraVertices = false
 
bool g_objLoaderMinimizeNumberOfMeshes = true
 
const bool C_ERROR = false
 Function returns with an error.
 
const bool C_SUCCESS = true
 Function returns successfully.
 
const double C_TWO_PI = 6.28318530717958647692
 Two PI constant.
 
const double C_PI = 3.14159265358979323846
 PI constant.
 
const double C_PI_DIV_2 = 1.57079632679489661923
 PI constant divided by two.
 
const double C_DEG2RAD = 0.01745329252
 Conversion from degrees to radians.
 
const double C_RAD2DEG = 57.2957795131
 Conversion from radians to degrees.
 
const double C_TINY = 1e-49
 Smallest value near zero for a double.
 
const double C_SMALL = 0.000000001
 Small value near zero.
 
const double C_LARGE = 1e+49
 Biggest value for a double.
 
const double C_LARGE_FLOAT = 1e37
 Biggest value for a float.
 
const unsigned char CHAI3D_LOGO_WHITE_BYTEARRAY []
 
const unsigned char CHAI3D_LOGO_BLACK_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_144_WIDTH = 1024
 
const unsigned int CFONT_CALIBRI_144_HEIGHT = 1024
 
const unsigned int CFONT_CALIBRI_144_CHARSET_BASE = 112
 
const unsigned int CFONT_CALIBRI_144_CHARSET_LINEHEIGHT = 144
 
const unsigned int CFONT_CALIBRI_144_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_144_CHARSET []
 
const unsigned char CFONT_CALIBRI_144_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_16_WIDTH = 128
 
const unsigned int CFONT_CALIBRI_16_HEIGHT = 128
 
const unsigned int CFONT_CALIBRI_16_CHARSET_BASE = 12
 
const unsigned int CFONT_CALIBRI_16_CHARSET_LINEHEIGHT = 16
 
const unsigned int CFONT_CALIBRI_16_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_16_CHARSET []
 
const unsigned char CFONT_CALIBRI_16_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_18_WIDTH = 128
 
const unsigned int CFONT_CALIBRI_18_HEIGHT = 128
 
const unsigned int CFONT_CALIBRI_18_CHARSET_BASE = 14
 
const unsigned int CFONT_CALIBRI_18_CHARSET_LINEHEIGHT = 18
 
const unsigned int CFONT_CALIBRI_18_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_18_CHARSET []
 
const unsigned char CFONT_CALIBRI_18_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_20_WIDTH = 128
 
const unsigned int CFONT_CALIBRI_20_HEIGHT = 128
 
const unsigned int CFONT_CALIBRI_20_CHARSET_BASE = 16
 
const unsigned int CFONT_CALIBRI_20_CHARSET_LINEHEIGHT = 20
 
const unsigned int CFONT_CALIBRI_20_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_20_CHARSET []
 
const unsigned char CFONT_CALIBRI_20_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_22_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_22_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_22_CHARSET_BASE = 17
 
const unsigned int CFONT_CALIBRI_22_CHARSET_LINEHEIGHT = 22
 
const unsigned int CFONT_CALIBRI_22_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_22_CHARSET []
 
const unsigned char CFONT_CALIBRI_22_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_24_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_24_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_24_CHARSET_BASE = 19
 
const unsigned int CFONT_CALIBRI_24_CHARSET_LINEHEIGHT = 24
 
const unsigned int CFONT_CALIBRI_24_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_24_CHARSET []
 
const unsigned char CFONT_CALIBRI_24_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_26_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_26_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_26_CHARSET_BASE = 20
 
const unsigned int CFONT_CALIBRI_26_CHARSET_LINEHEIGHT = 26
 
const unsigned int CFONT_CALIBRI_26_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_26_CHARSET []
 
const unsigned char CFONT_CALIBRI_26_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_28_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_28_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_28_CHARSET_BASE = 22
 
const unsigned int CFONT_CALIBRI_28_CHARSET_LINEHEIGHT = 28
 
const unsigned int CFONT_CALIBRI_28_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_28_CHARSET []
 
const unsigned char CFONT_CALIBRI_28_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_32_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_32_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_32_CHARSET_BASE = 25
 
const unsigned int CFONT_CALIBRI_32_CHARSET_LINEHEIGHT = 32
 
const unsigned int CFONT_CALIBRI_32_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_32_CHARSET []
 
const unsigned char CFONT_CALIBRI_32_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_36_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_36_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_36_CHARSET_BASE = 28
 
const unsigned int CFONT_CALIBRI_36_CHARSET_LINEHEIGHT = 36
 
const unsigned int CFONT_CALIBRI_36_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_36_CHARSET []
 
const unsigned char CFONTCALIBRI36_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_40_WIDTH = 256
 
const unsigned int CFONT_CALIBRI_40_HEIGHT = 256
 
const unsigned int CFONT_CALIBRI_40_CHARSET_BASE = 31
 
const unsigned int CFONT_CALIBRI_40_CHARSET_LINEHEIGHT = 40
 
const unsigned int CFONT_CALIBRI_40_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_40_CHARSET []
 
const unsigned char CFONT_CALIBRI_40_BYTEARRAY []
 
const unsigned int CFONT_CALIBRI_72_WIDTH = 1024
 
const unsigned int CFONT_CALIBRI_72_HEIGHT = 1024
 
const unsigned int CFONT_CALIBRI_72_CHARSET_BASE = 56
 
const unsigned int CFONT_CALIBRI_72_CHARSET_LINEHEIGHT = 72
 
const unsigned int CFONT_CALIBRI_72_CHARSET_PAGES = 1
 
const int CFONT_CALIBRI_72_CHARSET []
 
const unsigned char CFONT_CALIBRI_72_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_16_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_16_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_16_CHARSET_BASE = 13
 
const unsigned int CFONT_CONSOLAS_16_CHARSET_LINEHEIGHT = 16
 
const unsigned int CFONT_CONSOLAS_16_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_16_CHARSET []
 
const unsigned char CFONT_CONSOLAS_16_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_18_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_18_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_18_CHARSET_BASE = 14
 
const unsigned int CFONT_CONSOLAS_18_CHARSET_LINEHEIGHT = 18
 
const unsigned int CFONT_CONSOLAS_18_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_18_CHARSET []
 
const unsigned char CFONT_CONSOLAS_18_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_20_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_20_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_20_CHARSET_BASE = 16
 
const unsigned int CFONT_CONSOLAS_20_CHARSET_LINEHEIGHT = 20
 
const unsigned int CFONT_CONSOLAS_20_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_20_CHARSET []
 
const unsigned char CFONT_CONSOLAS_20_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_22_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_22_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_22_CHARSET_BASE = 17
 
const unsigned int CFONT_CONSOLAS_22_CHARSET_LINEHEIGHT = 22
 
const unsigned int CFONT_CONSOLAS_22_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_22_CHARSET []
 
const unsigned char CFONT_CONSOLAS_22_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_24_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_24_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_24_CHARSET_BASE = 19
 
const unsigned int CFONT_CONSOLAS_24_CHARSET_LINEHEIGHT = 24
 
const unsigned int CFONT_CONSOLAS_24_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_24_CHARSET []
 
const unsigned char CFONT_CONSOLAS_24_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_28_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_28_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_28_CHARSET_BASE = 22
 
const unsigned int CFONT_CONSOLAS_28_CHARSET_LINEHEIGHT = 28
 
const unsigned int CFONT_CONSOLAS_28_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_28_CHARSET []
 
const unsigned char CFONT_CONSOLAS_28_BYTEARRAY []
 
const unsigned int CFONT_CONSOLAS_32_WIDTH = 256
 
const unsigned int CFONT_CONSOLAS_32_HEIGHT = 256
 
const unsigned int CFONT_CONSOLAS_32_CHARSET_BASE = 25
 
const unsigned int CFONT_CONSOLAS_32_CHARSET_LINEHEIGHT = 32
 
const unsigned int CFONT_CONSOLAS_32_CHARSET_PAGES = 1
 
const int CFONT_CONSOLAS_32_CHARSET []
 
const unsigned char CFONT_CONSOLAS_32_BYTEARRAY []
 
const std::string C_SHADER_BASIC_VOXEL_LUT8_VERT
 
const std::string C_SHADER_BASIC_VOXEL_LUT8_FRAG
 
const std::string C_SHADER_BASIC_VOXEL_RGBA8_VERT
 
const std::string C_SHADER_BASIC_VOXEL_RGBA8_FRAG
 
const std::string C_SHADER_DVR_LUT8_VERT
 
const std::string C_SHADER_DVR_LUT8_FRAG
 
const std::string C_SHADER_FONG_VERT
 
const std::string C_SHADER_FONG_FRAG
 
const std::string C_SHADER_ISOSURFACE_L8_VERT
 
const std::string C_SHADER_ISOSURFACE_L8_FRAG
 
const std::string C_SHADER_ISOSURFACE_RGBA8_VERT
 
const std::string C_SHADER_ISOSURFACE_RGBA8_FRAG
 
const std::string C_SHADER_ISOSURFACE_COLOR_L8_VERT
 
const std::string C_SHADER_ISOSURFACE_COLOR_L8_FRAG
 
const std::string C_SHADER_ISOSURFACE_COLOR_LUT8_VERT
 
const std::string C_SHADER_ISOSURFACE_COLOR_LUT8_FRAG
 
const std::string C_SHADER_ISOSURFACE_COLOR_RGBA8_VERT
 
const std::string C_SHADER_ISOSURFACE_COLOR_RGBA8_FRAG
 
const unsigned int C_HISTOGRAM_MAX_SAMPLES = 6000
 
const int C_SCOPE_MAX_SAMPLES = 6000
 
const int C_NUM_VOXEL_RENDERING_MODES = 9
 

Typedef Documentation

◆ cDeltaDevicePtr

typedef std::shared_ptr<cDeltaDevice> chai3d::cDeltaDevicePtr

◆ cGenericHapticDevicePtr

◆ cLeapDevicePtr

typedef std::shared_ptr<cLeapDevice> chai3d::cLeapDevicePtr

◆ cMyCustomDevicePtr

typedef std::shared_ptr<cMyCustomDevice> chai3d::cMyCustomDevicePtr

◆ cPhantomDevicePtr

typedef std::shared_ptr<cPhantomDevice> chai3d::cPhantomDevicePtr

◆ cSixenseDevicePtr

typedef std::shared_ptr<cSixenseDevice> chai3d::cSixenseDevicePtr

◆ cFrameBufferPtr

typedef std::shared_ptr<cFrameBuffer> chai3d::cFrameBufferPtr

◆ cFontPtr

typedef std::shared_ptr<cFont> chai3d::cFontPtr

◆ cGenericArrayPtr

typedef std::shared_ptr<cGenericArray> chai3d::cGenericArrayPtr

◆ cImagePtr

typedef std::shared_ptr<cImage> chai3d::cImagePtr

◆ cMultiImagePtr

typedef std::shared_ptr<cMultiImage> chai3d::cMultiImagePtr

◆ cPointArrayPtr

typedef std::shared_ptr< cPointArray > chai3d::cPointArrayPtr

◆ cSegmentArrayPtr

typedef std::shared_ptr< cSegmentArray > chai3d::cSegmentArrayPtr

◆ cTriangleArrayPtr

typedef std::shared_ptr< cTriangleArray > chai3d::cTriangleArrayPtr

◆ cVertexArrayPtr

typedef std::shared_ptr< cVertexArray > chai3d::cVertexArrayPtr

◆ cVideoPtr

typedef std::shared_ptr<cVideo> chai3d::cVideoPtr

◆ cGenericTexturePtr

typedef std::shared_ptr<cGenericTexture> chai3d::cGenericTexturePtr

◆ cMaterialPtr

typedef std::shared_ptr<cMaterial> chai3d::cMaterialPtr

◆ cNormalMapPtr

typedef std::shared_ptr<cNormalMap> chai3d::cNormalMapPtr

◆ cTexture1dPtr

typedef std::shared_ptr<cTexture1d> chai3d::cTexture1dPtr

◆ cTexture2dPtr

typedef std::shared_ptr<cTexture2d> chai3d::cTexture2dPtr

◆ cTexture3dPtr

typedef std::shared_ptr<cTexture3d> chai3d::cTexture3dPtr

◆ cTextureVideoPtr

typedef std::shared_ptr<cTextureVideo> chai3d::cTextureVideoPtr

◆ cShaderPtr

typedef std::shared_ptr<cShader> chai3d::cShaderPtr

◆ cShaderProgramPtr

typedef std::shared_ptr< cShaderProgram > chai3d::cShaderProgramPtr

Enumeration Type Documentation

◆ cAABBNodeType

Enumerator
C_AABB_NODE_INTERNAL 
C_AABB_NODE_LEAF 
C_AABB_NOT_DEFINED 

◆ cCollisionType

Enumerator
C_COL_NOT_DEFINED 
C_COL_SHAPE 
C_COL_POINT 
C_COL_SEGMENT 
C_COL_TRIANGLE 
C_COL_VOXEL 

◆ cHapticDeviceModel

Defines the list of devices currently supported by CHAI3D.

Enumerator
C_HAPTIC_DEVICE_VIRTUAL 
C_HAPTIC_DEVICE_DELTA_3 
C_HAPTIC_DEVICE_DELTA_6 
C_HAPTIC_DEVICE_OMEGA_3 
C_HAPTIC_DEVICE_OMEGA_6L 
C_HAPTIC_DEVICE_OMEGA_6R 
C_HAPTIC_DEVICE_OMEGA_7L 
C_HAPTIC_DEVICE_OMEGA_7R 
C_HAPTIC_DEVICE_SIGMA_6L 
C_HAPTIC_DEVICE_SIGMA_6R 
C_HAPTIC_DEVICE_SIGMA_7L 
C_HAPTIC_DEVICE_SIGMA_7R 
C_HAPTIC_DEVICE_LAMBDA_7L 
C_HAPTIC_DEVICE_LAMBDA_7R 
C_HAPTIC_DEVICE_FALCON 
C_HAPTIC_DEVICE_MPR 
C_HAPTIC_DEVICE_PHANTOM_TOUCH 
C_HAPTIC_DEVICE_PHANTOM_OMNI 
C_HAPTIC_DEVICE_PHANTOM_DESKTOP 
C_HAPTIC_DEVICE_PHANTOM_15_6DOF 
C_HAPTIC_DEVICE_PHANTOM_30_6DOF 
C_HAPTIC_DEVICE_PHANTOM_OTHER 
C_TRACKER_DEVICE_SIXENSE 
C_TRACKER_DEVICE_LEAP 
C_HAPTIC_DEVICE_CUSTOM 

◆ cXTouchModel

Defines the list of devices currently supported by CHAI3D.

Enumerator
C_XTOUCH_NOT_DETECTED 
C_XTOUCH_COMPACT 
C_XTOUCH_MINI 

◆ cStereoMode

Enumerator
C_STEREO_DISABLED 
C_STEREO_ACTIVE 
C_STEREO_PASSIVE_LEFT_RIGHT 
C_STEREO_PASSIVE_TOP_BOTTOM 
C_STEREO_PASSIVE_DUAL_DISPLAY 

◆ cEyeMode

Enumerator
C_STEREO_LEFT_EYE 
C_STEREO_RIGHT_EYE 

◆ cEulerOrder

Enumerator
C_EULER_ORDER_XYZ 
C_EULER_ORDER_XYX 
C_EULER_ORDER_XZY 
C_EULER_ORDER_XZX 
C_EULER_ORDER_YZX 
C_EULER_ORDER_YZY 
C_EULER_ORDER_YXZ 
C_EULER_ORDER_YXY 
C_EULER_ORDER_ZXY 
C_EULER_ORDER_ZXZ 
C_EULER_ORDER_ZYX 
C_EULER_ORDER_ZYZ 

◆ cShaderType

Enumerator
C_VERTEX_SHADER 
C_FRAGMENT_SHADER 
C_GEOMETRY_SHADER 

◆ CThreadPriority

Defines two basic thread priorities for handling graphics and haptics rendering loops.

Enumerator
CTHREAD_PRIORITY_GRAPHICS 
CTHREAD_PRIORITY_HAPTICS 

◆ cHistogramMode

Enumerator
C_HISTOGRAM_MODE_LINE 
C_HISTOGRAM_MODE_LINE_FILL 
C_HISTOGRAM_MODE_BAR 

Function Documentation

◆ XTouchInterfaceCallback()

void chai3d::XTouchInterfaceCallback ( double  a_deltatime,
std::vector< unsigned char > *  a_message,
void *  a_userData 
)

MIDI callback.

Parameters
a_deltatimeTime stamp.
a_messageMessage data.
a_userDataUser data.

◆ cLoadFileMP3()

bool chai3d::cLoadFileMP3 ( const std::string &  a_filename,
unsigned char *&  a_data,
unsigned int *  a_sizeInBytes,
unsigned short *  a_bitsPerSample,
double *  a_samplingRate,
unsigned int *  a_numSamples,
bool *  a_stereo 
)

This function loads an audio MP3 file into memory.
If the operation succeeds, then the functions returns true and the audio data is loaded into memory. The audio data, size, frequency and format are returned by argument.
If the operation fails, then the function returns false.

Parameters
a_filenameFilename.
a_dataReturned pointer to audio data.
a_sizeInBytesReturned size in bytes of the audio data.
a_bitsPerSampleReturned number of bits per sample (8 or 16).
a_samplingRateReturned sampling wait of audio date.
a_numSamplesReturned number of audio samples.
a_stereoReturns true if stereo, false otherwise.
Returns
true in case of success, false otherwise.

◆ cLoadFileWAV()

bool chai3d::cLoadFileWAV ( const std::string &  a_filename,
unsigned char *&  a_data,
unsigned int *  a_sizeInBytes,
unsigned short *  a_bitsPerSample,
double *  a_samplingRate,
unsigned int *  a_numSamples,
bool *  a_stereo 
)

This function loads an audio WAV file into memory.
If the operation succeeds, then the functions returns true and the audio data is loaded into memory. The audio data, size, frequency and format are returned by argument.
If the operation fails, then the function returns false.

Parameters
a_filenameFilename.
a_dataReturned pointer to audio data.
a_sizeInBytesReturned size in bytes of the audio data.
a_bitsPerSampleReturned number of bits per sample (8 or 16).
a_samplingRateReturned sampling wait of audio date.
a_numSamplesReturned number of audio samples.
a_stereoReturns true if stereo, false otherwise.
Returns
true in case of success, false otherwise.

◆ cLoadFileBMP()

bool chai3d::cLoadFileBMP ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a BMP image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into the image structure a_image. If the operation fails, then the function returns false.. In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSaveFileBMP()

bool chai3d::cSaveFileBMP ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a BMP image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadFileGIF()

bool chai3d::cLoadFileGIF ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a GIF image from a file into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSaveFileGIF()

bool chai3d::cSaveFileGIF ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a GIF image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadFileJPG()

bool chai3d::cLoadFileJPG ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a JPG image from a file into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.n If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadJPG()

bool chai3d::cLoadJPG ( cImage *  a_image,
const void *  a_buffer,
unsigned int  a_len 
)

This function loads a JPG image from a memory buffer into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false.
In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_bufferMemory buffer containing JPG data.
a_lenBuffer size in bytes.
Returns
true in case of success, false otherwise.

◆ cSaveFileJPG()

bool chai3d::cSaveFileJPG ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a JPG image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSaveJPG()

bool chai3d::cSaveJPG ( cImage *  a_image,
unsigned char **  a_buffer,
unsigned int *  a_len 
)

This function saves a JPG image from a cImage structure to a memory buffer.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_bufferReturned memory buffer where JPG data is stored.
a_lenReturned buffer size in bytes.
Returns
true in case of success, false otherwise.

◆ cLoadFilePNG()

bool chai3d::cLoadFilePNG ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a PNG image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadPNG()

bool chai3d::cLoadPNG ( cImage *  a_image,
const unsigned char *  a_buffer,
unsigned int  a_len 
)

This function loads a PNG image from a memory buffer into a cImage structure.
If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image.
If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_bufferMemory buffer containing PNG data.
a_lenBuffer size in bytes.
Returns
true in case of success, false otherwise.

◆ cSaveFilePNG()

bool chai3d::cSaveFilePNG ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a PNG image from a cImage structure to a file.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSavePNG()

bool chai3d::cSavePNG ( cImage *  a_image,
unsigned char **  a_buffer,
unsigned int *  a_len 
)

This function saves a PNG image from a cImage structure to a memory buffer.
If the operation succeeds, then the functions returns true and the image data is saved to a file.
If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_bufferReturned memory buffer where PNG data is stored.
a_lenReturned buffer size in bytes.
Returns
true in case of success, false otherwise.

◆ cLoadFilePPM()

bool chai3d::cLoadFilePPM ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a PPM image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSaveFilePPM()

bool chai3d::cSaveFilePPM ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a BMP image from a cImage structure to a file. If the operation succeeds, then the functions returns true and the image data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadFileRAW()

bool chai3d::cLoadFileRAW ( cImage *  a_image,
const std::string &  a_filename 
)

This function loads a RAW image from a file into a cImage structure. If the operation succeeds, then the functions returns true and the image data is loaded into image structure a_image. If the operation fails, then the function returns false. In both cases, previous image information stored in a_image is erased.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cSaveFileRAW()

bool chai3d::cSaveFileRAW ( cImage *  a_image,
const std::string &  a_filename 
)

This function saves a RAW image from a cImage structure to a file. If the operation succeeds, then the functions returns true and the image data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadFileSTB()

bool chai3d::cLoadFileSTB ( cImage *  a_image,
const std::string &  a_filename 
)

This function blah blah blah.

Parameters
a_imageImage structure.
a_filenameFilename.
Returns
true in case of success, false otherwise.

◆ cLoadFile3DS()

bool chai3d::cLoadFile3DS ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function loads a 3DS 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cSaveFile3DS()

bool chai3d::cSaveFile3DS ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function saves a 3DS 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cLoadFileOBJ()

bool chai3d::cLoadFileOBJ ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function loads an OBJ 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cSaveFileOBJ()

bool chai3d::cSaveFileOBJ ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function saves an OBJ 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cLoadFileSTL()

bool chai3d::cLoadFileSTL ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function loads an STL (binary format) 3D model from a file into a cMultiMesh structure. If the operation succeeds, then the functions returns true and the 3D model is loaded into cMultiMesh as a single mesh. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cSaveFileSTL()

bool chai3d::cSaveFileSTL ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function saves an STL (binary format) 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cSaveFileTRI()

bool chai3d::cSaveFileTRI ( cMultiMesh *  a_object,
const std::string &  a_filename 
)

This function saves an TRI format 3D model from a cMultiMesh object to a file. If the operation succeeds, then the functions returns true and the model data is saved to a file. If the operation fails, then the function returns false.

Parameters
a_objectMultimesh object.
a_filenameFilename.
Returns
true if in case of success, false otherwise.

◆ cColorFtoB()

GLubyte chai3d::cColorFtoB ( GLfloat  a_value)
inline
Parameters
a_valueComponent expressed in GLfloat type (0.0 - 1.0).
Returns
Converted component in GLubyte type (0x00 - 0xFF).

◆ cColorBtoF()

GLfloat chai3d::cColorBtoF ( GLubyte  a_value)
inline
Parameters
a_valueColor expressed in GLubyte type (0x00 - 0xFF).
Returns
Converted component in GLfloat type (0.0 - 1.0).

◆ cLookAt()

void chai3d::cLookAt ( const cVector3d &  a_eye,
const cVector3d &  a_at,
const cVector3d &  a_up 
)

This function aligns the current z-axis with a reference frame in the same way than the OpenGL gluLookAt() function does.

Parameters
a_eyePosition of eye.
a_atLook at position.
a_upUp direction.

◆ cDrawFrame() [1/2]

void chai3d::cDrawFrame ( const double &  a_scale)

This function draws an X-Y-Z Frame. The red arrow corresponds to the X-Axis, green to the Y-Axis, and blue to the Z-Axis.
The scale parameter determines the size of the arrows.

Parameters
a_scaleLength of each arrow

◆ cDrawFrame() [2/2]

void chai3d::cDrawFrame ( const double &  a_axisLengthScale,
const double &  a_axisThicknessScale 
)

This function draws an X-Y-Z Frame. The red arrow corresponds to the X-Axis, green to the Y-Axis, and blue to the Z-Axis.
The scale parameter determines the size of the arrows.

Parameters
a_axisLengthScaleLength of each arrow
a_axisThicknessScaleThickness factor of frame.

◆ cDrawWireBox()

void chai3d::cDrawWireBox ( const double &  a_xMin,
const double &  a_xMax,
const double &  a_yMin,
const double &  a_yMax,
const double &  a_zMin,
const double &  a_zMax 
)

This function draws a line-based box with sides parallel to the x-y-z axes.

Parameters
a_xMinBox side x min position.
a_xMaxBox side x max position.
a_yMinBox side y min position.
a_yMaxBox side y max position.
a_zMinBox side z min position.
a_zMaxBox side z max position.

◆ cDrawSphere()

void chai3d::cDrawSphere ( const double &  a_radius,
const unsigned int  a_numSlices,
const unsigned int  a_numStacks 
)

This function draws a sphere.

Parameters
a_radiusRadius of the sphere
a_numSlicesSpecifies the number of subdivisions around the z axis (similar to lines of longitude)
a_numStacksSpecifies the number of subdivisions along the x/y axes (similar to lines of latitude)

◆ cDrawArrow()

void chai3d::cDrawArrow ( const cVector3d &  a_arrowStart,
const cVector3d &  a_arrowTip,
const double  a_width 
)

This function draws an arrow along the z-axis using a cone and a cylinder.

Parameters
a_arrowStartThe location of the back of the arrow.
a_arrowTipThe location of the tip of the arrow.
a_widthThe width of the arrow shaft.

◆ cDrawSolidTorus()

void chai3d::cDrawSolidTorus ( const double &  a_innerRadius,
const double &  a_outerRadius,
const int  a_sides,
const int  a_rings 
)

This function draws a torus.

Parameters
a_innerRadiusInner radius of the torus.
a_outerRadiusOuter radius of the torus.
a_sidesNumber of sides for each radial section.
a_ringsNumber of radial divisions for the torus.

◆ cCreatePlane()

void chai3d::cCreatePlane ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a plane by defining its size along the X and Y axes. Texture coordinates are defined so that the bitmap image maps the entire plane.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreatePlane2()

void chai3d::cCreatePlane2 ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_colorTopLeft,
const cColorf &  a_colorTopRight,
const cColorf &  a_colorBottomLeft,
const cColorf &  a_colorBottomRight 
)

This function creates a plane by defining its size along the X and Y axes. Texture coordinates are defined so that the bitmap image maps the entire plane.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorTopLeftColor of top left vertex.
a_colorTopRightColor of top right vertex.
a_colorBottomLeftColor of bottom left vertex.
a_colorBottomRightColor of bottom right vertex.

◆ cCreateMap()

void chai3d::cCreateMap ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const unsigned int  a_numSidesX,
const unsigned int  a_numSidesY,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a 2D map by defining the size along the X and Y axes, and the number of sides along each axis. For instance, a map containing 3 sides along the X axis and 4 sides along the Y axis will contains: 12 squares composed each of two triangles. The total number of vertices will be equal to 20, respectively (3+1)x(4+1). By modifying the Z component of each vertex you can easily create height maps for instance.Texture coordinates are defined so that the bitmap image covers the entire map.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_numSidesXNumber of elements along X axis.
a_numSidesYNumber of elements along Y axis.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateDisk()

void chai3d::cCreateDisk ( cMesh *  a_mesh,
const double &  a_radiusX,
const double &  a_radiusY,
const unsigned int  a_numSlices,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a disk by defining its radius properties along axis X and axis Y.

Parameters
a_meshMesh object in which primitive is created.
a_radiusXRadius of sphere along axis X.
a_radiusYRadius of sphere along axis Y.
a_numSlicesSpecifies the number of slices composing the disc.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreatePanel()

void chai3d::cCreatePanel ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const double &  a_radiusCorners,
const int &  a_numSegmentsPerCorner,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a panel with optional rounded corners.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_radiusCornersRadius of corners.
a_numSegmentsPerCornerNumber of segments per rounded corner.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreatePanel2()

void chai3d::cCreatePanel2 ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const double &  a_cornerTopLeftRadius,
const double &  a_cornerTopRightRadius,
const double &  a_cornerBottomLeftRadius,
const double &  a_cornerBottomRightRadius,
const int &  a_numSegmentsPerCorner,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_colorTopLeft,
const cColorf &  a_colorTopRight,
const cColorf &  a_colorBottomLeft,
const cColorf &  a_colorBottomRight 
)

This function creates a panel with optional rounded corners.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_cornerTopLeftRadiusRadius of top left corner.
a_cornerTopRightRadiusRadius of top right corner.
a_cornerBottomLeftRadiusRadius of bottom left corner.
a_cornerBottomRightRadiusRadius of bottom right corner.
a_numSegmentsPerCornerNumber of segments composing the circular corners.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorTopLeftColor of top left vertex.
a_colorTopRightColor of top right vertex.
a_colorBottomLeftColor of bottom left vertex.
a_colorBottomRightColor of bottom right vertex.

◆ cCreateBox()

void chai3d::cCreateBox ( cMesh *  a_mesh,
const double &  a_lengthX,
const double &  a_lengthY,
const double &  a_lengthZ,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a box by defining its size along the x, y and z axis. Texture coordinates are defined so that the bitmap image is displayed on each face of the box.

Parameters
a_meshMesh object in which primitive is created.
a_lengthXSize along X axis.
a_lengthYSize along Y axis.
a_lengthZSize along Z axis.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateCylinder()

void chai3d::cCreateCylinder ( cMesh *  a_mesh,
const double &  a_height,
const double &  a_radius,
const unsigned int  a_numSides,
const unsigned int  a_numHeightSegments,
const unsigned int  a_numRings,
const bool  a_includeTop,
const bool  a_includeBottom,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a cylinder by defining its radius and height. The user may also decide if the top and bottom discs should be included. Texture coordinates are defined so that the bitmap image wraps around the cylinder. The texture coordinates for the top part of the cylinder are set to (0.0, 0.0, 0.0). The texture coordinates for the bottom part of the cylinder are set to (1.0, 1.0, 0.0). When texture is enabled, the colors defining the top and bottoms sections of the cylinder are defined by both texels.

Parameters
a_meshMesh object in which primitive is created.
a_heightHeight of the cylinder.
a_radiusRadius of the cylinder.
a_numSidesNumber of sides composing the cylinder.
a_numHeightSegmentsNumber of segments along the cylinder axis.
a_numRingsNumber of rings that compose the top and bottom disks.
a_includeTopIf true, then the top disc is included.
a_includeBottomIf true, then the bottom disc is included.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateCone()

void chai3d::cCreateCone ( cMesh *  a_mesh,
const double &  a_height,
const double &  a_radiusBottom,
const double &  a_radiusTop,
const unsigned int  a_numSides,
const unsigned int  a_numHeightSegments,
const unsigned int  a_numRings,
const bool  a_includeBottom,
const bool  a_includeTop,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a cone by defining its height and bottom radius. By defining a top radius larger than zero, it is possible to create a truncated cone. Top and bottom parts can also be included or not.

Parameters
a_meshMesh object in which primitive is created.
a_heightHeight of cone.
a_radiusBottomBottom radius of cone.
a_radiusTopTop radius of cone. Apply 0 value for non truncated cone.
a_numSidesNumber of sides composing the cone.
a_numHeightSegmentsNumber of segments along the cone axis.
a_numRingsNumber of rings that compose the top and bottom disks.
a_includeTopIf true, then the top disc is included. (truncated cone)
a_includeBottomIf true, then the bottom disc is included.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreatePipe()

void chai3d::cCreatePipe ( cMesh *  a_mesh,
const double &  a_height,
const double &  a_innerRadius,
const double &  a_outerRadius,
const unsigned int  a_numSides,
const unsigned int  a_numHeightSegments,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a pipe by defining a height, inner radius and outer radius.

Parameters
a_meshMesh object in which primitive is created.
a_heightHeight of the pipe.
a_innerRadiusInner radius of the pipe.
a_outerRadiusOuter radius of the pipe.
a_numSidesNumber of sides composing the pipe.
a_numHeightSegmentsNumber of segments along the cylinder axis.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateSphere()

void chai3d::cCreateSphere ( cMesh *  a_mesh,
const double &  a_radius,
const unsigned int  a_numSlices,
const unsigned int  a_numStacks,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates sphere by defining its radius.

Parameters
a_meshMesh object in which primitive is created.
a_radiusRadius of sphere.
a_numSlicesSpecifies the number of subdivisions around the z axis (similar to lines of longitude).
a_numStacksSpecifies the number of subdivisions along the z axis (similar to lines of latitude).
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateEllipsoid()

void chai3d::cCreateEllipsoid ( cMesh *  a_mesh,
const double &  a_radiusX,
const double &  a_radiusY,
const double &  a_radiusZ,
const unsigned int  a_numSlices,
const unsigned int  a_numStacks,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates an ellipsoid by defining the radius properties along each axis X, Y and Z.

Parameters
a_meshMesh object in which primitive is created.
a_radiusXRadius along X axis.
a_radiusYRadius along Y axis.
a_radiusZRadius along Z axis.
a_numSlicesSpecifies the number of subdivisions around the z axis (similar to lines of longitude).
a_numStacksSpecifies the number of subdivisions along the z axis (similar to lines of latitude).
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateRing()

void chai3d::cCreateRing ( cMesh *  a_mesh,
const double &  a_innerRadius,
const double &  a_outerRadius,
const unsigned int  a_numSides,
const unsigned int  a_numRings,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a torus by defining the inner and outer radius values.

Parameters
a_meshMesh object in which primitive is created.
a_innerRadiusInner radius of the torus.
a_outerRadiusOuter radius of the torus.
a_numSidesNumber of sides for each radial section.
a_numRingsNumber of radial divisions for the torus.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateRingSection()

void chai3d::cCreateRingSection ( cMesh *  a_mesh,
const double &  a_innerRadius0,
const double &  a_innerRadius1,
const double &  a_outerRadius,
const double &  a_coverageAngleDEG,
const bool  a_includeExtremityFaces,
const unsigned int  a_numSides,
const unsigned int  a_numRings,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a torus by defining the inner and outer radius values.

Parameters
a_meshMesh object in which primitive is created.
a_innerRadius0Inner radius of the ring at the beginning extremity.
a_innerRadius1Inner radius of the ring at the end extremity.
a_outerRadiusOuter radius of the torus.
a_coverageAngleDEGCoverage angle in degrees (from 0 to 360).
a_includeExtremityFacesInclude flat surfaces at extremities of ring section.
a_numSidesNumber of sides for each radial section.
a_numRingsNumber of radial divisions for the torus.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateSquarePyramid()

void chai3d::cCreateSquarePyramid ( cMesh *  a_mesh,
const double &  a_height,
const double &  a_baseSize,
const bool  a_includeBottom,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a square pyramid.

Parameters
a_meshMesh object in which primitive is created.
a_heightHeight of square pyramid.
a_baseSizeSize of a base of the pyramid.
a_includeBottomIf true, then the bottom (square) of the pyramid is included.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateTeaPot() [1/2]

void chai3d::cCreateTeaPot ( cMesh *  a_mesh,
const double &  a_size,
const int &  a_resolution,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a copy of the famous OpenGL tea pot.

Parameters
a_meshMesh object in which primitive is created.
a_sizeSize of the tea pot.
a_resolutionNumber of divisions per patch.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateArrow()

void chai3d::cCreateArrow ( cMesh *  a_mesh,
const double &  a_length,
const double &  a_radiusShaft,
const double &  a_lengthTip,
const double &  a_radiusTip,
const bool  a_includeTipsAtBothExtremities,
const unsigned int  a_numSides,
const cVector3d &  a_direction,
const cVector3d &  a_pos,
const cColorf &  a_color 
)

This function creates a linear arrow.

Parameters
a_meshMesh object in which primitive is created.
a_lengthLength of arrow.
a_radiusShaftRadius of arrow shaft.
a_lengthTipLength or arrow tip.
a_radiusTipRadius of arrow tip.
a_includeTipsAtBothExtremitiesInclude tip at both extremities of arrow.
a_numSidesNumber of sides for each radial section.
a_directionDirection of arrow.
a_posPosition where to build the new primitive.
a_colorColor of vertices.

◆ cCreateCircularArrow()

void chai3d::cCreateCircularArrow ( cMesh *  a_mesh,
const double &  a_innerRadius0,
const double &  a_innerRadius1,
const double &  a_outerRadius,
const double &  a_lengthTip,
const double &  a_radiusTip,
const double &  a_coverageAngleDeg,
const bool  a_includeTipsAtBothExtremities,
const unsigned int  a_numSides,
const unsigned int  a_numRings,
const cVector3d &  a_direction,
const cVector3d &  a_pos,
const cColorf &  a_color 
)

This function creates a circular arrow.

Parameters
a_meshMesh object in which primitive is created.
a_innerRadius0Length of arrow.
a_innerRadius1Radius of arrow shaft.
a_outerRadiusRadius of arrow shaft.
a_lengthTipLength or arrow tip.
a_radiusTipRadius of arrow tip.
a_coverageAngleDegCoverage angle of the arrow (0-360 degrees)
a_includeTipsAtBothExtremitiesInclude tip at both extremities of arrow.
a_numSidesNumber of sides for each radial section.
a_numRingsNumber of radial divisions for the circular shaft.
a_directionDirection of circular arrow plane.
a_posPosition where to build the new primitive.
a_colorColor of vertices.

◆ cCreateBezierPatch()

void chai3d::cCreateBezierPatch ( cMesh *  a_mesh,
const cVector3d *  a_controlPoints,
const int  a_numDivisions,
const cVector3d &  a_pos,
const cMatrix3d &  a_rot,
const cColorf &  a_color 
)

This function creates a Bezier patch from a set of control points.

Parameters
a_meshMesh object in which primitive is created.
a_controlPointsBezier control points (16).
a_numDivisionsNumber of division along each side of the patch.
a_posPosition where to build the new primitive.
a_rotOrientation of the new primitive.
a_colorColor of vertices.

◆ cCreateTeaPot() [2/2]

void chai3d::cCreateTeaPot ( cMesh *  a_mesh,
const double &  a_size,
const cVector3d &  a_pos = cVector3d(0, 0, 0),
const cMatrix3d &  a_rot = cIdentity3d(),
const cColorf &  a_color = cColorf(1.0, 1.0, 1.0, 1.0) 
)

◆ SECTION_RENDER_PARTS_WITH_MATERIALS()

bool chai3d::SECTION_RENDER_PARTS_WITH_MATERIALS ( cRenderOptions  a_options,
bool  a_useTransparency 
)
inline

This function returns true if parts using material properties with/without transparency should be rendered according to rendering options.

Parameters
a_optionsRendering options
a_useTransparencytrue if current object uses transparency, false__otherwise
Returns
Result as described above.

◆ SECTION_RENDER_OPAQUE_PARTS_ONLY()

bool chai3d::SECTION_RENDER_OPAQUE_PARTS_ONLY ( cRenderOptions  a_options)
inline

This function returns true if opaque parts only can be rendered.

Parameters
a_optionsRendering options
Returns
Result as described above.

◆ cEvalBezierCurve()

cVector3d chai3d::cEvalBezierCurve ( const cVector3d *  a_controlPoints,
double  a_t 
)
inline

This function determines the position of a point along a Bezier curve at t [0:1].

Parameters
a_controlPointsControl points. (4 in total)
a_tParameter t between 0 and 1.
Returns
The computed point.

◆ cEvalBezierPatch()

cVector3d chai3d::cEvalBezierPatch ( const cVector3d *  a_controlPoints,
double  a_u,
double  a_v 
)
inline

This function determines the position of a point along a Bezier patch at u [0:1] and v [0:1].

Parameters
a_controlPointsControl points. (16 in total)
a_uParameter u between 0 and 1.
a_vParameter v between 0 and 1.
Returns
The computed point.

◆ cDerivBezier()

cVector3d chai3d::cDerivBezier ( const cVector3d *  a_controlPoints,
double  a_t 
)
inline

This function determines the derivative of a point along a Bezier curve at t [0:1].

Parameters
a_controlPointsControl points. (4 in total)
a_tParameter t between 0 and 1.
Returns
The computed derivative.

◆ cDerivUBezier()

cVector3d chai3d::cDerivUBezier ( const cVector3d *  a_controlPoints,
double  a_u,
double  a_v 
)
inline

This function determines the derivative of a point on a Bezier patch along the u parametric direction.

Parameters
a_controlPointsControl points. (16 in total)
a_uParameter u between 0 and 1.
a_vParameter v between 0 and 1.
Returns
The computed derivative.

◆ cDerivVBezier()

cVector3d chai3d::cDerivVBezier ( const cVector3d *  a_controlPoints,
double  a_u,
double  a_v 
)
inline

This function determines the derivative of a point on a Bezier patch along the v parametric direction.

Parameters
a_controlPointsControl points. (16 in total)
a_uParameter u between 0 and 1.
a_vParameter v between 0 and 1.
Returns
The computed derivative.

◆ cSurfaceNormalBezier()

cVector3d chai3d::cSurfaceNormalBezier ( const cVector3d *  a_controlPoints,
double  a_u,
double  a_v 
)
inline

This function determines the surface normal at a point on a Bezier patch at u [0:1] and v [0:1].

Parameters
a_controlPointsControl points. (16 in total)
a_uParameter u between 0 and 1.
a_vParameter v between 0 and 1.
Returns
The computed surface normal.

◆ cTriangleArea()

double chai3d::cTriangleArea ( const cVector3d &  a_vertex0,
const cVector3d &  a_vertex1,
const cVector3d &  a_vertex2 
)
inline

This function computes the area of a triangle described by the position of its three vertices a_vertex0, a_vertex1, and a_vertex2.

Parameters
a_vertex0Vertex 0 of triangle.
a_vertex1Vertex 1 of triangle.
a_vertex2Vertex 2 of triangle.
Returns
The area of the triangle.

◆ cProjectPointOnPlane() [1/3]

cVector3d chai3d::cProjectPointOnPlane ( const cVector3d &  a_point,
const cVector3d &  a_planePoint,
const cVector3d &  a_planeNormal 
)
inline

This function computes the projection of a point a_point onto a plane. The plane is expressed by a point a_planePoint and a surface normal a_planeNormal.

Parameters
a_pointPoint to be projected on the plane.
a_planePointPoint on the plane.
a_planeNormalSurface normal of the plane.
Returns
The projection of the point onto the plane.

◆ cProjectPointOnPlane() [2/3]

cVector3d chai3d::cProjectPointOnPlane ( const cVector3d &  a_point,
const cVector3d &  a_planePoint0,
const cVector3d &  a_planePoint1,
const cVector3d &  a_planePoint2 
)
inline

This function computes the projection of a point onto a plane. The plane is expressed by a set of three points passed by argument.

Parameters
a_pointPoint to be projected onto the plane.
a_planePoint0Point 0 of plane.
a_planePoint1Point 1 of plane.
a_planePoint2Point 2 of plane.
Returns
The projection of the point onto the plane.

◆ cProjectPointOnPlane() [3/3]

void chai3d::cProjectPointOnPlane ( const cVector3d &  a_point,
const cVector3d &  a_planePoint0,
const cVector3d &  a_planePoint1,
const cVector3d &  a_planePoint2,
double &  a_r01,
double &  a_r02 
)
inline

This function computes the projection of a point a_point onto a plane described by three points a_planePoint0, a_planePoint1, and a_planePoint2.

The function returns two parameters a_r01 and a_r01 which describe the position of the projected point onto the plane.

projectedPoint = a_planePoint0 + a_r01 * V01 + a_r02 * V02

where:

V01 = a_planePoint1 - a_planePoint0
V02 = a_planePoint2 - a_planePoint0
Parameters
a_pointPoint to be projected onto plane.
a_planePoint0Point 0 of plane.
a_planePoint1Point 1 of plane.
a_planePoint2Point 2 of plane.
a_r01Returned relative position factor v01.
a_r02Returned relative position factor v02.

◆ cProjectPointOnLine()

cVector3d chai3d::cProjectPointOnLine ( const cVector3d &  a_point,
const cVector3d &  a_pointOnLine,
const cVector3d &  a_directionOfLine 
)
inline

This function computes the projection of a point a_point on a line. The line is expressed by a point a_pointOnLine located on the line and a direction vector a_directionOfLine.

Parameters
a_pointPoint to be projected onto the line.
a_pointOnLinePoint located on the line.
a_directionOfLineDirection vector of the line.
Returns
The projection of the point onto the line.

◆ cProjectPointOnSegment()

cVector3d chai3d::cProjectPointOnSegment ( const cVector3d &  a_point,
const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB 
)
inline

This function computes the projection of a point a_point onto a segment. The segment is described by its two extremity points a_segmentPointA and a_segmentPointB.

Parameters
a_pointPoint to be projected.
a_segmentPointAPoint A of segment.
a_segmentPointBPoint B of segment.
Returns
The projection of the point onto the segment.

◆ cProjectPointOnDiskXY()

cVector3d chai3d::cProjectPointOnDiskXY ( const cVector3d &  a_point,
const double &  a_height,
const double &  a_radius 
)
inline

This function computes the projection of a point onto a disk lying in the XY plane.
The position of the disk along the z-axis is expressed by parameter a_height.
The radius of the disk is expressed by parameter a_radius.

Parameters
a_pointPoint to be projected.
a_heightPosition of the disk along the z-axis.
a_radiusRadius of the disk.
Returns
The projection of the point onto the disk.

◆ cProjectPointOnTriangle()

cVector3d chai3d::cProjectPointOnTriangle ( const cVector3d &  a_point,
const cVector3d &  a_vertex0,
const cVector3d &  a_vertex1,
const cVector3d &  a_vertex2 
)
inline

This function computes the projection of a point onto a triangle expressed by its three vertices.

Parameters
a_pointPoint to be projected.
a_vertex0Triangle vertex 0.
a_vertex1Triangle vertex 1.
a_vertex2Triangle vertex 2.
Returns
The projection of the point onto the triangle.

◆ cProject()

cVector3d chai3d::cProject ( const cVector3d &  a_vector0,
const cVector3d &  a_vector1 
)
inline

This function computes the projection of a vector V0 onto a vector V1, where V0 and V1 are passed by argument as a_vector0 and a_vector1.

Parameters
a_vector0Vector V0.
a_vector1Vector V1.
Returns
The projection of vector V0 onto vector V1.

◆ cDistanceToLine()

double chai3d::cDistanceToLine ( const cVector3d &  a_point,
const cVector3d &  a_linePoint1,
const cVector3d &  a_linePoint2 
)
inline

This function computes the distance between a point and a line. The line is described by two points a_linePoint1 and a_linePoint2 located along the line.

Parameters
a_pointPoint to be tested.
a_linePoint1Point 1 on line.
a_linePoint2Point 2 on line.
Returns
The distance between the point and the line.

◆ cComputeSurfaceNormal()

cVector3d chai3d::cComputeSurfaceNormal ( const cVector3d &  a_surfacePoint0,
const cVector3d &  a_surfacePoint1,
const cVector3d &  a_surfacePoint2 
)
inline

This function computes the surface normal of a plane defined by three points passed by argument.

Parameters
a_surfacePoint0Point 0 on surface.
a_surfacePoint1Point 1 on surface.
a_surfacePoint2Point 2 on surface.
Returns
The surface normal.

◆ cBoxContains()

bool chai3d::cBoxContains ( const cVector3d &  a_point,
const cVector3d &  a_boxMin,
const cVector3d &  a_boxMax 
)
inline

This function check if a point is contained in a box. The box is described by its minimum and maximum corners a_boxMin and a_boxMax.
If the point is located inside the box, then then function returns true, otherwise it returns false.

Parameters
a_pointTest point.
a_boxMinMinimum coordinate of the box.
a_boxMaxMaximum coordinate of the box.
Returns
true if the point is contained in the box, false otherwise.

◆ cIntersectionSegmentPlane()

int chai3d::cIntersectionSegmentPlane ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_planePos,
const cVector3d &  a_planeNormal,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal 
)
inline

This function computes the intersection between a segment and a plane.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The plane is described by a point a_planePos and a surface normal a_planeNormal.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_planePosPosition of a point on the plane.
a_planeNormalSurface normal of the plane.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
Returns
The number of intersection points found (0 or 1).

◆ cIntersectionSegmentDisk()

int chai3d::cIntersectionSegmentDisk ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_diskPos,
const cVector3d &  a_diskNormal,
const double &  a_diskRadius,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal 
)
inline

This function computes the intersection between a segment and a disk.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The disk is described by a point a_diskPos, a surface normal a_diskNormal, and a radius a_diskRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_diskPosPosition of the disk center.
a_diskNormalSurface normal of the disk.
a_diskRadiusRadius of the disk.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
Returns
The number of intersection points found (0 or 1).

◆ cIntersectionSegmentSphere()

int chai3d::cIntersectionSegmentSphere ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_spherePos,
const double &  a_sphereRadius,
cVector3d &  a_collisionPoint0,
cVector3d &  a_collisionNormal0,
cVector3d &  a_collisionPoint1,
cVector3d &  a_collisionNormal1 
)
inline

This function computes the intersection between a segment and a sphere.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The sphere is described by its position a_spherePos and a radius a_sphereRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionNormal0, a_collisionPoint1, and a_collisionNormal1.
If two intersection points are detected, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the sphere, then all intersections are ignored.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_spherePosPosition of sphere center.
a_sphereRadiusRadius of sphere.
a_collisionPoint0Returned intersection point 0 (if detected).
a_collisionNormal0Returned surface normal 0 at intersection point (if detected).
a_collisionPoint1Returned intersection point 1 (if detected).
a_collisionNormal1Returned surface normal 1 at intersection point (if detected).
Returns
The number of intersection points found (0, 1, or 2).

◆ cIntersectionSegmentEllipsoid()

int chai3d::cIntersectionSegmentEllipsoid ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_pos,
const double &  a_radiusX,
const double &  a_radiusY,
const double &  a_radiusZ,
cVector3d &  a_collisionPoint0,
cVector3d &  a_collisionNormal0,
cVector3d &  a_collisionPoint1,
cVector3d &  a_collisionNormal1 
)
inline

This function computes the intersection between a segment and a sphere.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The sphere is described by its position a_spherePos and a radius a_sphereRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionNormal0, a_collisionPoint1, and a_collisionNormal1.
If two intersection points are detected, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the sphere, then all intersections are ignored.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_posPosition of ellipsoid center.
a_radiusXEllipsoid radius along x axis.
a_radiusYEllipsoid radius along y axis.
a_radiusZEllipsoid radius along z axis.
a_collisionPoint0Returned intersection point 0 (if detected).
a_collisionNormal0Returned surface normal 0 at intersection point (if detected).
a_collisionPoint1Returned intersection point 1 (if detected).
a_collisionNormal1Returned surface normal 1 at intersection point (if detected).
Returns
The number of intersection points found (0, 1, or 2).

◆ cIntersectionSegmentToplessCylinder()

int chai3d::cIntersectionSegmentToplessCylinder ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_cylinderPointA,
const cVector3d &  a_cylinderPointB,
const double &  a_cylinderRadius,
cVector3d &  a_collisionPoint0,
cVector3d &  a_collisionNormal0,
double &  a_collisionPointRelPosAB0,
cVector3d &  a_collisionPoint1,
cVector3d &  a_collisionNormal1,
double &  a_collisionPointRelPosAB1 
)
inline

This function computes the intersection between a segment and a topless cylinder.

The segment is described by two points a_segmentPointA and a_segmentPointB.
The cylinder is described by two extremity points a_cylinderPointA and a_cylinderPointB, and a radius a_cylinderRadius.
The function returns the number of collision points that were detected (0, 1, or 2).
If a collision occurs, the collision point(s) and collision normal(s) are returned by arguments a_collisionPoint0, a_collisionPoint1, a_collisionNormal0 and a_collisionNormal1.
If two intersection points occur, collisionPoint0 is the nearest point to segmentPointA of segment AB.
If the segment begins inside the cylinder, then all intersections are ignored.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_cylinderPointAExtremity point A of cylinder.
a_cylinderPointBExtremity point B of cylinder.
a_cylinderRadiusRadius of cylinder.
a_collisionPoint0Returned intersection point 0 (if detected).
a_collisionNormal0Returned surface normal 0 at intersection point (if detected).
a_collisionPointRelPosAB0Returned relative position of collision point 0 projected on segment a_segmentPointA - a_segmentPointB
a_collisionPoint1Returned intersection point 1 (if detected).
a_collisionNormal1Returned surface normal 1 at intersection point (if detected).
a_collisionPointRelPosAB1Returned relative position of collision point 1 projected on segment a_segmentPointA - a_segmentPointB
Returns
The number of intersection points found (0, 1, or 2).

◆ cIntersectionSegmentCylinder()

int chai3d::cIntersectionSegmentCylinder ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const double &  a_baseRadius,
const double &  a_topRadius,
const double &  a_height,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal 
)
inline

This function computes the nearest intersection point between a segment and a cylinder.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The cylinder is aligned along the z-axis and is described by its height a_height, base radius a_baseRadius, and a top radius a_topRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.
If the segment begins inside the cylinder, then all intersections are ignored.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_baseRadiusRadius of cylinder a z = 0.0.
a_topRadiusRadius of cylinder a z = a_height.
a_heightHeight of cylinder.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
Returns
The number of intersection points found (0 or 1).

◆ cIntersectionSegmentBox()

int chai3d::cIntersectionSegmentBox ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_boxMin,
const cVector3d &  a_boxMax,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal 
)
inline

This function computes the nearest intersection point between a segment and a box.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The box is aligned with all axes and is described by its minimum and maximum corners a_boxMin and a_boxMax.

The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_boxMinMinimum coordinate of box.
a_boxMaxMaximum coordinate of box.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
Returns
The number of intersection points found (0 or 1).

◆ cIntersectionSegmentTorus()

int chai3d::cIntersectionSegmentTorus ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const double &  a_innerRadius,
const double &  a_outerRadius,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal 
)
inline

This function computes the nearest intersection point between a segment and a torus centered around the z-axis.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The torus is described by its inner a_innerRadius and outer radius a_outerRadius.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_innerRadiusInner radius of torus.
a_outerRadiusOuter radius of torus.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
Returns
The number of intersection points found (0 or 1).

◆ cIntersectionSegmentTriangle()

bool chai3d::cIntersectionSegmentTriangle ( const cVector3d &  a_segmentPointA,
const cVector3d &  a_segmentPointB,
const cVector3d &  a_triangleVertex0,
const cVector3d &  a_triangleVertex1,
const cVector3d &  a_triangleVertex2,
const bool  a_reportFrontSideCollision,
const bool  a_reportBackSideCollision,
cVector3d &  a_collisionPoint,
cVector3d &  a_collisionNormal,
double &  a_collisionPosVertex01,
double &  a_collisionPosVertex02 
)
inline

This function computes the intersection between a segment and a triangle defined by three vertices a_triangleVertex0, a_triangleVertex1, and a_triangleVertex2.
The segment is described by two points a_segmentPointA and a_segmentPointB.
The function returns the number of collision points that were detected (0 or 1).
If a collision occurs, the collision point and collision normal are returned by arguments a_collisionPoint and a_collisionNormal.

Parameters
a_segmentPointAFirst point of segment AB.
a_segmentPointBSecond point of segment AB.
a_triangleVertex0Vertex 0 of triangle.
a_triangleVertex1Vertex 1 of triangle.
a_triangleVertex2Vertex 2 of triangle.
a_reportFrontSideCollisionIf true, then front side collisions are reported.
a_reportBackSideCollisionIf true, then back side collisions are reported.
a_collisionPointReturned intersection point (if detected).
a_collisionNormalReturned surface normal at intersection point (if detected).
a_collisionPosVertex01Returned relative position of collision point projected on segment a_triangleVertex0 -a_triangleVertex1.
a_collisionPosVertex02Returned relative position of collision point projected on segment a_triangleVertex0 -a_triangleVertex1
Returns
true if a collision has occurred, otherwise false.

◆ cVertexInterpolation()

cVector3d chai3d::cVertexInterpolation ( double  a_isolevel,
cVector3d  a_p1,
cVector3d  a_p2,
double  a_valp1,
double  a_valp2 
)
inline

This function linearly interpolate the position where an isosurface cuts an edge between two vertices, each with their own scalar value.

Parameters
a_isolevelIso value.
a_p1Point 1.
a_p2Point 2.
a_valp1Value at point 1.
a_valp2Value at point 2.
Returns
The interpolated point.

◆ cPolygonize()

int chai3d::cPolygonize ( cMarchingCubeGridCell  a_grid,
double  a_isolevel,
cMarchingCubeTriangle *  a_triangles 
)
inline

Given a grid cell and an isolevel, this function calculates the triangular facets required to represent the isosurface through the cell. The function returns the number of triangular facets and at most 5 of them. 0 will be returned if the grid cell is either totally above of totally below the isolevel.

Parameters
a_gridGrid composed of 8 voxels
a_isolevelIsovalue.
a_trianglesReturned triangles.
Returns
The number of triangles.

◆ cCheckBit()

bool chai3d::cCheckBit ( const unsigned int &  a_value,
const unsigned int &  a_bitPosition 
)
inline

This function checks if a given bit is enabled. The function takes by argument an unsigned integer a_value and the position of the bit a_bitPosition to be tested.
If the selected bit is enabled, the function returns true, otherwise false.

Parameters
a_valueUnsigned int value.
a_bitPositionBit position [0..31].
Returns
true if the selected bit is enabled, false otherwise.

◆ cSetBit()

unsigned int chai3d::cSetBit ( const unsigned int &  a_data,
const unsigned int &  a_bitPosition,
const bool  a_value 
)
inline

This function sets the value of a specified bit of an unsigned integer.
The function takes by argument an unsigned integer a_value, the position of the bit to be tested a_bitPosition, and its new value a_value as a boolean.
The function returns the modified unsigned integer as a result.

Parameters
a_dataInput unsigned integer data.
a_bitPositionBit position [0..31]
a_valueNew state of bit (true = 1, false = 0).
Returns
Input data with modified bit.

◆ cZero()

bool chai3d::cZero ( const double &  a_value,
const double &  a_tolerance = C_TINY 
)
inline

This function checks if a value passed by argument a_value is equal to or almost near zero.

Parameters
a_valueValue to be checked.
a_toleranceTolerance value.
Returns
true if the value is equal to zero, false otherwise.

◆ cEqual()

bool chai3d::cEqual ( const double &  a_value1,
const double &  a_value2,
const double &  a_tolerance = C_TINY 
)
inline

This function checks if a value passed by argument a_value is equal to or almost near zero.

Parameters
a_value1Value 1 to be compared.
a_value2Value 2 to be compared.
a_toleranceTolerance value.
Returns
true if the value is equal to zero, false otherwise.

◆ cAbs()

template<class T >
T chai3d::cAbs ( const T &  a_value)
inline

This function computes the absolute value of a value a_value passed by argument.

Parameters
a_valueInput value.
Returns
Absolute value.

◆ cSign()

template<class T >
double chai3d::cSign ( const T &  a_value)
inline

This function computes the sign of a value passed by argument a_value.

Parameters
a_valueValue to be evaluated.
Returns
1.0 if the value is zero or positive, -1.0 otherwise.

◆ cMax()

template<class T >
T chai3d::cMax ( const T &  a_value1,
const T &  a_value2 
)
inline

This function returns the maximum value between two values a_value1 and a_value2 passed by argument.

Parameters
a_value1First value.
a_value2Second value.
Returns
Maximum value between a_value1 and a_value2.

◆ cMin()

template<class T >
T chai3d::cMin ( const T &  a_value1,
const T &  a_value2 
)
inline

This function returns the minimum value between two values a_value1 and a_value2 passed by argument.

Parameters
a_value1First value.
a_value2Second value.
Returns
Minimum value between a_value1 and a_value2.

◆ cMax3()

template<class T >
T chai3d::cMax3 ( const T &  a_value1,
const T &  a_value2,
const T &  a_value3 
)
inline

This function returns the maximum value between three values a_value1, a_value2, and a_value3 passed by argument.

Parameters
a_value1First value.
a_value2Second value.
a_value3Third value.
Returns
Maximum value between a_value1, a_value2, and a_value3.

◆ cMin3()

template<class T >
T chai3d::cMin3 ( const T &  a_value1,
const T &  a_value2,
const T &  a_value3 
)
inline

This function returns the minimum value between three values a_value1, a_value2, and a_value3 passed by argument.

Parameters
a_value1First value.
a_value2Second value.
a_value3Third value.
Returns
Minimum value between a_value1, a_value2, and a_value3.

◆ cSwap()

template<class T >
void chai3d::cSwap ( T &  a_value1,
T &  a_value2 
)
inline

This function swaps two elements a_value1 and a_value2 passed by argument.

Parameters
a_value1First value.
a_value2Second value.

◆ cLerp()

template<class T >
T chai3d::cLerp ( const double &  a_level,
const T &  a_value1,
const T &  a_value2 
)
inline

This function computes a linear interpolation between values a_value1 (when a_level = 0.0) and a_value2 (when a_level = 1.0).

result = (1.0-a_level) * a_value1 + a_level * a_value2
Parameters
a_levelInterpolation factor ranging from 0.0 to 1.0.
a_value1First value.
a_value2Second value.
Returns
Interpolated value.

◆ cClamp()

template<class T >
T chai3d::cClamp ( const T &  a_value,
const T &  a_low,
const T &  a_high 
)
inline

This function clamps an input value a_value to a specified range.
The range is specified by a lower bound a_low and upper bound a_high.

Parameters
a_valueValue to be clamped.
a_lowLower boundary value.
a_highUpper boundary value.
Returns
Clamped value.

◆ cClamp0()

template<class T >
T chai3d::cClamp0 ( const T &  a_value)
inline

This function clamps an input value a_value to a value ranged between 0 and infinity.

Parameters
a_valueValue to be clamped.
Returns
Clamped value.

◆ cClamp01()

double chai3d::cClamp01 ( const double &  a_value)
inline

This function clamps an input value a_value to a value ranged between 0.0 and 1.0.

Parameters
a_valueValue to be clamped.
Returns
Clamped value.

◆ cContains()

template<class T , class V >
bool chai3d::cContains ( const T &  a_value,
const V &  a_low,
const V &  a_high 
)
inline

This function checks whether a value a_value is within a range specified by arguments a_low and a_high.

Parameters
a_valueValue to be tested.
a_lowLower boundary value.
a_highUpper boundary value.
Returns
true if the value is within the specified range, false otherwise.

◆ cSqr()

double chai3d::cSqr ( const double &  a_value)
inline

This function computes the square of a scalar a_value passed by argument.

result = a_value * a_value
Parameters
a_valueInput value.
Returns
Square of a_value.

◆ cSqrt()

double chai3d::cSqrt ( const double &  a_value)
inline

This function computes the square root of a scalar a_value passed by argument.

Parameters
a_valueInput value.
Returns
Square root of a_value.

◆ cCbrt()

double chai3d::cCbrt ( const double &  a_value)
inline

This function computes the cubic root of a scalar a_value passed by argument.

Parameters
a_valueInput value.
Returns
Cubic root of a_value.

◆ cModuloRange()

double chai3d::cModuloRange ( double  a_value,
double  a_min,
double  a_max 
)
inline

This method computes the modulo of a double within a range. The range is defined by a_min and a_max passed by argument

Parameters
a_valueInput value.
a_minMinimum range.
a_maxMaximum range.
Returns
The modulo within the range.

◆ cCosDeg()

double chai3d::cCosDeg ( const double &  a_angleDeg)
inline

This function computes the cosine of an angle defined in degrees.
The angle a_angleDeg is passed by argument.

Parameters
a_angleDegAngle in degrees.
Returns
Cosine of angle a_angleDeg.

◆ cSinDeg()

double chai3d::cSinDeg ( const double &  a_angleDeg)
inline

This function computes the sine of an angle defined in degrees.
The angle a_angleDeg is passed by argument.

Parameters
a_angleDegAngle in degrees.
Returns
Sine of angle a_angleDeg.

◆ cTanDeg()

double chai3d::cTanDeg ( const double &  a_angleDeg)
inline

This function computes the tangent of an angle defined in degrees.
The angle a_angleDeg is passed by argument.

Parameters
a_angleDegAngle in degrees.
Returns
Tangent of angle a_angleDeg.

◆ cCosRad()

double chai3d::cCosRad ( const double &  a_angleRad)
inline

This function computes the cosine of an angle defined in radians.
The angle a_angleRad is passed by argument.

Parameters
a_angleRadAngle in radians.
Returns
Cosine of angle a_angleRad.

◆ cSinRad()

double chai3d::cSinRad ( const double &  a_angleRad)
inline

This function computes the sine of an angle defined in radians.
The angle a_angleRad is passed by argument.

Parameters
a_angleRadAngle in radians.
Returns
Sine of angle a_angleRad.

◆ cTanRad()

double chai3d::cTanRad ( const double &  a_angleRad)
inline

This function computes the tangent of an angle defined in radians.
The angle a_angleRad is passed by argument.

Parameters
a_angleRadAngle in radians.
Returns
Tangent of angle a_angleRad.

◆ cDegToRad()

double chai3d::cDegToRad ( const double &  a_angleDeg)
inline

This function converts an angle a_angleDeg expressed in degrees to an angle expressed in radians.

Parameters
a_angleDegAngle in degrees.
Returns
Converted angle in radians.

◆ cRadToDeg()

double chai3d::cRadToDeg ( const double &  a_angleRad)
inline

This function converts an angle a_angleRad expressed in radians to an angle expressed in degrees.

Parameters
a_angleRadAngle in radians.
Returns
Converted angle in degrees.

◆ cNumDigits()

int chai3d::cNumDigits ( int  a_value)
inline

This function returns the number of digits that compose a given integer a_value passed by argument.

Parameters
a_valueValue to be evaluated.
Returns
Number of digits.

◆ cAdd() [1/3]

cVector3d chai3d::cAdd ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function computes the addition of two vectors.
The vectors are passed by argument as a_vector1 and a_vector2.

result = a_vector1 + a_vector2
Parameters
a_vector1First vector.
a_vector2Second vector.
Returns
Addition of two vectors.

◆ cAdd() [2/3]

cVector3d chai3d::cAdd ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2,
const cVector3d &  a_vector3 
)
inline

This function computes the addition of three vectors.
The vectors are passed by argument as a_vector1, a_vector2, and a_vector3.

result = a_vector1 + a_vector2 + a_vector3
Parameters
a_vector1First vector.
a_vector2Second vector.
a_vector3Third vector.
Returns
Result of operation.

◆ cSub() [1/2]

cVector3d chai3d::cSub ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function computes the subtraction of two vectors.
The vectors are passed by argument as a_vector1 and a_vector2.

result = a_vector1 - a_vector2
Parameters
a_vector1First vector.
a_vector2Second vector.
Returns
Result of operation.

◆ cNegate()

cVector3d chai3d::cNegate ( const cVector3d &  a_vector)
inline

This function computes the negated vector of a vector a_vector passed by argument.

result = -a_vector
Parameters
a_vectorVector to be negated.
Returns
Negated vector.

◆ cMul() [1/3]

cVector3d chai3d::cMul ( const double &  a_value,
const cVector3d &  a_vector 
)
inline

This function computes the multiplication of a vector by a scalar.
The vector a_vector and scalar a_scalar are passed by argument.

result = a_value * a_vector
Parameters
a_valueScalar.
a_vectorVector to be scaled.
Returns
Result of operation.

◆ cDiv()

cVector3d chai3d::cDiv ( const double &  a_value,
const cVector3d &  a_vector 
)
inline

This function computes the division of a vector by a scalar.
The vector a_vector and scalar a_scalar are passed by argument.

result = (1.0 / a_value) * a_vector
Parameters
a_valueScalar.
a_vectorVector to be scaled.
Returns
Result of operation.

◆ cCross()

cVector3d chai3d::cCross ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function compute the cross product between two vectors.
Both vectors are passed by argument as a_vector1 and a_vector2.

result = a_vector1 x a_vector2
Parameters
a_vector1Vector1.
a_vector2Vector2.
Returns
Cross product between both vectors.

◆ cDot()

double chai3d::cDot ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function computes the dot product between two vectors.
Both vectors are passed by argument as a_vector1 and a_vector2.

result = a_vector1 * a_vector2
Parameters
a_vector1Vector1.
a_vector2Vector2.
Returns
Dot product between both vectors.

◆ cNormalize()

cVector3d chai3d::cNormalize ( const cVector3d &  a_vector)
inline

This function computes the normalized vector of a vector a_vector passed by argument.

Parameters
a_vectorVector to be normalized.
Returns
Normalized vector.

◆ cDistance()

double chai3d::cDistance ( const cVector3d &  a_point1,
const cVector3d &  a_point2 
)
inline

This function computes the distance between two points a_point1 and a_point2 passed by argument.

Parameters
a_point1First point.
a_point2Second point.
Returns
Euclidean Distance between both points.

◆ cDistanceSq()

double chai3d::cDistanceSq ( const cVector3d &  a_point1,
const cVector3d &  a_point2 
)
inline

This function computes the squared distance between two points a_point1 and a_point2 passed by argument.

Parameters
a_point1First point.
a_point2Second point.
Returns
Squared distance between both points.

◆ cEqualPoints()

bool chai3d::cEqualPoints ( const cVector3d &  a_point1,
const cVector3d &  a_point2,
const double  a_epsilon = C_SMALL 
)
inline

This function determine whether two vectors represent the same point.
Both points, a_point1 and a_point2, are passed by argument.
A parameter a_epsilon defines the distance tolerance between both points such that if the computed distance is smaller than a_epsilon, then both points are considered to be equal.
The function returns true if both points are determined equal, or false otherwise.

Parameters
a_point1First point.
a_point2Second point.
a_epsilonDistance tolerance. Defaults value is set to C_SMALL.
Returns
true if both points are determined equal, false otherwise.

◆ cIdentity3d()

cMatrix3d chai3d::cIdentity3d ( void  )
inline

The function returns the identity matrix.

Returns
Identity matrix.

◆ cAdd() [3/3]

cMatrix3d chai3d::cAdd ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

The function computes the addition between two matrices a_matrix1 and a_matrix2 that are passed by argument.

result = a_matrix1 + a_matrix2
Parameters
a_matrix1First matrix.
a_matrix2Second matrix.
Returns
Result of operation.

◆ cSub() [2/2]

cMatrix3d chai3d::cSub ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

This function computes the subtraction between two matrices a_matrix1 and a_matrix2 that are passed by argument.

result = a_matrix1 - a_matrix2
Parameters
a_matrix1First matrix.
a_matrix2Second matrixs.
Returns
Result of operation.

◆ cRotEulerRad()

cMatrix3d chai3d::cRotEulerRad ( const double &  a_angleRad1,
const double &  a_angleRad2,
const double &  a_angleRad3,
const cEulerOrder  a_eulerOrder,
const bool  a_useIntrinsicEulerModel = true 
)
inline

This function creates a rotation matrix from a set of Euler angles defined in radians and co-moving axes of rotations.
The angles are defined in radians and passed by argument as a_angleRad1, a_angleRad2, and a_angleRad3.
The order of the rotations are defined by argument a_eulerOrder. See cEulerOrder for more information.
The argument a_useIntrinsicEulerModel defines if the instrinsic (true) or extrinsic (false) model is used.

Parameters
a_angleRad1Angle in radians of the first rotation in the sequence.
a_angleRad2Angle in radians of the second rotation in the sequence.
a_angleRad3Angle in radians of the third rotation in the sequence.
a_eulerOrderThe order of the axes about which the rotations are to be applied
a_useIntrinsicEulerModelIf true use intrinsic Euler model, if false use extrinsic Euler model.
Returns
Rotation matrix.

◆ cRotEulerDeg()

cMatrix3d chai3d::cRotEulerDeg ( const double &  a_angleDeg1,
const double &  a_angleDeg2,
const double &  a_angleDeg3,
const cEulerOrder  a_eulerOrder,
const bool  a_useIntrinsicEulerModel = true 
)
inline

This function creates a rotation matrix from a set of Euler angles defined in degrees and co-moving axes of rotations.
The angles are defined in radian and passed by argument as a_angleDeg1, a_angleDeg2, and a_angleDeg3.
The order of the rotations are defined by argument a_eulerOrder. See cEulerOrder for more information.
The argument a_useIntrinsicEulerModel defines if the instrinsic (true) or extrinsic (false) model is used.

Parameters
a_angleDeg1Angle in degrees of the first rotation in the sequence.
a_angleDeg2Angle in degrees of the second rotation in the sequence.
a_angleDeg3Angle in degrees of the third rotation in the sequence.
a_eulerOrderThe order of the axes about which the rotations are to be applied
a_useIntrinsicEulerModelIf true use intrinsic Euler model, if false use extrinsic Euler model.
Returns
Rotation matrix.

◆ cRotAxisAngleRad()

cMatrix3d chai3d::cRotAxisAngleRad ( const double &  a_axisX,
const double &  a_axisY,
const double &  a_axisZ,
const double &  a_angleRad 
)
inline

This function creates a rotation matrix from an axis-angle representation.
The axis is defined by arguments a_axisX, a_axisY, and a_axisZ. The rotation angle is defined in radians by argument a_angleRad.

Parameters
a_axisXx component of axis.
a_axisYy component of axis.
a_axisZz component of axis.
a_angleRadAngle of rotation in radians.
Returns
Rotation matrix.

◆ cRotAxisAngleDeg()

cMatrix3d chai3d::cRotAxisAngleDeg ( const double &  a_axisX,
const double &  a_axisY,
const double &  a_axisZ,
const double &  a_angleDeg 
)
inline

This function creates a rotation matrix from an axis-angle representation.
The axis is defined by arguments a_axisX, a_axisY, and a_axisZ. The rotation angle is defined in degrees by argument a_angleDeg.

Parameters
a_axisXx component of axis.
a_axisYy component of axis.
a_axisZz component of axis.
a_angleDegAngle of roation in degrees.
Returns
Rotation matrix.

◆ cMul() [2/3]

cMatrix3d chai3d::cMul ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

This function computes the multiplication of two matrices a_matrix1 and a_matrix2 passed by argument.

result = a_matrix1 * a_matrix2
Parameters
a_matrix1First matrix.
a_matrix2Second matrix.
Returns
Result of operation.

◆ cMul() [3/3]

cVector3d chai3d::cMul ( const cMatrix3d &  a_matrix,
const cVector3d &  a_vector 
)
inline

This function computes the multiplication of a matrix a_matrix and a vector a_vector passed by argument.

result = a_matrix * a_vector
Returns
Result of operation.

◆ cTranspose()

cMatrix3d chai3d::cTranspose ( const cMatrix3d &  a_matrix)
inline

This function computes the transpose of a matrix a_matrix passed by argument.

Parameters
a_matrixMatrix to be transposed.
Returns
Transpose of a_matrix.

◆ cInverse()

cMatrix3d chai3d::cInverse ( const cMatrix3d &  a_matrix)
inline

This function computes the the inverse of a matrix a_matrix passed by argument.

Parameters
a_matrixMatrix to be inversed.
Returns
The inverse of the matrix.

◆ cAngle()

double chai3d::cAngle ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function computes the angle in radians between two vectors a_vector1 and a_vector2 passed by argument.

Parameters
a_vector1First vector.
a_vector2Second vector.
Returns
Angle in radians between both vectors.

◆ cCosAngle()

double chai3d::cCosAngle ( const cVector3d &  a_vector1,
const cVector3d &  a_vector2 
)
inline

This function computes the cosine of the angle between two vectors a_vector1 and a_vector2 passed by argument.

Parameters
a_vector1First vector.
a_vector2Second vector.
Returns
Cosine of the angle between both vectors.

◆ operator*() [1/11]

cVector3d chai3d::operator* ( const cMatrix3d &  a_matrix,
const cVector3d &  a_vector 
)
inline

◆ operator*() [2/11]

cMatrix3d chai3d::operator* ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

◆ operator*() [3/11]

cMatrix3d chai3d::operator* ( const double &  a_scalar,
const cMatrix3d &  a_matrix 
)
inline

◆ operator+() [1/3]

cMatrix3d chai3d::operator+ ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

◆ operator-() [1/4]

cMatrix3d chai3d::operator- ( const cMatrix3d &  a_matrix1,
const cMatrix3d &  a_matrix2 
)
inline

◆ cSolveLinear()

int chai3d::cSolveLinear ( double  a_coefficient[2],
double  a_solution[1] 
)
inline

This function determines the solution of a linear equation.
It takes as parameters a pointer to the two coefficient of the linear equation (the c[1] is the coefficient of x and so on) and a pointer to the two element array in which the solution is to be placed. It outputs is a solution has been found.

Parameters
a_coefficientInput coefficient values.
a_solutionOutput roots found.
Returns
The number of solutions found.

◆ cSolveQuadric()

int chai3d::cSolveQuadric ( double  a_coefficient[3],
double  a_solution[2] 
)
inline

This function determines the roots of a quadric equation
It takes as parameters a pointer to the three coefficient of the quadric equation (the c[2] is the coefficient of x2 and so on) and a pointer to the two element array in which the roots are to be placed. It outputs the number of roots found.

Parameters
a_coefficientInput coefficient values.
a_solutionOutput roots found.
Returns
The number of roots found.

◆ cSolveCubic()

int chai3d::cSolveCubic ( double  a_coefficient[4],
double  a_solution[3] 
)
inline

This function determines the roots of a cubic equation.
It takes as parameters a pointer to the four coefficient of the cubic equation (the c[3] is the coefficient of x3 and so on) and a pointer to the three element array in which the roots are to be placed. It outputs the number of roots found.

Parameters
a_coefficientInput coefficient values.
a_solutionOutput roots found.
Returns
The number of roots found.

◆ cSolveQuartic()

int chai3d::cSolveQuartic ( double  a_coefficient[5],
double  a_solution[4] 
)
inline

This function determines the roots of a quartic equation.
It takes as parameters a pointer to the five coefficient of the quartic equation (the c[4] is the coefficient of x^4 and so on) and a pointer to the four element array in which the roots are to be placed. It outputs the number of roots found.

Parameters
a_coefficientInput coefficient values.
a_solutionOutput roots found.
Returns
The number of roots found.

◆ operator*() [4/11]

cQuaternion chai3d::operator* ( const cQuaternion &  a_quaternion,
const double  a_scale 
)
inline

◆ operator*() [5/11]

cQuaternion chai3d::operator* ( const double  a_scale,
const cQuaternion &  a_quaternion 
)
inline

◆ operator*() [6/11]

cQuaternion chai3d::operator* ( const cQuaternion &  a_quaternion0,
const cQuaternion &  a_quaternion1 
)
inline

◆ operator+() [2/3]

cQuaternion chai3d::operator+ ( const cQuaternion &  a_quaternion0,
const cQuaternion &  a_quaternion1 
)
inline

◆ operator-() [2/4]

cQuaternion chai3d::operator- ( const cQuaternion &  a_quaternion0,
const cQuaternion &  a_quaternion1 
)
inline

◆ operator*() [7/11]

cTransform chai3d::operator* ( const cTransform &  a_matrix1,
const cTransform &  a_matrix2 
)
inline

An overloaded * operator for matrix/matrix multiplication.

◆ operator*() [8/11]

cVector3d chai3d::operator* ( const cTransform &  a_matrix,
const cVector3d &  a_vector 
)
inline

An overloaded * operator for matrix/vector multiplication.

◆ operator*() [9/11]

cVector3d chai3d::operator* ( const cVector3d &  a_vector,
const double  a_scale 
)
inline

◆ operator*() [10/11]

cVector3d chai3d::operator* ( const double  a_scale,
const cVector3d &  a_vector 
)
inline

◆ operator/()

cVector3d chai3d::operator/ ( const cVector3d &  a_vector,
const double  a_scale 
)
inline

◆ operator+() [3/3]

cVector3d chai3d::operator+ ( const cVector3d &  a_vector0,
const cVector3d &  a_vector1 
)
inline

◆ operator-() [3/4]

cVector3d chai3d::operator- ( const cVector3d &  a_vector0,
const cVector3d &  a_vector1 
)
inline

◆ operator-() [4/4]

cVector3d chai3d::operator- ( const cVector3d &  a_vector0)
inline

◆ operator*() [11/11]

double chai3d::operator* ( const cVector3d &  a_vector0,
const cVector3d &  a_vector1 
)
inline

◆ cSocketInitialize()

int chai3d::cSocketInitialize ( )

This function initializes a TCP or UDP socket.

Returns
0 on success, -1 otherwise.

◆ cSocketBlock()

int chai3d::cSocketBlock ( int  a_socket,
bool  a_block 
)

This function configures a TCP or UDP socket blocking mode.

Parameters
a_socketThe index of the socket to configure.
a_blocktrue to make the socket blocking, false otherwise.
Returns
0 on success, SOCKET_ERROR otherwise.

◆ cSocketClose()

void chai3d::cSocketClose ( int &  a_socket)

This function closes a TCP or UDP socket.

Parameters
a_socketThe index of the socket to configure.

◆ cSocketCleanup()

void chai3d::cSocketCleanup ( )

This function clears all flags on a TCP or UDP socket.

◆ cSocketSetTimeout()

int chai3d::cSocketSetTimeout ( int  a_socket,
double  a_timeout 
)

This function sets the timeout associated with a TCP or UDP socket.

Parameters
a_socketThe index of the socket to configure.
a_timeoutThe desired socket timeout in (s).
Note
A value of a_timeout of 0 indicates that the socket will not time out.
Returns
0 on success, -2 otherwise.

◆ cSocketGetTimeout()

double chai3d::cSocketGetTimeout ( int  a_socket)

This function retrieves the timeout associated with a TCP or UDP socket.

Parameters
a_socketThe index of the socket to configure.
Returns
The timeout associated with the given a_socket.

◆ cSocketGetLocalIP()

int chai3d::cSocketGetLocalIP ( int  a_index,
sockaddr_in *  a_sin 
)

This function retrieves the local IP address.

Parameters
a_indexThe index of the network interface (NIC) to query in the system.
a_sinA pointer to a structure that will hold the IP address on success.
Returns
0 on success, -1 otherwise.

◆ NEW_CHAI3D_WHITE_LOGO()

cBitmap * chai3d::NEW_CHAI3D_WHITE_LOGO ( )
inline

◆ NEW_CHAI3D_BLACK_LOGO()

cBitmap * chai3d::NEW_CHAI3D_BLACK_LOGO ( )
inline

◆ NEW_CFONT_CALIBRI_144()

cFontPtr chai3d::NEW_CFONT_CALIBRI_144 ( )
inline

◆ NEW_CFONT_CALIBRI_16()

cFontPtr chai3d::NEW_CFONT_CALIBRI_16 ( )
inline

◆ NEW_CFONT_CALIBRI_18()

cFontPtr chai3d::NEW_CFONT_CALIBRI_18 ( )
inline

◆ NEW_CFONT_CALIBRI_20()

cFontPtr chai3d::NEW_CFONT_CALIBRI_20 ( )
inline

◆ NEW_CFONT_CALIBRI_22()

cFontPtr chai3d::NEW_CFONT_CALIBRI_22 ( )
inline

◆ NEW_CFONT_CALIBRI_24()

cFontPtr chai3d::NEW_CFONT_CALIBRI_24 ( )
inline

◆ NEW_CFONT_CALIBRI_26()

cFontPtr chai3d::NEW_CFONT_CALIBRI_26 ( )
inline

◆ NEW_CFONT_CALIBRI_28()

cFontPtr chai3d::NEW_CFONT_CALIBRI_28 ( )
inline

◆ NEW_CFONT_CALIBRI_32()

cFontPtr chai3d::NEW_CFONT_CALIBRI_32 ( )
inline

◆ NEW_CFONT_CALIBRI_36()

cFontPtr chai3d::NEW_CFONT_CALIBRI_36 ( )
inline

◆ NEW_CFONT_CALIBRI_40()

cFontPtr chai3d::NEW_CFONT_CALIBRI_40 ( )
inline

◆ NEW_CFONT_CALIBRI_72()

cFontPtr chai3d::NEW_CFONT_CALIBRI_72 ( )
inline

◆ NEW_CFONT_CONSOLAS_16()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_16 ( )
inline

◆ NEW_CFONT_CONSOLAS_18()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_18 ( )
inline

◆ NEW_CFONT_CONSOLAS_20()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_20 ( )
inline

◆ NEW_CFONT_CONSOLAS_22()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_22 ( )
inline

◆ NEW_CFONT_CONSOLAS_24()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_24 ( )
inline

◆ NEW_CFONT_CONSOLAS_28()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_28 ( )
inline

◆ NEW_CFONT_CONSOLAS_32()

cFontPtr chai3d::NEW_CFONT_CONSOLAS_32 ( )
inline

◆ cSleepMs()

void chai3d::cSleepMs ( const unsigned int  a_interval)

This function suspends the execution of the current thread for a specified interval defined in milliseconds.

Parameters
a_intervalTime interval defined in milliseconds.

◆ cGetCurrentPath()

std::string chai3d::cGetCurrentPath ( )

This function returns the absolute path of the current executable linked agains the CHAI3D library. On Mac OS X, this returns the path to the bundle (as opposed to the path to the actual executable nested within the bundle).

Returns
Path name.

◆ cGetVersion() [1/2]

const std::string chai3d::cGetVersion ( )

This function returns the version of the CHAI3D library as a string.

Returns
Version string.

◆ cGetVersion() [2/2]

void chai3d::cGetVersion ( int &  a_major,
int &  a_minor,
int &  a_patch 
)

This function returns the versions of the CHAI3D library as defined by the semantic versioning 2.0 guidelines (semver.org).

Parameters
a_majorThe major version number.
a_minorThe minor version number.
a_patchThe patch number.

◆ cStrLength()

int chai3d::cStrLength ( const char *  a_input)

This function computes the length of an ANSI string of up to 255 characters. If the end of the string cannot be found, then -1 is returned as a result.

Parameters
a_inputInput ANSI string. (Pointer to first character).
Returns
Length of input string, otherwise -1.

◆ cGetFilename()

std::string chai3d::cGetFilename ( const std::string &  a_input,
const bool  a_includeFileExtension 
)

This function discards the path component of a filename and returns the filename itself, optionally including the file extension.

Parameters
a_inputInput string containing path and filename.
a_includeFileExtensionIf true, then file extension is included.
Returns
Filename with or without file extension.

◆ cGetFileExtension()

std::string chai3d::cGetFileExtension ( const std::string &  a_input,
const bool  a_includeDot 
)

This function extracts the file extension of a file, optionally include the dot at the beginning of the extension.
Example: .jpg

Parameters
a_inputInput filename string with or without path.
a_includeDotIf true, then include the dot at the beginning of the extension.
Returns
File extension with or without leading dot.

◆ cGetDirectory()

std::string chai3d::cGetDirectory ( const std::string &  a_input)

This function extracts the directory path portion of the source, and include trailing '/'. If there are no '/'s found, then the function returns an empty string.

Parameters
a_inputInput string including directory path and filename.
Returns
Directory path.

◆ cReplaceFileExtension()

std::string chai3d::cReplaceFileExtension ( const std::string &  a_input,
const std::string &  a_extension 
)

This function replaces the file extension of a filename with a new extension name.

Parameters
a_inputInput string including path and filename.
a_extensionNew file extension.
Returns
New path and filename.

◆ cStr() [1/5]

std::string chai3d::cStr ( const bool  a_value)

This function converts a boolean into a string.

Parameters
a_valueInput value of type boolean.
Returns
Converted value into string format.

◆ cStr() [2/5]

std::string chai3d::cStr ( const int  a_value)

This function converts an integer into a string.

Parameters
a_valueInput value of type integer.
Returns
Converted value into string format.

◆ cStr() [3/5]

std::string chai3d::cStr ( const unsigned int  a_value)

This function converts an unsigned integer into a string.

Parameters
a_valueInput value of type unsigned integer.
Returns
Converted value into string format.

◆ cStr() [4/5]

std::string chai3d::cStr ( const float  a_value,
const unsigned int  a_precision 
)

This function converts a float into a string.

Parameters
a_valueInput value of type float.
a_precisionNumber of digits displayed after the decimal point.
Returns
Converted value into string format.

◆ cStr() [5/5]

std::string chai3d::cStr ( const double  a_value,
const unsigned int  a_precision 
)

This function converts a double into a string.

Parameters
a_valueInput value of type double.
a_precisionNumber of digits displayed after the decimal point.
Returns
Converted value into string format.

◆ cStrToLower()

std::string chai3d::cStrToLower ( const std::string &  a_input)

This function converts a string into lowercase.

Parameters
a_inputInput string to be converted.
Returns
Converted string.

Variable Documentation

◆ C_MAX_DEVICES

const unsigned int chai3d::C_MAX_DEVICES = 16

◆ C_DEVICE_HISTORY_SIZE

const int chai3d::C_DEVICE_HISTORY_SIZE = 200

◆ C_DEVICE_MIN_ACQUISITION_TIME

const double chai3d::C_DEVICE_MIN_ACQUISITION_TIME = 0.0001

◆ C_MAX_DOF

const int chai3d::C_MAX_DOF = 16

◆ C_MAX_HAPTIC_DEVICES

const unsigned int chai3d::C_MAX_HAPTIC_DEVICES = 16

◆ C_XTOUCH_MAX_BUTTONS

const int chai3d::C_XTOUCH_MAX_BUTTONS = 200

◆ C_XTOUCH_MAX_SLIDERS

const int chai3d::C_XTOUCH_MAX_SLIDERS = 200

◆ C_XTOUCH_MAX_DIALS

const int chai3d::C_XTOUCH_MAX_DIALS = 200

◆ C_EFFECT_MAX_IDN

const int chai3d::C_EFFECT_MAX_IDN = 16

Maximum number of force models supported the CHAI3D simulation. Some force effects require a history of the tool, such as its previous position for instance. Effects which need such information store it in a local table and retrieve the information when they calculate the reaction force. See cEffectStickSlip class as an example

◆ g_objLoaderUnifyVerticesWithSamePosition

bool chai3d::g_objLoaderUnifyVerticesWithSamePosition = false

Clients can use this to tell the OBJ file loader how to behave in terms of vertex merging.
If true (default), loaded OBJ files will have three distinct vertices per triangle, with no vertex re-use.

◆ g_objLoaderShouldGenerateExtraVertices

bool chai3d::g_objLoaderShouldGenerateExtraVertices = false

◆ g_objLoaderMinimizeNumberOfMeshes

bool chai3d::g_objLoaderMinimizeNumberOfMeshes = true

◆ C_ERROR

const bool chai3d::C_ERROR = false

◆ C_SUCCESS

const bool chai3d::C_SUCCESS = true

◆ C_TWO_PI

const double chai3d::C_TWO_PI = 6.28318530717958647692

◆ C_PI

const double chai3d::C_PI = 3.14159265358979323846

◆ C_PI_DIV_2

const double chai3d::C_PI_DIV_2 = 1.57079632679489661923

◆ C_DEG2RAD

const double chai3d::C_DEG2RAD = 0.01745329252

◆ C_RAD2DEG

const double chai3d::C_RAD2DEG = 57.2957795131

◆ C_TINY

const double chai3d::C_TINY = 1e-49

◆ C_SMALL

const double chai3d::C_SMALL = 0.000000001

◆ C_LARGE

const double chai3d::C_LARGE = 1e+49

◆ C_LARGE_FLOAT

const double chai3d::C_LARGE_FLOAT = 1e37

◆ CHAI3D_LOGO_WHITE_BYTEARRAY

const unsigned char chai3d::CHAI3D_LOGO_WHITE_BYTEARRAY[]
Initial value:
=
{
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc7, 0x5e, 0x8b, 0x4b, 0x00, 0x00, 0x07, 0x54, 0x49, 0x44, 0x41, 0x54, 0x68, 0x81, 0xed, 0xda, 0x7b, 0xb0, 0x55, 0x55, 0x1d, 0x07, 0xf0, 0xcf, 0x39, 0x70, 0xaf, 0x3c, 0x92, 0x97, 0xa8, 0x08, 0x14, 0x14, 0xbd, 0x14, 0x0b, 0xc1, 0xcc, 0x9c, 0x4a, 0x4b, 0x93, 0x2c, 0x52, 0x29, 0x2d, 0x4d, 0xa5, 0x07, 0x93, 0x53, 0xd3, 0x4c, 0x46, 0xa5, 0xf4, 0x40, 0x9b, 0x26, 0x6b, 0xb2, 0xc7, 0xd4, 0x1f, 0x56, 0x66, 0xf9, 0xca, 0xde, 0x45, 0x39, 0xd4, 0x58, 0xa6, 0x53, 0x96, 0x38, 0x14, 0x56, 0x94, 0x0a, 0x82, 0x26, 0x88, 0x41, 0x3c, 0x14, 0x79, 0xc7, 0x43, 0xb8, 0xe7, 0xf4, 0xc7, 0x6f, 0xef, 0x7b, 0xd7, 0x39, 0xec, 0x7d, 0xee, 0xed, 0xde, 0x4b, 0x31, 0x4e, 0xdf, 0x99, 0x3d, 0x67, 0x3d, 0x7f, 0xfb, 0xb7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, 0x00,
0xfe, 0x9c, 0xf1, 0xd6, 0xe9, 0x20, 0x94, 0xfd, 0xeb, 0xe4, 0x44, 0xb1, 0x21, 0x63, 0xc4, 0xa9, 0x7a, 0x12, 0x7f, 0x10, 0xdf, 0x16, 0xca, 0x36, 0x7a, 0x88, 0x48, 0x9e, 0x55, 0xc5, 0xe2, 0x97, 0x96, 0x8c, 0x1d, 0x23, 0x52, 0x35, 0x15, 0x3c, 0xa1, 0xfb, 0x8f, 0x5e, 0xe3, 0xc4, 0xe9, 0x1a, 0x94, 0x2d, 0x68, 0x95, 0x10, 0xe4, 0x30, 0x91, 0xb8, 0x24, 0x84, 0xb6, 0xb1, 0x60, 0x6e, 0x35, 0xe3, 0x69, 0x48, 0xc6, 0xcb, 0x72, 0xc9, 0xe2, 0x3b, 0x16, 0x5d, 0xae, 0xb6, 0xe2, 0x5b, 0xe9, 0xdf, 0x80, 0x08, 0x77, 0x7b, 0xba, 0x50, 0x2d, 0x83, 0xb3, 0x79, 0xdb, 0x44, 0xc6, 0xfb, 0x4e, 0xe5, 0x91, 0x77, 0x2b, 0x0c, 0x13, 0xeb, 0x1e, 0x2a, 0xd4, 0x5d, 0xee, 0x44, 0xbd, 0x48, 0x04, 0xbd, 0xbb, 0xda, 0x66, 0xad, 0x7d, 0x10, 0xfe, 0x0d, 0x32, 0x95, 0xbe, 0xad, 0x52, 0x1e, 0xd7, 0x59, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
}

◆ CHAI3D_LOGO_BLACK_BYTEARRAY

const unsigned char chai3d::CHAI3D_LOGO_BLACK_BYTEARRAY[]
Initial value:
=
{
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x19, 0x08, 0x06, 0x00, 0x00, 0x00, 0xc7, 0x5e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 0xcf, 0xc9, 0x76, 0x2c, 0xeb, 0xda, 0xa2, 0xd1, 0x31, 0x22, 0x65, 0x30, 0x5e, 0xb8, 0xad, 0xfb, 0x44, 0x74, 0xda, 0x57, 0x22, 0x40, 0x1f, 0x3e, 0xa4, 0x71, 0x19, 0xf4, 0x60, 0x49, 0xbd, 0x3b, 0xf0, 0xde, 0xa2, 0xbc, 0x41, 0x79, 0x94, 0x5e, 0x15, 0xbe, 0xf6, 0x26, 0x91, 0xda, 0x19, 0x2f, 0xa2, 0xff, 0x7f, 0x16, 0x13, 0x1b, 0x5f, 0xf4, 0x93, 0x29, 0xcf, 0xab, 0x6d, 0x16, 0x77, 0x3b, 0x93, 0x0a, 0x99, 0x06, 0x53, 0x42, 0x19, 0x96, 0xf7, 0x0d, 0xe1, 0x26, 0x37, 0x08, 0xf7, 0xb8, 0x50, 0xcc, 0x7d, 0xb2, 0x50, 0xea, 0x3a, 0xfc, 0x15, 0xb7, 0x2b, 0x9f, 0x7f, 0xd9, 0x1c, 0x7e, 0x80, 0x5f, 0x89, 0x1d, 0x3e, 0x41, 0x2c, 0xfe, 0x63, 0xc5, 0xf7, 0x73, 0x8b, 0x31, 0xd6, 0xd5, 0x1b, 0xfc, 0x17, 0x10, 0xb7, 0xda, 0x4f, 0x4c, 0xfa, 0x0d, 0xd7, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
}

◆ CFONT_CALIBRI_144_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_144_WIDTH = 1024

◆ CFONT_CALIBRI_144_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_144_HEIGHT = 1024

◆ CFONT_CALIBRI_144_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_BASE = 112

◆ CFONT_CALIBRI_144_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_LINEHEIGHT = 144

◆ CFONT_CALIBRI_144_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_144_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_144_CHARSET

const int chai3d::CFONT_CALIBRI_144_CHARSET[]

◆ CFONT_CALIBRI_144_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_144_BYTEARRAY[]

◆ CFONT_CALIBRI_16_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_16_WIDTH = 128

◆ CFONT_CALIBRI_16_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_16_HEIGHT = 128

◆ CFONT_CALIBRI_16_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_BASE = 12

◆ CFONT_CALIBRI_16_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_LINEHEIGHT = 16

◆ CFONT_CALIBRI_16_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_16_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_16_CHARSET

const int chai3d::CFONT_CALIBRI_16_CHARSET[]

◆ CFONT_CALIBRI_16_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_16_BYTEARRAY[]

◆ CFONT_CALIBRI_18_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_18_WIDTH = 128

◆ CFONT_CALIBRI_18_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_18_HEIGHT = 128

◆ CFONT_CALIBRI_18_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_BASE = 14

◆ CFONT_CALIBRI_18_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_LINEHEIGHT = 18

◆ CFONT_CALIBRI_18_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_18_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_18_CHARSET

const int chai3d::CFONT_CALIBRI_18_CHARSET[]

◆ CFONT_CALIBRI_18_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_18_BYTEARRAY[]

◆ CFONT_CALIBRI_20_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_20_WIDTH = 128

◆ CFONT_CALIBRI_20_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_20_HEIGHT = 128

◆ CFONT_CALIBRI_20_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_BASE = 16

◆ CFONT_CALIBRI_20_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_LINEHEIGHT = 20

◆ CFONT_CALIBRI_20_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_20_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_20_CHARSET

const int chai3d::CFONT_CALIBRI_20_CHARSET[]

◆ CFONT_CALIBRI_20_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_20_BYTEARRAY[]

◆ CFONT_CALIBRI_22_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_22_WIDTH = 256

◆ CFONT_CALIBRI_22_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_22_HEIGHT = 256

◆ CFONT_CALIBRI_22_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_BASE = 17

◆ CFONT_CALIBRI_22_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_LINEHEIGHT = 22

◆ CFONT_CALIBRI_22_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_22_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_22_CHARSET

const int chai3d::CFONT_CALIBRI_22_CHARSET[]

◆ CFONT_CALIBRI_22_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_22_BYTEARRAY[]

◆ CFONT_CALIBRI_24_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_24_WIDTH = 256

◆ CFONT_CALIBRI_24_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_24_HEIGHT = 256

◆ CFONT_CALIBRI_24_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_BASE = 19

◆ CFONT_CALIBRI_24_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_LINEHEIGHT = 24

◆ CFONT_CALIBRI_24_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_24_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_24_CHARSET

const int chai3d::CFONT_CALIBRI_24_CHARSET[]

◆ CFONT_CALIBRI_24_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_24_BYTEARRAY[]

◆ CFONT_CALIBRI_26_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_26_WIDTH = 256

◆ CFONT_CALIBRI_26_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_26_HEIGHT = 256

◆ CFONT_CALIBRI_26_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_BASE = 20

◆ CFONT_CALIBRI_26_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_LINEHEIGHT = 26

◆ CFONT_CALIBRI_26_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_26_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_26_CHARSET

const int chai3d::CFONT_CALIBRI_26_CHARSET[]

◆ CFONT_CALIBRI_26_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_26_BYTEARRAY[]

◆ CFONT_CALIBRI_28_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_28_WIDTH = 256

◆ CFONT_CALIBRI_28_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_28_HEIGHT = 256

◆ CFONT_CALIBRI_28_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_BASE = 22

◆ CFONT_CALIBRI_28_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_LINEHEIGHT = 28

◆ CFONT_CALIBRI_28_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_28_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_28_CHARSET

const int chai3d::CFONT_CALIBRI_28_CHARSET[]

◆ CFONT_CALIBRI_28_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_28_BYTEARRAY[]

◆ CFONT_CALIBRI_32_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_32_WIDTH = 256

◆ CFONT_CALIBRI_32_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_32_HEIGHT = 256

◆ CFONT_CALIBRI_32_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_BASE = 25

◆ CFONT_CALIBRI_32_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_LINEHEIGHT = 32

◆ CFONT_CALIBRI_32_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_32_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_32_CHARSET

const int chai3d::CFONT_CALIBRI_32_CHARSET[]

◆ CFONT_CALIBRI_32_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_32_BYTEARRAY[]

◆ CFONT_CALIBRI_36_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_36_WIDTH = 256

◆ CFONT_CALIBRI_36_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_36_HEIGHT = 256

◆ CFONT_CALIBRI_36_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_BASE = 28

◆ CFONT_CALIBRI_36_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_LINEHEIGHT = 36

◆ CFONT_CALIBRI_36_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_36_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_36_CHARSET

const int chai3d::CFONT_CALIBRI_36_CHARSET[]

◆ CFONTCALIBRI36_BYTEARRAY

const unsigned char chai3d::CFONTCALIBRI36_BYTEARRAY[]

◆ CFONT_CALIBRI_40_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_40_WIDTH = 256

◆ CFONT_CALIBRI_40_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_40_HEIGHT = 256

◆ CFONT_CALIBRI_40_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_BASE = 31

◆ CFONT_CALIBRI_40_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_LINEHEIGHT = 40

◆ CFONT_CALIBRI_40_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_40_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_40_CHARSET

const int chai3d::CFONT_CALIBRI_40_CHARSET[]

◆ CFONT_CALIBRI_40_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_40_BYTEARRAY[]

◆ CFONT_CALIBRI_72_WIDTH

const unsigned int chai3d::CFONT_CALIBRI_72_WIDTH = 1024

◆ CFONT_CALIBRI_72_HEIGHT

const unsigned int chai3d::CFONT_CALIBRI_72_HEIGHT = 1024

◆ CFONT_CALIBRI_72_CHARSET_BASE

const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_BASE = 56

◆ CFONT_CALIBRI_72_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_LINEHEIGHT = 72

◆ CFONT_CALIBRI_72_CHARSET_PAGES

const unsigned int chai3d::CFONT_CALIBRI_72_CHARSET_PAGES = 1

◆ CFONT_CALIBRI_72_CHARSET

const int chai3d::CFONT_CALIBRI_72_CHARSET[]

◆ CFONT_CALIBRI_72_BYTEARRAY

const unsigned char chai3d::CFONT_CALIBRI_72_BYTEARRAY[]

◆ CFONT_CONSOLAS_16_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_16_WIDTH = 256

◆ CFONT_CONSOLAS_16_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_16_HEIGHT = 256

◆ CFONT_CONSOLAS_16_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_BASE = 13

◆ CFONT_CONSOLAS_16_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_LINEHEIGHT = 16

◆ CFONT_CONSOLAS_16_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_16_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_16_CHARSET

const int chai3d::CFONT_CONSOLAS_16_CHARSET[]

◆ CFONT_CONSOLAS_16_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_16_BYTEARRAY[]

◆ CFONT_CONSOLAS_18_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_18_WIDTH = 256

◆ CFONT_CONSOLAS_18_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_18_HEIGHT = 256

◆ CFONT_CONSOLAS_18_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_BASE = 14

◆ CFONT_CONSOLAS_18_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_LINEHEIGHT = 18

◆ CFONT_CONSOLAS_18_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_18_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_18_CHARSET

const int chai3d::CFONT_CONSOLAS_18_CHARSET[]

◆ CFONT_CONSOLAS_18_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_18_BYTEARRAY[]

◆ CFONT_CONSOLAS_20_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_20_WIDTH = 256

◆ CFONT_CONSOLAS_20_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_20_HEIGHT = 256

◆ CFONT_CONSOLAS_20_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_BASE = 16

◆ CFONT_CONSOLAS_20_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_LINEHEIGHT = 20

◆ CFONT_CONSOLAS_20_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_20_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_20_CHARSET

const int chai3d::CFONT_CONSOLAS_20_CHARSET[]

◆ CFONT_CONSOLAS_20_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_20_BYTEARRAY[]

◆ CFONT_CONSOLAS_22_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_22_WIDTH = 256

◆ CFONT_CONSOLAS_22_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_22_HEIGHT = 256

◆ CFONT_CONSOLAS_22_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_BASE = 17

◆ CFONT_CONSOLAS_22_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_LINEHEIGHT = 22

◆ CFONT_CONSOLAS_22_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_22_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_22_CHARSET

const int chai3d::CFONT_CONSOLAS_22_CHARSET[]

◆ CFONT_CONSOLAS_22_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_22_BYTEARRAY[]

◆ CFONT_CONSOLAS_24_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_24_WIDTH = 256

◆ CFONT_CONSOLAS_24_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_24_HEIGHT = 256

◆ CFONT_CONSOLAS_24_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_BASE = 19

◆ CFONT_CONSOLAS_24_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_LINEHEIGHT = 24

◆ CFONT_CONSOLAS_24_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_24_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_24_CHARSET

const int chai3d::CFONT_CONSOLAS_24_CHARSET[]

◆ CFONT_CONSOLAS_24_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_24_BYTEARRAY[]

◆ CFONT_CONSOLAS_28_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_28_WIDTH = 256

◆ CFONT_CONSOLAS_28_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_28_HEIGHT = 256

◆ CFONT_CONSOLAS_28_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_BASE = 22

◆ CFONT_CONSOLAS_28_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_LINEHEIGHT = 28

◆ CFONT_CONSOLAS_28_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_28_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_28_CHARSET

const int chai3d::CFONT_CONSOLAS_28_CHARSET[]

◆ CFONT_CONSOLAS_28_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_28_BYTEARRAY[]

◆ CFONT_CONSOLAS_32_WIDTH

const unsigned int chai3d::CFONT_CONSOLAS_32_WIDTH = 256

◆ CFONT_CONSOLAS_32_HEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_32_HEIGHT = 256

◆ CFONT_CONSOLAS_32_CHARSET_BASE

const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_BASE = 25

◆ CFONT_CONSOLAS_32_CHARSET_LINEHEIGHT

const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_LINEHEIGHT = 32

◆ CFONT_CONSOLAS_32_CHARSET_PAGES

const unsigned int chai3d::CFONT_CONSOLAS_32_CHARSET_PAGES = 1

◆ CFONT_CONSOLAS_32_CHARSET

const int chai3d::CFONT_CONSOLAS_32_CHARSET[]

◆ CFONT_CONSOLAS_32_BYTEARRAY

const unsigned char chai3d::CFONT_CONSOLAS_32_BYTEARRAY[]

◆ C_SHADER_BASIC_VOXEL_LUT8_VERT

const std::string chai3d::C_SHADER_BASIC_VOXEL_LUT8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_BASIC_VOXEL_LUT8_FRAG

const std::string chai3d::C_SHADER_BASIC_VOXEL_LUT8_FRAG

◆ C_SHADER_BASIC_VOXEL_RGBA8_VERT

const std::string chai3d::C_SHADER_BASIC_VOXEL_RGBA8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_BASIC_VOXEL_RGBA8_FRAG

const std::string chai3d::C_SHADER_BASIC_VOXEL_RGBA8_FRAG

◆ C_SHADER_DVR_LUT8_VERT

const std::string chai3d::C_SHADER_DVR_LUT8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_DVR_LUT8_FRAG

const std::string chai3d::C_SHADER_DVR_LUT8_FRAG

◆ C_SHADER_FONG_VERT

const std::string chai3d::C_SHADER_FONG_VERT

◆ C_SHADER_FONG_FRAG

const std::string chai3d::C_SHADER_FONG_FRAG

◆ C_SHADER_ISOSURFACE_L8_VERT

const std::string chai3d::C_SHADER_ISOSURFACE_L8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_ISOSURFACE_L8_FRAG

const std::string chai3d::C_SHADER_ISOSURFACE_L8_FRAG

◆ C_SHADER_ISOSURFACE_RGBA8_VERT

const std::string chai3d::C_SHADER_ISOSURFACE_RGBA8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_ISOSURFACE_RGBA8_FRAG

const std::string chai3d::C_SHADER_ISOSURFACE_RGBA8_FRAG

◆ C_SHADER_ISOSURFACE_COLOR_L8_VERT

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_L8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_ISOSURFACE_COLOR_L8_FRAG

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_L8_FRAG

◆ C_SHADER_ISOSURFACE_COLOR_LUT8_VERT

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_LUT8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_ISOSURFACE_COLOR_LUT8_FRAG

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_LUT8_FRAG

◆ C_SHADER_ISOSURFACE_COLOR_RGBA8_VERT

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_RGBA8_VERT
Initial value:
=
" \n"
" attribute vec3 aPosition; \n"
" attribute vec3 aNormal; \n"
" attribute vec3 aTexCoord; \n"
" attribute vec4 aColor; \n"
" attribute vec3 aTangent; \n"
" attribute vec3 aBitangent; \n"
" \n"
" varying vec4 vPosition; \n"
" \n"
" //---------------------------------------------------------------------- \n"
" // Main vertex shader code. \n"
" //---------------------------------------------------------------------- \n"
" \n"
" void main(void) \n"
" { \n"
" gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(aTexCoord, 1.0); \n"
" vPosition = gl_Vertex; \n"
" gl_Position = ftransform(); \n"
" } \n"
" \n"

◆ C_SHADER_ISOSURFACE_COLOR_RGBA8_FRAG

const std::string chai3d::C_SHADER_ISOSURFACE_COLOR_RGBA8_FRAG

◆ C_HISTOGRAM_MAX_SAMPLES

const unsigned int chai3d::C_HISTOGRAM_MAX_SAMPLES = 6000

◆ C_SCOPE_MAX_SAMPLES

const int chai3d::C_SCOPE_MAX_SAMPLES = 6000

◆ C_NUM_VOXEL_RENDERING_MODES

const int chai3d::C_NUM_VOXEL_RENDERING_MODES = 9