From e8c129cb59d37380bc2e5d654bc2900f7d9483fe Mon Sep 17 00:00:00 2001 From: Pablo Garzon Date: Tue, 2 May 2023 16:19:15 +0200 Subject: [PATCH] #3509 Geodesic deformation --- bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg | 75 ++++++++++++------- bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs | 24 ++++-- 2 files changed, 67 insertions(+), 32 deletions(-) diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg index 4fb24ef..4122f5c 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbg @@ -56,7 +56,7 @@ COMPLEX_PORT meshmanagermodel -131.800179:136.578564:-900.000000 FIN_COMPLEX_PORT -BOXES:76 +BOXES:78 BOX wx:LayoutLine:Box08 ISEXEC:FALSE @@ -236,8 +236,8 @@ FIN_BOX BOX creaVtk:MeshDeformation:Box39 ISEXEC:FALSE --393.073643:-51.132543:-900.000000 --370.728643:-53.632543:-900.000000 +-404.535808:-81.757400:-900.000000 +-382.190808:-84.257400:-900.000000 PORT TypeIn:"1" FIN_BOX @@ -637,7 +637,23 @@ ISEXEC:FALSE PORT Tool:"30" FIN_BOX -CONNECTIONS:150 +BOX +itkvtk:GeodesicMeshDeformation:Box122 +ISEXEC:FALSE +-424.104555:-56.428783:-900.000000 +-400.689555:-58.928783:-900.000000 +PORT +TypeIn:"1" +FIN_BOX +BOX +wx:CheckBox_tool:Box123 +ISEXEC:FALSE +-225.090772:-101.857293:-900.000000 +-202.880772:-104.357293:-900.000000 +PORT +In:"false" +FIN_BOX +CONNECTIONS:153 CONNECTION Box08:Widget:widget:widget NumberOfControlPoints:0 @@ -723,9 +739,6 @@ CONNECTION Box37:boxchange:Box11:BoxExecute NumberOfControlPoints:0 CONNECTION -Box49:Out:Box39:S -NumberOfControlPoints:0 -CONNECTION Box50:Out:Box58:Active NumberOfControlPoints:0 CONNECTION @@ -759,24 +772,15 @@ CONNECTION Box54:BoxChange:Box60:BoxExecute NumberOfControlPoints:0 CONNECTION -Box58:Center:Box39:Center -NumberOfControlPoints:0 -CONNECTION Box49:BoxChange:Box61:In1 NumberOfControlPoints:0 CONNECTION Box58:BoxChange:Box61:In2 NumberOfControlPoints:0 CONNECTION -Box61:BoxChange:Box39:BoxExecute -NumberOfControlPoints:0 -CONNECTION Box67:Out:Box62:Mesh NumberOfControlPoints:0 CONNECTION -Box62:MeshTemp:Box39:In -NumberOfControlPoints:0 -CONNECTION Box62:MeshManagerModel:Box48:MeshManagerModel NumberOfControlPoints:0 CONNECTION @@ -801,9 +805,6 @@ CONNECTION Box67:Out:Box48:Mesh NumberOfControlPoints:0 CONNECTION -Box39:BoxChange:Box73:In2 -NumberOfControlPoints:0 -CONNECTION Box63:BoxChange:Box73:In3 NumberOfControlPoints:0 CONNECTION @@ -927,9 +928,6 @@ CONNECTION Box102:Box_ConcatStrings:Box103:Box_ConcatString NumberOfControlPoints:0 CONNECTION -Box102:Out:Box39:EdgeId -NumberOfControlPoints:0 -CONNECTION Box75:PointId:Box101:In1 NumberOfControlPoints:0 CONNECTION @@ -1053,9 +1051,6 @@ CONNECTION Box50:Out:Box118:In2 NumberOfControlPoints:0 CONNECTION -Box118:Out:Box39:Active -NumberOfControlPoints:0 -CONNECTION Box117:Box_ConcatStrings:ExportIsActive_concatstring_tool:ExportIsActive_concatstring_tool NumberOfControlPoints:0 CONNECTION @@ -1088,4 +1083,34 @@ NumberOfControlPoints:0 CONNECTION Box62:MeshManagerModel:Box121:MeshManagerModel NumberOfControlPoints:0 +CONNECTION +Box61:BoxChange:Box122:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box122:BoxChange:Box73:In2 +NumberOfControlPoints:0 +CONNECTION +Box49:Out:Box122:S +NumberOfControlPoints:0 +CONNECTION +Box58:Center:Box122:Center +NumberOfControlPoints:0 +CONNECTION +Box102:Out:Box122:EdgeId +NumberOfControlPoints:0 +CONNECTION +Box62:MeshTemp:Box122:In +NumberOfControlPoints:0 +CONNECTION +Box118:Out:Box122:Active +NumberOfControlPoints:0 +CONNECTION +Box50:BoxChange:Box61:In3 +NumberOfControlPoints:0 +CONNECTION +Box50:Widget:Box123:CheckBoxWidget +NumberOfControlPoints:0 +CONNECTION +Box42:BoxChange:Box123:BoxExecute +NumberOfControlPoints:0 APP_END diff --git a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs index cd0ad7c..92c7656 100644 --- a/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs +++ b/bbtk/bbs/boxes/Mesh_tool_ApplyDeformation.bbs @@ -10,6 +10,7 @@ include vtk include std include creaMaracasVisu include creaVtk +include itkvtk define Mesh_tool_ApplyDeformation creaMaracasVisu @@ -232,6 +233,12 @@ new std:ReplaceCleanString Box119 new creaVtk:MeshManager_tool Box121 set Box121.Tool "30" +new itkvtk:GeodesicMeshDeformation Box122 + set Box122.TypeIn "1" + +new wx:CheckBox_tool Box123 + set Box123.In "false" + connect Box66.Out Box11.Renderer connect Box66.Out Box37.render @@ -251,7 +258,6 @@ connect Box96.vtkRenderer Box66.In connect Box37.widget Box79.Widget7 connect Box40.Widget Box81.Widget2 connect Box37.boxchange Box11.BoxExecute -connect Box49.Out Box39.S connect Box50.Out Box58.Active connect Box50.BoxChange Box59.In2 connect Box59.BoxChange Box58.BoxExecute @@ -263,12 +269,9 @@ connect Box58.Base Box57.In connect Box58.Base Box60.In connect Box53.BoxChange Box57.BoxExecute connect Box54.BoxChange Box60.BoxExecute -connect Box58.Center Box39.Center connect Box49.BoxChange Box61.In1 connect Box58.BoxChange Box61.In2 -connect Box61.BoxChange Box39.BoxExecute connect Box67.Out Box62.Mesh -connect Box62.MeshTemp Box39.In connect Box62.MeshManagerModel Box48.MeshManagerModel connect Box62.MeshTemp Box37.polydata connect Box62.MeshTemp Box72._polydata @@ -277,7 +280,6 @@ connect Box62.MeshTemp Box45.Mesh connect Box42.BoxChange Box51.BoxExecute connect Box43.BoxChange Box48.BoxExecute connect Box67.Out Box48.Mesh -connect Box39.BoxChange Box73.In2 connect Box63.BoxChange Box73.In3 connect Box73.BoxChange Box72._execute connect Box62.MeshTemp Box75.Mesh @@ -319,7 +321,6 @@ connect Box98.Box_ConcatStrings Box100.Box_ConcatString connect Box75.Normal Box100.In1 connect Box102.Box_ConcatStrings Box101.Box_ConcatString connect Box102.Box_ConcatStrings Box103.Box_ConcatString -connect Box102.Out Box39.EdgeId connect Box75.PointId Box101.In1 connect Box92.PointId Box103.In1 connect Box98.Out Box58.NormalIn @@ -361,7 +362,6 @@ connect Box69.Out Box114.wxVtkBaseView3 connect Box117.Out Box119.In connect Box119.Out Box118.In1 connect Box50.Out Box118.In2 -connect Box118.Out Box39.Active connect Box37.vtkprop3D Box92.Prop3D connect Box97.BoxChange Box59.In3 connect Box56.Widget Box44.Widget4 @@ -372,6 +372,16 @@ connect Box43.Widget Box44.Widget1 connect Box67.BoxChange Box121.BoxExecute connect Box67.Out Box121.Mesh connect Box62.MeshManagerModel Box121.MeshManagerModel +connect Box61.BoxChange Box122.BoxExecute +connect Box122.BoxChange Box73.In2 +connect Box49.Out Box122.S +connect Box58.Center Box122.Center +connect Box102.Out Box122.EdgeId +connect Box62.MeshTemp Box122.In +connect Box118.Out Box122.Active +connect Box50.BoxChange Box61.In3 +connect Box50.Widget Box123.CheckBoxWidget +connect Box42.BoxChange Box123.BoxExecute # Complex input ports input mesh Box67.In " " -- 2.47.1