PeriDyno 1.0.0
Loading...
Searching...
No Matches
EdgeSet.cpp
Go to the documentation of this file.
1#include "EdgeSet.h"
2
3namespace dyno
4{
6 : PointSet()
7 {
8 }
9
11 {
12 }
13
15 {
16 mEdgeIndex.assign(edges);
17 }
18
19 void EdgeSet::setEdges(const std::vector<Edge>& edges)
20 {
21 mEdgeIndex.assign(edges);
22 }
23
25 {
26 mEdgeIndex.assign(es.mEdgeIndex);
27 mPoints.assign(es.mPoints);
28 }
29
31 {
32 this->updateEdges();
33 }
34
35}
void copyFrom(EdgeSet< TDataType > &edgeSet)
Definition EdgeSet.cpp:24
virtual void updateEdges()
Definition EdgeSet.h:141
void updateTopology() override
Definition EdgeSet.cpp:30
DArray< Edge > mEdgeIndex
Definition EdgeSet.h:28
~EdgeSet() override
Definition EdgeSet.cpp:10
void setEdges(std::vector< Edge > &edges)
DArray< Vec3f > mPoints
Definition PointSet.h:21
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89