PeriDyno 1.0.0
Loading...
Searching...
No Matches
DiscreteElements.h
Go to the documentation of this file.
1#pragma once
2#include "VkDeviceArray.h"
5
6namespace dyno
7{
8 struct ElementOffset
9 {
10 uint32_t box_bound;
11 uint32_t capsule_bound;
12 uint32_t sphere_bound;
13 };
14
15 class DiscreteElements : public TopologyModule
16 {
17 public:
20
21 void setBoxes(std::vector<px::Box> boxes);
22 void setSpheres(std::vector<px::Sphere> spheres);
23 void setCapsules(std::vector<px::Capsule> capsules);
24
28
30
31 uint32_t getTotalElementSize();
32
33 private:
37 };
38}
39
VkDeviceArray< px::Box > & getBoxes()
VkDeviceArray< px::Capsule > & getCapsules()
VkDeviceArray< px::Capsule > mCapsules
VkDeviceArray< px::Box > mBoxes
VkDeviceArray< px::Sphere > & getSpheres()
void setCapsules(DArray< Capsule3D > &capsules)
ElementOffset getElementOffset()
void setBoxes(DArray< Box3D > &boxes)
VkDeviceArray< px::Sphere > mSpheres
void setSpheres(DArray< Sphere3D > &spheres)
~DiscreteElements() override
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25