Skip to content

Commit dbad89f

Browse files
authored
Merge pull request rouge1616#3 from epernod/clean_sofaNG
Small update on Readme and plugin config files
2 parents 1457e34 + f2cd2d6 commit dbad89f

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

MeshSkeletonizationPlugin.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

MeshSkeletonizationPluginConfig.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
@PACKAGE_INIT@
44

55

6-
find_package(SofaFramework REQUIRED)
7-
find_package(SofaSimulationCommon REQUIRED)
6+
find_package(Sofa.Core QUIET REQUIRED)
7+
find_package(Sofa.Type QUIET REQUIRED)
88
find_package(CGAL QUIET REQUIRED)
99

1010

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,53 @@ This plugin interfaces [CGAL Skeletonization](https://doc.cgal.org/latest/Surfac
77

88
The build can be done In-tree or Out of tree, see SOFA [documentation](https://www.sofa-framework.org/community/doc/plugins/build-a-plugin-from-sources/).
99

10+
- CGAL version needed should be greater than 4.9
11+
- SOFA version compatible since v22.06
1012

1113

1214
## Usage
1315

1416
The example bellow store in the output file the skeleton of a the input vessel mesh.
1517
```xml
1618
<Node name="root" dt="0.01" gravity="0 -1 0">
17-
<VisualStyle displayFlags="showVisual showCollisionModels showWireframe"/>
18-
<RequiredPlugin pluginName="MeshSkeletonizationPlugin"/>
19-
<RequiredPlugin pluginName='SofaOpenglVisual'/>
19+
<VisualStyle displayFlags="showVisual showCollisionModels showWireframe"/>
20+
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] -->
21+
<RequiredPlugin name="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle] -->
22+
<RequiredPlugin name="Sofa.Component.SceneUtility"/> <!-- Needed to use components [InfoComponent] -->
23+
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshOBJLoader] -->
24+
<RequiredPlugin name="MeshSkeletonizationPlugin"/>
2025

21-
<MeshObjLoader name="meshLoader" filename="../data/mesh/vessels.obj" />
26+
<DefaultAnimationLoop />
27+
<MeshOBJLoader name="meshLoader" filename="../data/mesh/vessels.obj" />
2228

2329
<MeshSkeletonization template="Vec3d" name="skeleton"
2430
inputVertices="@meshLoader.position" inputTriangles="@meshLoader.triangles"
25-
inputFile="../data/skeletons/output_vessels_skeleton.txt"
31+
outputSkeleton="../data/skeletons/output_vessels_skeleton.txt"
2632
/>
2733

2834
<Node name="visual">
2935
<OglModel src="@../meshLoader"/>
3036
</Node>
31-
37+
3238
</Node>
3339
```
34-
Please note that it is also compatible with [SOFAPython3](https://sofapython3.readthedocs.io/en/latest/)
40+
41+
It is important to specify the Data ```outputSkeleton``` in which the plugin will write the centerlines.
42+
43+
This file will contain a set of points per polyline, polylines are separated by an empty line. Biforcation points can be found on their corresponant polylines.
44+
45+
Please note that the plugin is compatible with [SOFAPython3](https://sofapython3.readthedocs.io/en/latest/)
3546

3647
The scene above visualusation:
3748
![Mesh Skeletonization ](./data/img/visu_skel.png)
3849

3950
Other examples can be found in the *scenes* directory
4051

52+
## AUTHOR :
53+
- Nazim Haouchine
54+
- Sidaty El Hadramy
55+
4156
## Contributing
4257
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
4358

44-
Please make sure to update tests as appropriate.
59+
Please make sure to update tests as appropriate.

0 commit comments

Comments
 (0)