vistalab / vistasoft

VISTASOFT is the main software repository of the VISTA lab at Stanford University.
http://vistalab.stanford.edu
146 stars 141 forks source link

"No triangle" error message during meshBuildFromClass command #144

Open jdaviesthompson opened 8 years ago

jdaviesthompson commented 8 years ago

Dear Vistasoft users/experts,

When running the below commands: fName = 'C:\fMRI\mrVista\SampleSet\Structural\Left\Left.Class'; msh = meshBuildFromClass(fName)

I get the below error message:

"Error using build_mesh No triangle Error in meshBuildFromClass (line 79) msh = build_mesh(voxels,mmPerVox); % Vertices (class) are in mm space"

I have tried both with my own files, and on the example pRF dataset from the website, and get the same error message for both.

Any ideas on what I have done wrong / how to get around this issue? Any help would be hugely appreciated.

All the best, Jodie

Peter1de1Best commented 8 years ago

Dear people,

I am having exactly the same problem. I have tried to run the code from the command window and from the GUI: same issue. I tried doing it with and without added grey layers, that didn't work.

I checked the code just before the part where the error occurs, and it says: "build_mesh is a dll in VISTASRC. It converts classification data into vertices and triangles. It could be replaced by the Matlab isosurface routine."

The *.dll file of build_mesh cannot be found back in VISTASRC, but it is in Parentdirectory\mrMesh\mrMesh-master\buildMeshSource (where Parentdirectory is the directory I put mrMesh in. Could this be the issue?

By using dependency walker on build_mesh.dll, I found that msvcp70.dll, msvcr70.dll and msvcr70d.dll were not missing. (these are files that are known for causing problems if they are missing). However, the dependency walker shows other problems: image [hope this works :-) ]. Since I do not know where to find those files, and since I do not want to accidentily destroy my computer, and since I read somewhere Dependency Walker is not always reliable, I did not follow up on this knowledge. Do you think these files may be the problem?

How can build_mesh result in the error 'no triangle'? According to meshBuildFromClass the function build_mesh 'converts classification data into vertices and triangles'. Then why the 'no triangle' error? Does anyone have an idea what the origin of the error may be?

Yours sincerely,

Peter

JWinawer commented 7 years ago

@jdaviesthompson @Peter1de1Best

Are you still failing to build meshes?

Meantime, I created a new test function for building meshes: test_mrvBuildMesh()

If building meshes is still a problem, can you try the test function?

This test function can be run on its own, i.e., test_mrvBuildMesh() or as part of mrvTest, as in:

logfile = mrvTest();
edit(logfile);
charamilk commented 5 years ago

Hi,

I still encounter this issue. And when I was trying: test_mrvBuildMesh(). It took a very long time after a night I have to terminate its running.

Is there anyone having the same issue? How can we fix this issue?

Regards, Rui.

maalbe commented 4 years ago

Hey, I have the same problem, have you found any solution? Thanks in advance, M

charamilk commented 4 years ago

Hi

Sorry. I didn't figure it out. I am not using it now.

Best, R

On Mon., 2 Mar. 2020, 4:47 am maalbe, notifications@github.com wrote:

Hey, I have the same problem, have you found any solution? Thanks in advance, M

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vistalab/vistasoft/issues/144?email_source=notifications&email_token=AFACEBBFJIQ5CO2TQJXV66DRFKNSZA5CNFSM4BUESSZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNFXUA#issuecomment-593124304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFACEBB2LHGC3E3UCOJTRQLRFKNSZANCNFSM4BUESSZA .

jdaviesthompson commented 4 years ago

Ditto. I didn’t figure it out so I stopped using it!

On 1 Mar 2020, at 23:59, charamilk notifications@github.com wrote:

Hi

Sorry. I didn't figure it out. I am not using it now.

Best, R

On Mon., 2 Mar. 2020, 4:47 am maalbe, notifications@github.com wrote:

Hey, I have the same problem, have you found any solution? Thanks in advance, M

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vistalab/vistasoft/issues/144?email_source=notifications&email_token=AFACEBBFJIQ5CO2TQJXV66DRFKNSZA5CNFSM4BUESSZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNFXUA#issuecomment-593124304, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFACEBB2LHGC3E3UCOJTRQLRFKNSZANCNFSM4BUESSZA .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

JWinawer commented 4 years ago

Dear All,

My guess is that the problem is with the mex function build_mesh. I have not tried much to debug the mesh build tools in mrVista. In fact, my lab has stopped using the mesh build tools entirely. Instead, we just import meshes from FreeSurfer. See https://github.com/vistalab/vistasoft/blob/master/tutorials/mesh/t_meshFromFreesurfer.m

This should not require meshbuild mex functions.

Good luck. Jon

On Mon, Mar 2, 2020 at 3:19 AM jdaviesthompson notifications@github.com wrote:

Ditto. I didn’t figure it out so I stopped using it!

On 1 Mar 2020, at 23:59, charamilk notifications@github.com wrote:

Hi

Sorry. I didn't figure it out. I am not using it now.

Best, R

On Mon., 2 Mar. 2020, 4:47 am maalbe, notifications@github.com wrote:

Hey, I have the same problem, have you found any solution? Thanks in advance, M

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/vistalab/vistasoft/issues/144?email_source=notifications&email_token=AFACEBBFJIQ5CO2TQJXV66DRFKNSZA5CNFSM4BUESSZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENNFXUA#issuecomment-593124304 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AFACEBB2LHGC3E3UCOJTRQLRFKNSZANCNFSM4BUESSZA

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_vistalab_vistasoft_issues_144-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAAQFPXX7HTMTJQS2A2PPVHDRFNT2RA5CNFSM4BUESSZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENOLAUA-23issuecomment-2D593277008&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=W4u2U_DhoNoJOD0UdsYQiqH56Bg3zFfOtNa0RCuuEIs&m=yUMlcqBWELVEYI5CW9Gw4upxDKnznG6nuO5NM8ET9V8&s=vRLlfU8lQSOYWdjcTdxCdBZ1c-I-G4UqOjZmsRnPL44&e=, or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAQFPXQJ52JGUEGDLQBTCKTRFNT2RANCNFSM4BUESSZA&d=DwMFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=W4u2U_DhoNoJOD0UdsYQiqH56Bg3zFfOtNa0RCuuEIs&m=yUMlcqBWELVEYI5CW9Gw4upxDKnznG6nuO5NM8ET9V8&s=C1gvSHSZlcWrb9HdsOaYQBT813cxExn0Jx8UNx6Umv4&e= .

-- Jonathan Winawer Associate Professor of Psychology and Neural Science

New York University 6 Washington Place New York, NY, 10003 (212) 998-7922 (phone) (212) 995-4018 (fax) jonathan.winawer@nyu.edu http://psych.nyu.edu/winawer/