PeriDyno 1.0.0
Loading...
Searching...
No Matches
Volume.cpp
Go to the documentation of this file.
1#include "Volume.h"
2
3#include "Topology/LevelSet.h"
4
6
7//Rendering
9
10namespace dyno
11{
12 template<typename TDataType>
14 : Node()
15 {
16 this->setAutoHidden(true);
17
18 auto mapper = std::make_shared<VolumeToTriangleSet<TDataType>>();
19 this->stateLevelSet()->connect(mapper->ioVolume());
20 this->graphicsPipeline()->pushModule(mapper);
21
22 auto renderer = std::make_shared<GLSurfaceVisualModule>();
23 mapper->outTriangleSet()->connect(renderer->inTriangleSet());
24 this->graphicsPipeline()->pushModule(renderer);
25 }
26
27 template<typename TDataType>
31
32 template<typename TDataType>
34 {
35 return "Volume";
36 }
37
39}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:320
void setAutoHidden(bool con)
Definition Node.cpp:68
std::string getNodeType() override
Definition Volume.cpp:33
~Volume() override
Definition Volume.cpp:28
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25