Page 1 of 1

Difference of behavior in cutMesh

Posted: Fri Aug 31, 2018 7:34 pm
by francois
Hello,

I noticed a weird difference of behavior between the stable 4.6.0 and a recent 4.6.1 build that Denis sent me (Ubuntu16).

Consider the following code:

Code: Select all

mesh = aims.read("/home/ftadel/test_cutmesh/test_mesh.gii")
testcut = aims.AimsSurfaceTriangle()
border = aims.AimsTimeSurface(2)
aims.SurfaceManip.cutMesh(mesh, [0.5225450036568081, 0.6545940900566004, -0.5463087921828437, -68.96895971837064], testcut, border)
print testcut.vertex().size()
And the example file:
https://www.dropbox.com/s/gqrevq0a2e8fi ... h.gii?dl=0

With 4.6.0, I get a correct mesh (755 vertices).
With 4.6.1, I get an empty mesh (0 vertices).

Is there anything that changed in this function or is this a bug?
Is there a way to get the previous output with the current function?

Thanks
François

Re: Difference of behavior in cutMesh

Posted: Wed Sep 05, 2018 1:52 pm
by francois
Any update on this topic?
Should I start looking for another solution?

Re: Difference of behavior in cutMesh

Posted: Thu Sep 06, 2018 4:42 pm
by riviere
Hi François,
I get the same behavior so I can reproduce the problem. It's obviously a bug, probably in the way the function is called since the algorithm has not changed and is still working inside anatomist. I'll investigate.
Denis

Re: Difference of behavior in cutMesh

Posted: Fri Sep 07, 2018 2:37 pm
by francois
Thanks

Btw, I am "subscribed" to the topic but I don't receive the new posts by email.
I checked the preferences of my account and it all seems to indicate that I should receive notifications by email.
So I just keep the page open and refresh it from time to time... Is there anything I'm not doing correctly?

Re: Difference of behavior in cutMesh

Posted: Fri Sep 07, 2018 2:57 pm
by riviere
I have fixed the problem but you will need a new compiled package. I'll do that next week.

Otherwise the forum notification seems to be broken, I also don't receive any email when new posts or answers are in the forum. I don't know why, and I'm afraid I really have no time to investigate right now.

Denis

Re: Difference of behavior in cutMesh

Posted: Fri Sep 07, 2018 3:43 pm
by francois
Ok thanks!
I'll wait for your update instead of trying to recode cutMesh on my end then.
(I will need both the Ubuntu16 and Mandriva2008 versions... sorry for the added work)