Skip to content

Commit

Permalink
[Engine.Analyze] Fix initialization of distance type (#4711)
Browse files Browse the repository at this point in the history
* [Engine.Analyze] Fix initialization of distance type

* Rename option
  • Loading branch information
alxbilger committed May 6, 2024
1 parent d64a5b5 commit 4637b70
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -47,7 +47,7 @@ Distances< DataTypes >::Distances ( sofa::component::topology::container::dynami
showGradientMap ( initData ( &showGradientMap, false, "showGradients","show gradients for each point of the target point set." ) ),
showGradientsScaleFactor ( initData ( &showGradientsScaleFactor, 0.1, "showGradientsScaleFactor","scale for the gradients displayed." ) ),
offset ( initData ( &offset, Coord(), "offset","translation offset between the topology and the point set." ) ),
distanceType ( initData ( &distanceType, TYPE_GEODESIC, "distanceType","type of distance to compute for inserted frames." ) ),
distanceType ( initData ( &distanceType, {"Geodesic","Harmonic","Stiffness Diffusion", "Voronoi", "Harmonic with Stiffness"}, "distanceType","type of distance to compute for inserted frames." ) ),
initTarget ( initData ( &initTarget, false, "initTarget","initialize the target MechanicalObject from the grid." ) ),
initTargetStep ( initData ( &initTargetStep, 1, "initTargetStep","initialize the target MechanicalObject from the grid using this step." ) ),
zonesFramePair ( initData ( &zonesFramePair, "zonesFramePair","Correspondance between the segmented value and the frames." ) ),
Expand All @@ -61,10 +61,6 @@ Distances< DataTypes >::Distances ( sofa::component::topology::container::dynami
this->addAlias(&fileDistance, "fileDistance");
zonesFramePair.setDisplayed( false); // GUI can not display map.

sofa::helper::OptionsGroup distanceTypeOptions{"Geodesic","Harmonic","Stiffness Diffusion", "Vorono\xEF", "Harmonic with Stiffness"};
distanceTypeOptions.setSelectedItem(TYPE_GEODESIC);
distanceType.setValue(distanceTypeOptions);

this->f_printLog.setValue(true);
}

Expand Down

0 comments on commit 4637b70

Please sign in to comment.