Forum Replies Created
-
AuthorPosts
-
sarramiBlocked
I think one of the researchers of Sofa like Mr. Talbot or Mr. Forest or Mr. Allard answer to this question. Cutting of a 3d mesh is needed in many medical projects and it is obvious that a framework like Sofa should have it.
sarramiBlockedDear Talbot
Thank you for your points.
The scene that you sent wouldnt load anything unless I remove “TTiangleModel”!
I changed this:
<TriangleSetTopologyContainer name=”Container2″ triangles=”@subsetROI.trianglesInROI” />
to this:
<TriangleSetTopologyContainer name=”Container2″ position=”@../dofs.position” triangles=”@subsetROI.trianglesInROI” />I have tested and attached the my own scene with corrections that you mention but still the number of elements which is subjected to collision model of child node wouldn’t change when necessary. (in contrast to BOXROI visualization which is dynamic and adaptable). More than that, trying to remove an element would result in point index disorder. (look at the attached pictures.)
I want to apply an independent and adaptable component (forcefield or collision) on the elements contained in a ROI.pretty much like what VaccumeSphereForcefield does : applying a forcefield on “recent” elements contained inside a “movable” space.
Another method that I have tried, which is very close to my idea, is to completely detach the mesh inside ROI and pass it to child node like the example file “SubsetTopolgy” in the source. But it looks that SubsetTopolgy relies only on rest position of elements (i.e. works onetime).
Would you please share a simple example showing the performance of “do-update”?
attached files:
https://onedrive.live.com/redir?resid=F8B3C92B29C4B9E4!579&authkey=!AOv-uSElppF1NnA&ithint=file%2czipThanks.
sarramiBlockedMr Talbot
Thanks for the reply.
In the attached example, which is present in SOFA source, I have activated the “do update” option in the BoxROI component in the child node which leads to an error.
I assume that if this component was working properly, the number of child elements in mesh (and colors of them) would change while playing with the sphere.Example attached in this link:
https://onedrive.live.com/redir?resid=F8B3C92B29C4B9E4!578&authkey=!AIjg2fKNc57x5Ck&ithint=file%2czipsarramiBlockedHello,
I faced this problem many times. If you change the gravity in the XML code there would be no error! In the Modeler sometimes when we want to change something in the Object Nodes we may face this error. I hope the developers fix this problem.
Sarrami
sarramiBlockedHello Forest,
Thank you for your very useful answer.
Please inform me if I want to model a Forceps (for example) which grasps the tissues, can I do it well with the present components of Sofa or I need to write a plugin to add some properties?
Regards,
SarramisarramiBlockedHi Marc & Hugo,
Thanks for the reply. The problem of empty scene solved by adding a node with OglModel. Now the main problem is getting error while trying to remove an element from the mesh by “shift” + “right click”. It looks like all dynamic mesh capabilities get eliminated while using CUDA or OpenCL. Is that so?
My new scene file is attached.
Thanks.https://www.dropbox.com/s/v34ukfh3xfa0wz4/CudaExample1.zip?dl=0
sarramiBlockedHi Hugo,
The scene’s download address is below. This model is in fact a dynamic mesh one which uses tera2triangle mapping and fails to load in viewer. If I delete that mapping I can load the viewer without error. but the problem of empty scene still remains.
hint: It’s beneficial to run modeler as superuser.https://www.dropbox.com/s/lc4e8ds1i1z49z1/cudasample.zip?dl=0
sarramiBlockedHello again
I exported the shader from a Blender model which has just one lamp, but when I imported all of the shader parameters like floats & etc. into the Sofa model it didn’t make any change.
I will be thankful if somebody helps me.
thanks
SarramisarramiBlockedHi Clement
Thanks for your useful answer.sarramiBlockedHi Clement
Thanks for your answer
As you mentioned I used GLSL to export shaders and I had some problems with the codes.
I will be thankful if you instruct me which graphical software exports shaders with easier codes for Sofa.
Thank you -
AuthorPosts