Forum Replies Created
-
AuthorPosts
-
HugoKeymaster
Read our latest news about it!
SOFA being integrated
in unity 3d
HugoKeymasterI therefore set this topic as solved.
Do not hesitate to post further question later on, mbarrow.Cheers,
Hugo
HugoKeymasterOk, cool!! I note this topic as solved.
Keep us updated about your progress!Cheers
Hugo
18 April 2017 at 14:16 in reply to: [SOLVED] How to read XML file in SOFA? Where to read it in c++ code? #8933HugoKeymasterHi Sen,
At my best knowledge there is no direct way (like a script) generating C++ code from XML file. You can browse the existing topics on how to write a cpp scene on the forum, or read the documentation.
Cheers,
Hugo
HugoKeymasterHey Lujain,
Could you share with us a preview of your volumetric mesh ? a clipping would help to see in the volume of your object.
Hugo
HugoKeymasterHi Binesh,
Did you have a look at TetrahedralFEMForceField? I think this version of the tetra-FEM supports topological changes. Let me know if this helps,
Hugo
HugoKeymasterHi Lujain,
If I understand well your process, you are generating a surface mesh from segment ted data. It means your mesh only includes points, edges et and triangles (surface). Right ?
To achieve a simulation like liver.scn or TutorialForceFieldLiverFEM.scn, you need a volumetric mesh, i.e. mesh made up of volumetric elements like tetra or hexahedra. The question coming nest is : how to generate one volumetric mesh from a surface mesh ?
This has already been discussed here : https://www.sofa-framework.org/community/forum/topic/obj-files-msh-files/
Best,
Hugo
HugoKeymasterAhah no yet!
Today is a holiday in Europe : Easter Monday! You should soon get a reply. For quicker tailored support, you can subscribe to a charged support from the SOFA consortium.Cheers,
Hugo
HugoKeymasterHi sayakbiswas,
Welcome into the SOFA community!!
Indeed, if I’m remembering well, the “tags” attribute supports multiple values, you can write both separated from a space:<Node name="triangle-surface"> ... <TriangleModel bothSide="0" contactFriction="500.0" contactStiffness="500.0" group="1" moving="1" selfCollision="0" simulated="1" tags="HapticSurfaceVein SecondTag" /> </Node>
Let us know how it works.
Cheers,Hugo
HugoKeymasterHi Mahdi,
Welcome into the SOFA community!
This is a very interesting simulation topic. Unfortunately, I am no expert in advanced graphics and visualisation in SOFA. I should find someone in the community able to help you. Cheers,Hugo
HugoKeymasterwelcome to the SOFA community by the way!
HugoKeymasterHi Boland,
Did you configure twice?
Could you provide us the complete output of the CMake error please?HugoKeymasterCool Binesh!
Nice to hear! Let us know when you’ll upgrade so that we can help.
CheersHugo
HugoKeymasterMaybe try to set the path to the SofaBaseTopology lib.
But as I mentioned, with an old version of SOFA, it’s pretty hard to bring remote support.HugoKeymasterYeah, your plugin needs to have a clear dependency to the module in SOFA where the TopologySubsetDataImpl is implemented. Without it, it gives a symbol error as you have.
To solve it, you must look for the cmake project that includes the class TopologySubsetDataImpl, and add it in AddLinkerDependencies() in the CMakeLists of your plugin.
Sorry about these issues. Upgrade looks like a proper solution.
HugoKeymasterHi mbarrrow,
No worries. The TLED would not be my start in SOFA. You could rather have a look into the plugin SofaCUDA. There, you will find the FEM codes in their GPU version. Best,
Hugo
HugoKeymasterOuch, an old version of SOFA will make the debugging pretty complicated :s
Have you try this:
include(${SOFA_CMAKE_DIR}/preProject.cmake) set(HEADER_FILES FreezeSpring.h initFreezeSpring.h FreezeSpring.inl ) set(SOURCE_FILES FreezeSpring.cpp initFreezeSpring.cpp ) set(README_FILES FreezeSpring.txt ) add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${MOC_FILES} ${SOURCE_FILES} ${README_FILES}) AddCompilerDefinitions("SOFA_BUILD_FREEZESPRING") AddLinkerDependencies(SofaComponentMain) AddLinkerDependencies(SofaBaseTopology) include(${SOFA_CMAKE_DIR}/postProject.cmake)
But the only advice I could give is to update your SOFA version to a stable release (v16.12). I can guess that it might take you some time and effort, but I want you to know that we stay at your disposal to help in this stage of your work.
Let us know about your next move.Hugo
HugoKeymasterHi Binesh,
Which version of SOFA are you using btw ?
With the current structure of SOFA, the CMakeList.txt of your plugin FreezeSpring should look pretty close to:cmake_minimum_required(VERSION 3.1) project(FreezeSpring) set(HEADER_FILES FreezeSpring.h initFreezeSpring.h FreezeSpring.inl ) set(SOURCE_FILES FreezeSpring.cpp initFreezeSpring.cpp ) find_package(SofaBase REQUIRED) add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ) set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-DSOFA_BUILD_FREEZESPRING") target_link_libraries(${PROJECT_NAME} SofaBaseTopology) include_directories("${CMAKE_CURRENT_SOURCE_DIR}/..") install(TARGETS ${PROJECT_NAME} COMPONENT FreezeSpring_libraries EXPORT FreezeSpringTargets RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
Agreed Erik?
Hope this helps,Hugo
HugoKeymasterHi mbarrow,
In SOFA, the TLED approach was developed during a PhD thesis that ended in 2009. Since then, the other GPU-based simulation were implemented using the SofaCUDA plugin. These implementations do not only rely on explicit schemes. Most of them were done using implicit or semi-implicit schemes.
Cheers,
Hugo
HugoKeymasterDear SOFA community,
If no one manifests him/herself against this support drop, it could be voted in the upcoming weeks. Thank you all for your feedback.
Cheers,
Hugo
9 April 2017 at 21:53 in reply to: [SOLVED] How to look at the example of the source code(c++) ? #8896HugoKeymasterHi Sen,
You are using SOFA RC1 version, which is obsolete for several years and not supported anymore. Please download the latest v16.12 release.
Best,
Hugo
HugoKeymasterDear mbarrow,
I recompiled the SofaCUDA plugin, there’s indeed some scene not working. About the CudaTetrahedronTLEDForceField.scn, it seems that there is some missing files.
I asked about it, and some devs told me that is a pretty old (2009!) piece of code. Would you feel confortable-enough with the CUDA API to look at the implementation?
Best,
Hugo
7 April 2017 at 11:35 in reply to: [SOLVED] Rigid flexible body collision/deformation (anatomy modeling) #8891HugoKeymasterHey octotod,
Any good news on your side ?
Cheers,Hugo
HugoKeymasterHi Binesh,
Sorry for the delay, we’re quite busy right now.
It should be written this way:find_package(SofaBase REQUIRED) ... set(LINKER_DEPENDENCIES ${LINKER_DEPENDENCIES} SofaBaseTopology) ... target_link_libraries(${PROJECT_NAME} ${LINKER_DEPENDENCIES})
Let me know if it helps.
Hugo
6 April 2017 at 16:14 in reply to: [SOLVED] How to look at the example of the source code(c++) ? #8863HugoKeymasterHi Sen,
In SOFA, the XML file is read and parsed by runSofa (see in applications/projects/runSofa/Main.cpp line 392), which then instantiates the C++ component.
To write you own scene in C++, please refer to:
- this post
- and the associated documentation
Cheers,
Hugo
-
AuthorPosts