- This topic has 4 replies, 3 voices, and was last updated 3 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SofaPython3 › Programming with SofaPython3 › [SOLVED] Sofa as physical engine problem
Tagged: Programming with SOFA, SOFA_2012, Windows_10
Hello SOFAs,
when i use the example of Sofa open source the module of as a separate physical engine, when i run the projet SofaPhysicsAPI (sofa/applications/projects/SofaPhysicsAPI), the SofaPhysicsOutputMesh class has no vertex and triangle face data, but the .scn project file can load success, and there is a error information of [ERROR] [ObjectFactory::addAlias()] Target class for alias ‘OglModel’ not found: VisualModel.
Does the error has effect on the project?
hey @zhangshuyong
If you are using the source code, could you try changing in SofaPhysicsSimulation.cpp line 287: AddAlias
by addAlias
?
Let me poke anyway the SofaPhysicsAPI expert @epernod on this 😉
Best wishes,
Hugo
Hi,
I’m sorry @hugo, I’m not using this plugin. Maybe it has been broken by recent changes in OglModel. You should check if it is compiled by default on SOFA CI.
Best regards,
thks.
Hi,
@hugo and @epernod, the error of [ObjectFactory::addAlias()] is not disappear. and the other problem is, in the SofaPhysicsAPI example, when i use the source code of the main.cpp to load a liver.scn scene data, and render by the glut, the SofaphysicsOutputMesh instance object mesh is not null, but the points and normals of the mesh is null. Do you help me to find, where and which procedure during the api load or using has error? Thanks.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.