-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch-BarycentricMapping-useRestPosition-v20.06.01.diff
More file actions
25 lines (24 loc) · 1.89 KB
/
patch-BarycentricMapping-useRestPosition-v20.06.01.diff
File metadata and controls
25 lines (24 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.inl b/SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.inl
index adeb376ea10..17eb0f3db1a 100644
--- a/SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.inl
+++ b/SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.inl
@@ -97,11 +97,11 @@ static bool is_a(const V * topology) {
template <class TIn, class TOut>
BarycentricMapping<TIn, TOut>::BarycentricMapping(core::State<In>* from, core::State<Out>* to, typename Mapper::SPtr mapper)
: Inherit1 ( from, to )
+ , useRestPosition(core::objectmodel::Base::initData(&useRestPosition, false, "useRestPosition", "Use the rest position of the input and output models to initialize the mapping"))
, d_mapper(initLink("mapper","Internal mapper created depending on the type of topology"), mapper)
, d_input_topology(initLink("input_topology", "Input topology container (usually the surrounding domain)."))
, d_output_topology(initLink("output_topology", "Output topology container (usually the immersed domain)."))
-
{
if (mapper)
this->addSlave(mapper.get());
@@ -110,6 +110,7 @@ BarycentricMapping<TIn, TOut>::BarycentricMapping(core::State<In>* from, core::S
template <class TIn, class TOut>
BarycentricMapping<TIn, TOut>::BarycentricMapping (core::State<In>* from, core::State<Out>* to, BaseMeshTopology * input_topology )
: Inherit1 ( from, to )
+ , useRestPosition(core::objectmodel::Base::initData(&useRestPosition, false, "useRestPosition", "Use the rest position of the input and output models to initialize the mapping"))
, d_mapper (initLink("mapper","Internal mapper created depending on the type of topology"))
, d_input_topology(initLink("input_topology", "Input topology container (usually the surrounding domain)."))
, d_output_topology(initLink("output_topology", "Output topology container (usually the immersed domain)."))