00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "ManipulatedMeshVertexAnimated.h"
00013
00014 namespace animal {
00015
00016 namespace octree {
00017
00018 template<typename t_Vector,typename t_Real,typename t_VecReal>
00019 ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::ManipulatedMeshVertexAnimated(X3DTK::X3D::DeformableOctreeParticleSystemNode *node, const X3DTK::SFVec3f *meshVertex)
00020 : ManipulatedMeshVertex(node,meshVertex)
00021 , _node(node)
00022 {
00023 }
00024
00025
00026 template<typename t_Vector,typename t_Real,typename t_VecReal>
00027 ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::~ManipulatedMeshVertexAnimated()
00028 {
00029 }
00030
00031 template<typename t_Vector,typename t_Real,typename t_VecReal>
00032 void ManipulatedMeshVertexAnimated<t_Vector,t_Real,t_VecReal>::moveTo( float x, float y, float z )
00033 {
00034
00035 Require( _octree );
00036 Require( _vertex );
00037 _node->getOctree()->directManipulation( _vertex, Vec3d(x,y,z) );
00038 _node->getOctree()->movedRecLeaves( _node->getOctree()->root() );
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 }
00049
00050 };
00051
00052 };