Commit 65d6d927 authored by Jan Möbius's avatar Jan Möbius
Browse files

Use typedef for creating new object

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6269 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 42fceebe
......@@ -59,9 +59,9 @@ FileTriangleMeshPlugin::FileTriangleMeshPlugin()
/// Add an empty triangle mesh
int FileTriangleMeshPlugin::addEmpty( ){
// new object data struct
MeshObject< TriMesh, DATA_TRIANGLE_MESH >* object;
TriMeshObject* object;
object = new MeshObject< TriMesh, DATA_TRIANGLE_MESH >( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
object = new TriMeshObject( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
// Set pointers for tree structure
object->setParent(PluginFunctions::objectRoot());
......@@ -91,9 +91,9 @@ int FileTriangleMeshPlugin::addEmpty( ){
int FileTriangleMeshPlugin::loadObject(QString _filename){
// new object data struct
MeshObject< TriMesh, DATA_TRIANGLE_MESH >* object;
TriMeshObject* object;
object = new MeshObject< TriMesh, DATA_TRIANGLE_MESH >( dynamic_cast < ACG::SceneGraph::SeparatorNode* >(PluginFunctions::getRootNode()) );
object = new TriMeshObject( dynamic_cast < ACG::SceneGraph::SeparatorNode* >(PluginFunctions::getRootNode()) );
// Set pointers for tree structure
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment