PeriDyno 1.0.0
Loading...
Searching...
No Matches
FastSweepingMethodGPU.h
Go to the documentation of this file.
1
16#pragma once
17#include "Topology/LevelSet.h"
18#include "Topology/TriangleSet.h"
19
21
22namespace dyno {
24 typedef Vector<int, 3> Vec3i;
25
28 typedef CArray3D<int> CArray3i;
29
33 template<typename TDataType>
35 {
37 public:
38 typedef typename TDataType::Real Real;
39 typedef typename TDataType::Coord Coord;
40
43
44 DEF_VAR(Real, Spacing, 0.05f, "");
45
46 DEF_VAR(uint, Padding, 10, "");
47
48 DEF_VAR(uint, PassNumber, 2, "");
49
50 public:
52
54
55 protected:
56 void compute() override;
57
58 private:
60
61 int ni;
62 int nj;
63 int nk;
66 };
67}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
DEF_INSTANCE_OUT(LevelSet< TDataType >, LevelSet, "")
DEF_VAR(uint, Padding, 10, "")
DEF_VAR(Real, Spacing, 0.05f, "")
DEF_VAR(uint, PassNumber, 2, "")
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Vector< int, 3 > Vec3i
Definition Vector3D.h:95
CArray3D< int > CArray3i
Vector< unsigned int, 3 > Vec3ui
Vector< float, 3 > Vec3f
Definition Vector3D.h:93
unsigned int uint
Definition VkProgram.h:14
CArray3D< float > CArray3f
CArray3D< unsigned int > CArray3ui
Array3D< T, DeviceType::CPU > CArray3D
Definition Array3D.h:136