Home › Forum › SOFA › Using SOFA › [SOLVED] CGALplugin(MeshGenerationFromImage):Error in creating file data/output.vtu
- This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by Hugo.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
21 April 2017 at 02:52 #8971LujainBlocked
Hi guys,
When I tried to use CGALplugin to generate mesh as described in . I tested the runSofa applications/plugins/CGALPlugin/scenes/MeshGenerationFromImage.scn. It can generate mesh but fialed to export. As follows:[INFO] [SofaPython] Added 'F:/SOFA16.12/sofaproject/sofasrc/applications/plugins/image/python' to sys.path [INFO] [SofaPython] Added 'F:/SOFA16.12/sofaproject/sofasrc/applications/plugins/SofaPython/python' to sys.path [INFO] [PluginManager] Loaded plugin: F:/SOFA16.12/sofaproject/sofabuild/bin/Release/SofaPython.dll [INFO] [PluginManager] Loaded plugin: F:/SOFA16.12/sofaproject/sofabuild/bin/Release/CGALPlugin.dll [INFO] [PluginManager] Loaded plugin: F:/SOFA16.12/sofaproject/sofabuild/bin/Release/image.dll [INFO] [PluginManager] Loaded plugin: F:/SOFA16.12/sofaproject/sofabuild/bin/Release/image_gui.dll [INFO] [MeshGenerationFromImage] Link from parent Data @image.transform (unknown) to Data transform(unknown) OK [INFO] [MeshGenerationFromImage] Create domain [INFO] [MeshGenerationFromImage] Create Mesh construct initial points: 12/12 initial point(s) found... Start surface scan...Scanning triangulation for bad facets (sequential) - number of finite facets = 47... Number of bad facets: 14 end scan. [Bad facets:14] Refining Surface... Legend of the following line: (#vertices,#steps,#facets to refine,#tets to refine) (68,55,0,0) (316.1 vertices/s)) Total refining surface time: 0.177s Start volume scan...Scanning triangulation for bad cells (sequential)... 297 cells scanned, done. Number of bad cells: 191 end scan. [Bad tets:191] Refining... Legend of the following line: (#vertices,#steps,#facets to refine,#tets to refine) (4415,5636,0,0) (292.7 vertices/s)))) Total refining volume time: 19.256s Total refining time: 19.458s [INFO] [MeshGenerationFromImage] Initial mesh: number of tetra = 24066 [INFO] [MeshGenerationFromImage] Initial mesh: well-centered tetra = 56.8686% [INFO] [MeshGenerationFromImage] Optimize Mesh [INFO] [MeshGenerationFromImage] Create domain [INFO] [MeshGenerationFromImage] Create Mesh construct initial points: 12/12 initial point(s) found... Start surface scan...Scanning triangulation for bad facets (sequential) - number of finite facets = 47... Number of bad facets: 14 end scan. [Bad facets:14] Refining Surface... Legend of the following line: (#vertices,#steps,#facets to refine,#tets to refine) (68,55,0,0) (309.0 vertices/s)) Total refining surface time: 0.182s Start volume scan...Scanning triangulation for bad cells (sequential)... 297 cells scanned, done. Number of bad cells: 191 end scan. [Bad tets:191] Refining... Legend of the following line: (#vertices,#steps,#facets to refine,#tets to refine) (4415,5636,0,0) (291.1 vertices/s)))) Total refining volume time: 19.365s Total refining time: 19.581s [INFO] [MeshGenerationFromImage] Initial mesh: number of tetra = 24066 [INFO] [MeshGenerationFromImage] Initial mesh: well-centered tetra = 56.8686% [INFO] [MeshGenerationFromImage] Optimize Mesh [INFO] [MeshGenerationFromImage] Generated mesh: 4415 points, 24066 tetrahedra. [INFO] [MeshGenerationFromImage] Generated mesh: 4415 points, 24066 tetrahedra. [WARNING] [VTKExporter] File data/output.vtu NOT FOUND in :F:/SOFA16.12/sofaproject/sofasrc/examples:F:/SOFA16.12/sofaproject/sofasrc/share File data/output.vtu NOT FOUND in :F:/SOFA16.12/sofaproject/sofasrc/examples:F:/SOFA16.12/sofaproject/sofasrc/share Error creating file data/output.vtu
I didn’t solve this problem. It will be very kind of you to give me some advice.
23 April 2017 at 06:10 #8987LujainBlockedHi,
I modified the MeshGenerationFromImage.scn in the line:<VTKExporter name=”exporter” filename=”data/output.vtu” XMLformat=”1″ edges=”0″ tetras=”1″ listening=”true” exportAtBegin=”true” cellsDataFields=”generator.outputCellData” overwrite=”true”/>
by changing the filename=”output”. Now it can export the vtu file and can be shown in Paraview.
23 April 2017 at 13:43 #8988HugoKeymasterThank you for the feedback Lujain !
Good work ! Keep us updated -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.