-
pontas replied to the topic How to set collision groups in the forum Programming with SOFA 3 weeks, 6 days ago
Hi @Hugo
Thank you for your reply.
I got it!
However, I can’t have three collision modes(Point, Line, Triangle) in one node at the same time…And when I try to determine the collision,
I get a warning in MinProximityIntersection ↓
Null distance contact between contact detected
This causes the FPS to drop below 1…What is wrong?
Thank you…[Read more]
-
pontas started the topic How to set collision groups in the forum Programming with SOFA 1 month ago
Hello.
I want to set collision groups in a scene file written in C++, like this.
<TriangleModel group=”1″/>However, the constructor is protected and cannot be accessed.
Could you tell me how to set up a collision group in C++?Thank you very much.
pontas
-
pontas replied to the topic Cannot animate Geomagic in the forum Programming with SOFA 2 months, 1 week ago
Hi @Hugo
Thank you for your reply.
I found out that the following line was the cause.
`Particles1->x.setParent(driver1->d_posDevice.getData()); /It syncs with the initial position, but doesn’t work when animate.
I think because it is not updating the geomagic position.
What do I need to write to get the position of the geomagic after animate…[Read more] -
pontas started the topic Cannot animate Geomagic in the forum Programming with SOFA 2 months, 4 weeks ago
Hello everyone.
I7M writing code in C++ to move objects using Geomagic.
I was able to synchronize the object and Geomagic, but the object doesn’t move when I press animate.This is my source code. What is missing…?
Thank you very much.
pontas
`Node *LeftSide(Node *root)
{
const Deriv3 translation1(0, 1, 0);
const Deriv3 rotation1(90,…[Read more] -
pontas replied to the topic Using Geomagic in the forum Programming with SOFA 3 months ago
-
pontas started the topic Using Geomagic in the forum Programming with SOFA 3 months, 2 weeks ago
Hello everyone.
I’m writing a scene file in C++ and want to install Geomagic.
When I include GeomagicDriver.h, I get an error that HD/hd.h is missing.
I certainly didn’t find any such file in my sofa and also couldn’t find it in Git..
What is hd.h and how can I get this?Thank you very much.
-
pontas replied to the topic Running the C++ file in the forum Programming with SOFA 3 months, 2 weeks ago
Hi @Hugo
Sorry for the delay in replying.
For now, all my questions are solved.
Thank you very much!I will be happy to ask questions if I am not sure about anything else.
Thank you in that case.pontas
-
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months ago
Hi @Hugo
I was able to solve this problem by specifying a path.
Thank you very much!I want to debug the sln file, but now I get a lot of errors in it.
Isn’t it correct that the way to run the cpp file(ex chainHybrid.cpp, oneTetrahedron.cpp) is to debug the sln file that was created by executing cmake…?Thank you very much.
pontas
-
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months, 1 week ago
Hi @Hugo
Sorry for the late reply.
I would like to simulate what I described in the first question.
Since Pybind is so slow, I decided to write the scene file in C++ only.I tried to run the tutorial (applications/tutorials), but I get the following error with CMake’s find_package.
By not providing “FindSofaFramework.cmake” in…[Read more] -
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months, 2 weeks ago
Hi @Hugo
Thank you very much!
I could understand how to write it.But I can’t compile it…(Including the tutorial C++ file)
How do everyone compile their own C++ files?Do I have to rewrite Main.cpp of runSofa?
When this problem is solved, I’ll close this topic.
Thank you very much.
pontas
-
pontas replied to the topic Running the C++ file in the forum Programming with SOFA 4 months, 2 weeks ago
That’s a mistake in Main.cpp, sorry.
pontas
-
pontas started the topic Running the C++ file in the forum Programming with SOFA 4 months, 2 weeks ago
Hello.
I tried to write the scene file in C++, but I don’t know how to run it.
I wonder if I should rewrite Main.cop of runSofa, but I don’t know where to change it…I hope you can tell me about it.
Thank you very much.
pontas
-
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months, 3 weeks ago
Hi @Hugo
Thank you for your reply.Thank you!
I’ll see.I’ve never written a scene file in C++ before…
Can I learn how to write it by looking at the tutorials (examples/Tutorials) like the site says?Thank you very much.
pontas
-
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months, 3 weeks ago
Hi @Hugo
Thank you for your reply.
I’m sorry for my bad questioning …
If I write a scene file in C++, can I write code that uses Geomagic to rotate an object…?Sorry to trouble you, but I’d appreciate it if you could help me out.
Thank you very much.
pontas
-
pontas replied to the topic How to write a scene file in the forum Programming with SOFA 4 months, 3 weeks ago
Hi @Hugo
Thank you for your reply.
It says on the site that I can write scene files in C++/python, but am I correct in understanding that I can write scene files in C++/python to represent things like object rotation using Geomagic…?
I’m sorry for the repeated questions, but
I’d appreciate it if you could help me out.Thank you for your…[Read more]