PeriDyno 1.0.0
Loading...
Searching...
No Matches
SparseVolumeClipper.h
Go to the documentation of this file.
1
16#pragma once
17#include "Volume/VolumeOctree.h"
18
19namespace dyno
20{
21 template<typename TDataType>
23 {
25 public:
26 typedef typename TDataType::Real Real;
27 typedef typename TDataType::Coord Coord;
28
30 ~SparseVolumeClipper() override;
31
32 std::string getNodeType() override { return "Adaptive Volume"; }
33
34 public:
35 DEF_VAR(Coord, Translation, Coord(0), "");
36 DEF_VAR(Coord, Rotation, Coord(0), "");
37
38 DEF_ARRAY_STATE(Real, Field, DeviceType::GPU, "Signed distance field defined on trianglular vertices");
39
40 DEF_ARRAY_STATE(Coord, Vertices, DeviceType::GPU, "");
41
43
44 DEF_NODE_PORT(VolumeOctree<TDataType>, SparseVolume, "The value of SDFOctree");
45
46 protected:
47 void resetStates() override;
48
49 void updateStates() override;
50 };
51
53}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
std::string getNodeType() override
DEF_ARRAY_STATE(Coord, Vertices, DeviceType::GPU, "")
DEF_VAR(Coord, Rotation, Coord(0), "")
DEF_ARRAY_STATE(Real, Field, DeviceType::GPU, "Signed distance field defined on trianglular vertices")
DEF_VAR(Coord, Translation, Coord(0), "")
DEF_NODE_PORT(VolumeOctree< TDataType >, SparseVolume, "The value of SDFOctree")
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25