Difference of behavior in cutMesh

AIMS library and commands usage

Moderators: denghien, riviere

Post Reply
francois
Posts: 63
Joined: Tue Jul 25, 2017 9:37 am

Difference of behavior in cutMesh

Post 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
francois
Posts: 63
Joined: Tue Jul 25, 2017 9:37 am

Re: Difference of behavior in cutMesh

Post by francois »

Any update on this topic?
Should I start looking for another solution?
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Difference of behavior in cutMesh

Post 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
francois
Posts: 63
Joined: Tue Jul 25, 2017 9:37 am

Re: Difference of behavior in cutMesh

Post 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?
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Difference of behavior in cutMesh

Post 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
francois
Posts: 63
Joined: Tue Jul 25, 2017 9:37 am

Re: Difference of behavior in cutMesh

Post 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)
Post Reply