PeriDyno 1.0.0
Loading...
Searching...
No Matches
VolumeClipper.h
Go to the documentation of this file.
1
16#pragma once
17#include "Node.h"
18
19#include "Topology/LevelSet.h"
20#include "Topology/TriangleSet.h"
21
22namespace dyno
23{
24 template<typename TDataType>
25 class VolumeClipper : public Node
26 {
28 public:
29 typedef typename TDataType::Real Real;
30 typedef typename TDataType::Coord Coord;
31
33 ~VolumeClipper() override;
34
35 std::string getNodeType() override { return "Volume"; }
36
37 public:
38 DEF_VAR(Coord, Translation, Coord(0), "");
39 DEF_VAR(Coord, Rotation, Coord(0), "");
40
41 DEF_ARRAY_STATE(Real, Field, DeviceType::GPU, "Signed distance field defined on trianglular vertices");
42
44
46
47 DEF_INSTANCE_IN(LevelSet<TDataType>, LevelSet, "A 3D signed distance field");
48
49 protected:
50 void resetStates() override;
51 };
52
54}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
std::string getNodeType() override
DEF_INSTANCE_STATE(TriangleSet< TDataType >, Plane, "")
TDataType::Real Real
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "An iso surface")
DEF_ARRAY_STATE(Real, Field, DeviceType::GPU, "Signed distance field defined on trianglular vertices")
DEF_INSTANCE_IN(LevelSet< TDataType >, LevelSet, "A 3D signed distance field")
DEF_VAR(Coord, Rotation, Coord(0), "")
TDataType::Coord Coord
void resetStates() override
DEF_VAR(Coord, Translation, Coord(0), "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25