diff --git a/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.cpp b/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.cpp index 6e7da7e30cc5c0168c589a6ac7c7157dbd18089f..40c8a1d559bbc7f4e52ac59e47d53491fefb747e 100644 --- a/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.cpp +++ b/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.cpp @@ -40,7 +40,9 @@ namespace namespace VirtualRobot { - + CoinVisualizationNode::CoinVisualizationNode(TriMeshModelPtr tri): + CoinVisualizationNode(CoinVisualizationFactory::getCoinVisualization(tri)) + {} /** * Store a reference to \p visualizationNode in the member * CoinVisualizationNode::visualization. diff --git a/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.h b/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.h index bd210bca270a3bee79d7ab6da47fe46127e3b54d..d3e37bc1579ea90c03480fe0b6a368b8549972e9 100644 --- a/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.h +++ b/VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.h @@ -43,6 +43,7 @@ namespace VirtualRobot { friend class CoinVisualizationFactory; public: + CoinVisualizationNode(TriMeshModelPtr tri); CoinVisualizationNode(SoNode* visualizationNode, float margin = 0.0f); ~CoinVisualizationNode() override; TriMeshModelPtr getTriMeshModel() override;