AnimatLab  2
Test
VsMesh.cpp
1 // VsMesh.cpp: implementation of the VsMesh class.
2 //
4 
5 #include "StdAfx.h"
6 #include "VsMovableItem.h"
7 #include "VsBody.h"
8 #include "VsJoint.h"
9 #include "VsMotorizedJoint.h"
10 #include "VsRigidBody.h"
11 #include "VsMeshBase.h"
12 #include "VsMesh.h"
13 #include "VsSimulator.h"
14 #include "VsDragger.h"
15 
16 namespace VortexAnimatSim
17 {
18  namespace Environment
19  {
20  namespace Bodies
21  {
22 
24 // Construction/Destruction
26 
27 VsMesh::VsMesh()
28 {
29  SetThisPointers();
30 }
31 
32 VsMesh::~VsMesh()
33 {
34  try
35  {
36  DeleteGraphics();
37  DeletePhysics();
38  }
39  catch(...)
40  {Std_TraceMsg(0, "Caught Error in desctructor of VsMesh/\r\n", "", -1, false, true);}
41 }
42 
44 {
45  CreateGeometry();
46 
47  VsMeshBase::CreateItem();
48  Mesh::CreateParts();
49  VsMeshBase::SetBody();
50 }
51 
53 {
56 
57  Mesh::CreateJoints();
58  VsMeshBase::Initialize();
59 }
60 
61  } //Bodies
62  } // Environment
63 } //VortexAnimatSim
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
Definition: VsMesh.cpp:52
virtual void CreateJoint()
Creates the joint.
Definition: Joint.cpp:602
virtual void CreateParts()
Allows the rigid body to create its parts using the chosen physics engine.
Definition: VsMesh.cpp:43
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.