PeriDyno 1.0.0
Loading...
Searching...
No Matches
VolumeOctree.cpp
Go to the documentation of this file.
1#include "VolumeOctree.h"
2
4
6
7namespace dyno
8{
9 template<typename TDataType>
11 : Node()
12 {
13 auto mapper = std::make_shared<AdaptiveVolumeToTriangleSet<TDataType>>();
14 this->stateSDFTopology()->connect(mapper->ioVolume());
15 this->graphicsPipeline()->pushModule(mapper);
16
17 auto renderer = std::make_shared<GLSurfaceVisualModule>();
18 mapper->outTriangleSet()->connect(renderer->inTriangleSet());
19 this->graphicsPipeline()->pushModule(renderer);
20 }
21
22 template<typename TDataType>
26
27 template<typename TDataType>
29 {
30 return "Adaptive Volume";
31 }
32
34}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:320
~VolumeOctree() override
std::string getNodeType() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25