Skip to content

Commit

Permalink
Apply data name change
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Dec 10, 2024
1 parent 969bed3 commit 8c14a01
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/3instruments.scn
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
controlledInstrument='0' startingPos='0 0 0 0 -0.7071068 0 0.7071068' speed='2' instruments='InterpolCatheter InterpolGuide InterpolCoils' />

<FixedProjectiveConstraint name='FixedConstraint' indices='0' />
<RestShapeSpringsForceField points='@IRController.indexFirstNode' stiffness='1e8' angularStiffness='1e8' />
<RestShapeSpringsForceField indices='@IRController.indexFirstNode' stiffness='1e8' angularStiffness='1e8' />

<Node name='VisuCatheter' activated='true'>
<MechanicalObject name='Quads' />
Expand Down
2 changes: 1 addition & 1 deletion examples/3instruments_collis.scn
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<LinearSolverConstraintCorrection printLog="false" wire_optimization="true"/>

<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<RestShapeSpringsForceField points="@IRController.indexFirstNode" stiffness="1e8" angularStiffness="1e8" />
<RestShapeSpringsForceField indices="@IRController.indexFirstNode" stiffness="1e8" angularStiffness="1e8" />

<Node name="Collis" activated="true">
<EdgeSetTopologyContainer name="collisEdgeSet" />
Expand Down
2 changes: 1 addition & 1 deletion examples/SingleBeamDeployment.scn
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
rotationInstrument="0 0 0" step="0.5" speed="0.5"
listening="1" controlledInstrument="0"/>
<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<RestShapeSpringsForceField name="RestSPForceField" points="@DeployController.indexFirstNode" angularStiffness="1e8" stiffness="1e8"/>
<RestShapeSpringsForceField name="RestSPForceField" indices="@DeployController.indexFirstNode" angularStiffness="1e8" stiffness="1e8"/>
</Node>

</Node>
Expand Down
2 changes: 1 addition & 1 deletion examples/SingleBeamDeploymentCollision.scn
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
listening="1" controlledInstrument="0"/>
<LinearSolverConstraintCorrection wire_optimization="true" printLog="0" />
<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<RestShapeSpringsForceField name="RestSPForceField" points="@DeployController.indexFirstNode" angularStiffness="1e8" stiffness="1e8"/>
<RestShapeSpringsForceField name="RestSPForceField" indices="@DeployController.indexFirstNode" angularStiffness="1e8" stiffness="1e8"/>

<Node name="CollisionModel">
<EdgeSetTopologyContainer name="collisEdgeSet" />
Expand Down
2 changes: 1 addition & 1 deletion examples/Tool_from_loader.scn
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
/>

<FixedProjectiveConstraint name="FixedConstraint" indices="0" />
<RestShapeSpringsForceField points="@IRController.indexFirstNode" stiffness="1e8" angularStiffness="1e8" />
<RestShapeSpringsForceField indices="@IRController.indexFirstNode" stiffness="1e8" angularStiffness="1e8" />

<Node name='VisuGuideCatheter'>
<MechanicalObject name='dof_visual_GC' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def createScene(rootNode):
InstrumentCombined.addObject('AdaptiveBeamForceFieldAndMass', name="CatheterForceField", massDensity="0.000005", interpolation="@InterpolCatheter", printLog=False)
InstrumentCombined.addObject('LinearSolverConstraintCorrection', printLog=False, wire_optimization="true")
InstrumentCombined.addObject("FixedProjectiveConstraint", indices="0")
InstrumentCombined.addObject('RestShapeSpringsForceField', name="MeasurementFF", points="@m_ircontroller.indexFirstNode", stiffness="1e10", recompute_indices="1", angularStiffness="1e10", external_rest_shape="@../RefStartingPos/ReferencePos", external_points="0", drawSpring="1", springColor="1 0 0 1")
InstrumentCombined.addObject('RestShapeSpringsForceField', name="MeasurementFF", indices="@m_ircontroller.indexFirstNode", stiffness="1e10", recompute_indices="1", angularStiffness="1e10", external_rest_shape="@../RefStartingPos/ReferencePos", externalIndices="0", drawSpring="1", springColor="1 0 0 1")

CollisInstrumentCombined = InstrumentCombined.addChild('CollisInstrumentCombined')
CollisInstrumentCombined.addObject('EdgeSetTopologyContainer', name="collisEdgeSet")
Expand Down
2 changes: 1 addition & 1 deletion examples/python3/SingleBeamDeployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def createScene(rootNode):
rotationInstrument=[0, 0, 0], step=0.5, speed=0.5,
listening=True, controlledInstrument=0)
BeamMechanics.addObject('FixedProjectiveConstraint', indices=0, name='FixedConstraint')
BeamMechanics.addObject('RestShapeSpringsForceField', name="RestSPForceField", points='@DeployController.indexFirstNode', angularStiffness=1e8, stiffness=1e8)
BeamMechanics.addObject('RestShapeSpringsForceField', name="RestSPForceField", indices='@DeployController.indexFirstNode', angularStiffness=1e8, stiffness=1e8)


def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/python3/SingleBeamDeploymentCollision.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def createScene(rootNode):
listening=True, controlledInstrument=0)
BeamMechanics.addObject('LinearSolverConstraintCorrection', wire_optimization='true', printLog=False)
BeamMechanics.addObject('FixedProjectiveConstraint', indices=0, name='FixedConstraint')
BeamMechanics.addObject('RestShapeSpringsForceField', points='@DeployController.indexFirstNode', angularStiffness=1e8, stiffness=1e8)
BeamMechanics.addObject('RestShapeSpringsForceField', indices='@DeployController.indexFirstNode', angularStiffness=1e8, stiffness=1e8)


BeamCollis = BeamMechanics.addChild('CollisionModel')
Expand Down
4 changes: 2 additions & 2 deletions examples/python3/beamadapter/parts/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def combineInstruments(node, xtip=[1, 0, 0], instruments=['guide'],
controlledInstrument=controlledInstrument)
InstrumentCombined.addObject('LinearSolverConstraintCorrection', wire_optimization='true', printLog=False)
InstrumentCombined.addObject('FixedConstraint', indices=0, name='FixedConstraint')
InstrumentCombined.addObject('RestShapeSpringsForceField', points='@m_ircontroller.indexFirstNode',
InstrumentCombined.addObject('RestShapeSpringsForceField', indices='@m_ircontroller.indexFirstNode',
angularStiffness=1e8, stiffness=1e8)

return (InstrumentCombined)
Expand Down Expand Up @@ -90,7 +90,7 @@ def createInstrumentsCombined(node, xtip=[1, 0, 0], instruments=['guide'],
controlledInstrument=controlledInstrument)
InstrumentCombined.addObject('LinearSolverConstraintCorrection', wire_optimization='true', printLog=False)
InstrumentCombined.addObject('FixedConstraint', indices=0, name='FixedConstraint')
InstrumentCombined.addObject('RestShapeSpringsForceField', points='@m_ircontroller.indexFirstNode',
InstrumentCombined.addObject('RestShapeSpringsForceField', indices='@m_ircontroller.indexFirstNode',
angularStiffness=1e8, stiffness=1e8)

# Collision model
Expand Down

0 comments on commit 8c14a01

Please sign in to comment.