PeriDyno 1.0.0
Loading...
Searching...
No Matches
PointSetToTriangleSet.cpp
Go to the documentation of this file.
2
4
5namespace dyno
6{
7 template<typename TDataType>
13
14 template<typename TDataType>
19
20 template<typename TDataType>
22 {
23 if (this->outShape()->isEmpty()) {
24 this->outShape()->setDataPtr(std::make_shared<TriangleSet<TDataType>>());
25 }
26
27
28 auto initial = this->inInitialShape()->getDataPtr();
29 auto shape = this->outShape()->getDataPtr();
30
31 shape->copyFrom(*initial);
32
33 mPointMapper = std::make_shared<PointSetToPointSet<TDataType>>();
34 mPointMapper->setUpdateAlways(true);
35
36 mPointMapper->setFrom(this->inPointSet()->getDataPtr());
37 mPointMapper->setTo(shape);
38 mPointMapper->setSearchingRadius(mRadius);
39 mPointMapper->initialize();
40 }
41
42 template<typename TDataType>
47
49}
#define DEFINE_CLASS(name)
Definition Object.h:140
std::shared_ptr< PointSetToPointSet< TDataType > > mPointMapper
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25