Skip to content

importTETGEN fails with "import unsuccessful" warning during GIBBON demo, leading to crash in meshView #198

@lucky653

Description

@lucky653

Hi, I am currently testing GIBBON, but I am encountering an error during the testGibbon routine, specifically in DEMO_febio_0047_cylinder_embedded_probe_01.m.

Although I have verified that the tetgen executable is working normally on my system, GIBBON fails to import the generated node file. This leads to an empty mesh variable, which causes a cascading error when meshView attempts to plot the result (Index exceeds array elements in interp1).

Error Log:
D:\downloadapp\MATLAB2022\GIBBON-master\data\temp\temp.1.node import unsuccessful
Location: importTETGEN (line 29)
Location: runTetGen (line 354)
Location: DEMO_febio_0047_cylinder_embedded_probe_01 (line 211)
Location: run (line 91)
--- Done --- 10-Jan-2026 11:22:34
Index exceeds the number of array elements. The index must not exceed 0.
Error in interp1 (line 153)
extrapMask = Xq < X(1) | Xq > X(end);
Error in resampleColormap (line 43)
cMap_i(:,q) = interp1(ind, cMap(:,q), ind_i, 'linear');
Error in icolorbar (line 74)
cn = resampleColormap(c, numel(hc.Ticks));
Error in meshView (line 129)
icolorbar;
Error in DEMO_febio_0047_cylinder_embedded_probe_01 (line 216)
meshView(meshOutput);
Error in run (line 91)
evalin('caller', strcat(script, ';'));

OS: Windows (Path: D:\downloadapp\MATLAB2022\GIBBON-master...)
TetGen status: Tested independently and appears to function correctly.

I would be grateful if you could help me.
Thank you in advance
Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions