PeriDyno 1.0.0
Loading...
Searching...
No Matches
SparseGridHash.h
Go to the documentation of this file.
1#pragma once
2#include "Algorithm/Scan.h"
4
5#include "SparseOctree.h"
6
7namespace dyno
8{
9 template<typename TDataType>
11 {
12 public:
13 typedef typename TDataType::Real Real;
14 typedef typename TDataType::Coord Coord;
15
18
19 void setSpace(Coord lo, Real h, Real L);
20
21 void construct(DArray<Coord>& points, Real h);
22
23 private:
29
32
34
37
39 };
40}
TDataType::Real Real
void setSpace(Coord lo, Real h, Real L)
TDataType::Coord Coord
void construct(DArray< Coord > &points, Real h)
DArray< OctreeNode > m_all_nodes
int m_level_max
levels are numbered from 0 to m_level_max;
DArray< OctreeNode > m_post_ordered_nodes
SparseOctree< TDataType > mSparseOctree
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89