PeriDyno 1.0.0
Loading...
Searching...
No Matches
Sampler.cpp
Go to the documentation of this file.
1#include "Sampler.h"
2
4
5namespace dyno
6{
7 template<typename TDataType>
9 : Node()
10 {
11 this->statePointSet()->setDataPtr(std::make_shared<PointSet<TDataType>>());
12
13 auto glModule = std::make_shared<GLPointVisualModule>();
14 glModule->setColor(Color(0.25f, 0.52f, 0.8f));
15 glModule->setVisible(true);
16 glModule->varPointSize()->setValue(0.005);
17 this->statePointSet()->connect(glModule->inPointSet());
18 this->graphicsPipeline()->pushModule(glModule);
19 }
20
22}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::shared_ptr< GraphicsPipeline > graphicsPipeline()
Definition Node.cpp:320
A PointSet stores the coordinates for a set of independent points.
Definition PointSet.h:8
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25