This class inherits from class cMesh and integrate a skeleton model for modelling deformations of the mesh.
|
| | cGELMesh () |
| | Constructor of cGELMesh. More...
|
| |
| virtual | ~cGELMesh () |
| | Destructor of cGELMesh. More...
|
| |
| void | buildVertices () |
| | This method builds all dynamic vertices that describe the deformable mesh. More...
|
| |
| void | connectVerticesToSkeleton (bool a_connectToNodesOnly) |
| | This method connects each dynamic vertex to the skeleton. More...
|
| |
| void | updateVertexPosition () |
| | This method updates the position of all vertices connected to the skeleton. More...
|
| |
| void | clearForces () |
| | This method sets all computed forces to zero. More...
|
| |
| void | clearExternalForces () |
| | This method sets all external forces to zero. More...
|
| |
| void | computeForces () |
| | This method computes all internal forces. More...
|
| |
| void | computeNextPose (double iTimeInterval) |
| | This method updates the simulation over a time interval. More...
|
| |
| void | applyNextPose () |
| | This method updates the position of the mesh after computation. More...
|
| |
| virtual void | render (chai3d::cRenderOptions &a_options) |
| | This method renders the deformable mesh graphically. More...
|
| |
| | cMultiMesh () |
| |
| virtual | ~cMultiMesh () |
| |
| virtual void | setEnabled (bool a_enabled, const bool a_affectChildren=false) |
| |
| virtual cMultiMesh * | copy (const bool a_duplicateMaterialData=false, const bool a_duplicateTextureData=false, const bool a_duplicateMeshData=false, const bool a_buildCollisionDetector=true) |
| |
| virtual void | setHapticEnabled (const bool a_hapticEnabled, const bool a_affectChildren=false) |
| |
| virtual void | setStiffness (const double a_stiffness, const bool a_affectChildren=false) |
| |
| virtual void | setFriction (double a_staticFriction, double a_dynamicFriction, const bool a_affectChildren=false) |
| |
| virtual void | setShowEnabled (const bool a_show, const bool a_affectChildren=false) |
| |
| virtual void | setWireMode (const bool a_showWireMode, const bool a_affectChildren=true) |
| |
| virtual void | setUseCulling (const bool a_useCulling, const bool a_affectChildren=true) |
| |
| virtual void | setUseTransparency (const bool a_useTransparency, const bool a_affectChildren=false) |
| |
| virtual void | setTransparencyLevel (const float a_level, const bool a_applyToTextures=false, const bool a_affectChildren=false) |
| |
| virtual void | setUseDisplayList (const bool a_useDisplayList, const bool a_affectChildren=false) |
| |
| virtual void | markForUpdate (const bool a_affectChildren=false) |
| |
| virtual void | setUseMaterial (const bool a_useMaterial, const bool a_affectChildren=true) |
| |
| virtual void | setMaterial (cMaterialPtr a_material, const bool a_affectChildren=false) |
| |
| virtual void | setMaterial (cMaterial &a_material, const bool a_affectChildren=false) |
| |
| virtual void | backupMaterialColors (const bool a_affectChildren=false) |
| |
| virtual void | restoreMaterialColors (const bool a_affectChildren=false) |
| |
| virtual void | setUseTexture (const bool a_useTexture, const bool a_affectChildren=true) |
| |
| virtual void | setTexture (cTexture1dPtr, const bool a_affectChildren=false) |
| |
| virtual void | setShaderProgram (cShaderProgramPtr a_shaderProgram, const bool a_affectChildren=false) |
| |
| virtual void | setShowBoundaryBox (const bool a_showBoundaryBox, const bool a_affectChildren=false) |
| |
| virtual void | deleteCollisionDetector (const bool a_affectChildren=false) |
| |
| virtual bool | computeCollisionDetection (const cVector3d &a_segmentPointA, const cVector3d &a_segmentPointB, cCollisionRecorder &a_recorder, cCollisionSettings &a_settings) |
| |
| virtual void | setShowCollisionDetector (const bool a_showCollisionDetector, const bool a_affectChildren=false) |
| |
| virtual void | setCollisionDetectorProperties (unsigned int a_displayDepth, cColorf &a_color, const bool a_affectChildren=false) |
| |
| virtual void | createBruteForceCollisionDetector () |
| |
| virtual void | createAABBCollisionDetector (const double a_radius) |
| |
| virtual cVector3d | computeInteractions (const cVector3d &a_toolPos, const cVector3d &a_toolVel, const unsigned int a_IDN, cInteractionRecorder &a_interactions) |
| |
| cMesh * | newMesh () |
| |
| bool | addMesh (cMesh *a_mesh) |
| |
| bool | removeMesh (cMesh *a_mesh) |
| |
| bool | removeAllMesh () |
| |
| bool | deleteMesh (cMesh *a_mesh) |
| |
| bool | deleteAllMeshes () |
| |
| int | getNumMeshes () |
| |
| cMesh * | getMesh (unsigned int a_index) |
| |
| bool | getVertex (const unsigned int a_index, cMesh *&a_mesh, unsigned int &a_vertexIndex) |
| |
| cVector3d | getVertexPos (unsigned int a_index) |
| |
| unsigned int | getNumVertices () const |
| |
| virtual void | setUseVertexColors (const bool a_useColors, const bool a_affectChildren=true) |
| |
| void | setVertexColor (const cColorf &a_color) |
| |
| bool | getTriangle (const unsigned int a_index, cMesh *&a_mesh, unsigned int &a_triangleIndex) |
| |
| unsigned int | getNumTriangles () const |
| |
| void | clear () |
| |
| void | setShowTriangles (const bool a_showTriangles) |
| |
| void | computeAllEdges (double a_angleThresholdDeg=40.0) |
| |
| void | clearAllEdges () |
| |
| void | setShowEdges (const bool a_showEdges) |
| |
| void | setEdgeProperties (const double a_width, const cColorf &a_color) |
| |
| void | setEdgeLineWidth (const double a_width) |
| |
| void | setShowNormals (const bool &a_showNormals) |
| |
| void | setNormalsProperties (const double a_length, const cColorf &a_color) |
| |
| void | setNormalsLength (const double a_length) |
| |
| void | computeAllNormals () |
| |
| void | reverseAllNormals () |
| |
| virtual bool | loadFromFile (std::string a_filename) |
| |
| virtual bool | saveToFile (std::string a_filename) |
| |
| virtual void | scale (const double &a_scaleFactor, const bool a_affectChildren=true) |
| |
| void | scaleXYZ (const double a_scaleX, const double a_scaleY, const double a_scaleZ) |
| |