-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge the Master branch into the Main branch
- Loading branch information
Showing
99 changed files
with
313 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- uses: sonarsource/sonarqube-scan-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
# If you wish to fail your job when the Quality Gate is red, uncomment the | ||
# following lines. This would typically be used to fail a deployment. | ||
# We do not recommend to use this in a pull request. Prefer using pull request | ||
# decoration instead. | ||
# - uses: sonarsource/sonarqube-quality-gate-action@master | ||
# timeout-minutes: 5 | ||
# env: | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ target_link_libraries(${This} PUBLIC | |
SofaTest | ||
gtest | ||
gtest_main | ||
CosseratPlugin | ||
Cosserat | ||
Example | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<html> | ||
<head> | ||
<link href="../../../../share/sofa/examples/Objects/sofa_white.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<div id="contenu"> | ||
<center><h3>Cosserat plugin: needle insertion </h3></center> | ||
<br> | ||
<div id="orangeText">Instruments control</div> | ||
<br> | ||
<div align="controler"> | ||
You can use the keyboard to move the needle (arrow keys): | ||
<ul> | ||
<li>ctrl + up: move up the needle</li> | ||
<li>ctrl + down: move down the needle</li> | ||
<li>ctrl + right: move towards the deformable gel (forward insertion)</li> | ||
<li>ctrl + left: move away from the deformable gel (backward insertion)</li> | ||
</ul> | ||
<br> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
import sys | ||
sys.path.append('../') | ||
from cosserat.createFemRegularGrid import createFemCube | ||
from cosserat.usefulFunctions import pluginList | ||
|
||
__authors__ = "younesssss" | ||
__contact__ = "[email protected], [email protected]" | ||
__version__ = "1.0.0" | ||
|
@@ -23,10 +25,6 @@ | |
|
||
path = os.path.dirname(os.path.abspath(__file__))+'/../mesh/' | ||
|
||
pluginNameList = 'SofaConstraint SofaDeformable SofaImplicitOdeSolver SofaMeshCollision SofaPreconditioner' \ | ||
' SofaGeneralTopology SofaOpenglVisual SofaGeneralRigid SoftRobots SofaSparseSolver' \ | ||
' CosseratPlugin SofaBoundaryCondition' | ||
|
||
|
||
class Animation(Sofa.Core.Controller): | ||
|
||
|
@@ -93,8 +91,7 @@ def onKeypressedEvent(self, event): | |
|
||
|
||
def createScene(rootNode): | ||
rootNode.addObject( | ||
'RequiredPlugin', pluginName=pluginNameList, printLog='0') | ||
rootNode.addObject('RequiredPlugin', name='plugins', pluginName=[pluginList]) | ||
|
||
rootNode.addObject('VisualStyle', displayFlags='showBehaviorModels hideCollisionModels hideBoundingCollisionModels ' | ||
'showForceFields hideInteractionForceFields showWireframe') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<html> | ||
<head> | ||
<link href="../../../../share/sofa/examples/Objects/sofa_white.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<div id="contenu"> | ||
<center><h3>Cosserat plugin: needle insertion </h3></center> | ||
<br> | ||
<div id="orangeText">Instruments control</div> | ||
<br> | ||
<div align="controler"> | ||
You can use the keyboard to move the needle (arrow keys): | ||
<ul> | ||
<li>ctrl + up: move up the needle</li> | ||
<li>ctrl + down: move down the needle</li> | ||
<li>ctrl + right: move towards the deformable gel (forward insertion)</li> | ||
<li>ctrl + left: move away from the deformable gel (backward insertion)</li> | ||
</ul> | ||
<br> | ||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.