PeriDyno 1.0.0
Loading...
Searching...
No Matches
BasicShapeToVolume.h
Go to the documentation of this file.
1
16#pragma once
17#include "Volume.h"
19
20namespace dyno
21{
22 template<typename TDataType>
23 class BasicShapeToVolume : public Volume<TDataType>
24 {
26 public:
27 typedef typename TDataType::Real Real;
28 typedef typename TDataType::Coord Coord;
29
32
33 public:
34 DEF_VAR(bool, Inerted, false, "");
35
36 DEF_VAR(Real, GridSpacing, 0.05f, "The grid spacing used in discretizing the basic shape");
37
38 public:
40
41 protected:
42 void resetStates() override;
43
44 bool validateInputs() override;
45
46 private:
47 void convert();
48 };
49}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
void resetStates() override
DEF_VAR(Real, GridSpacing, 0.05f, "The grid spacing used in discretizing the basic shape")
DEF_VAR(bool, Inerted, false, "")
~BasicShapeToVolume() override
DEF_NODE_PORT(BasicShape< TDataType >, Shape, "")
bool validateInputs() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25