fangq / iso2mesh

Iso2Mesh - a 3D surface and volumetric mesh generator for MATLAB/Octave
http://iso2mesh.sf.net
Other
183 stars 73 forks source link

saveinr() not working for single (float) volumes #68

Closed ithron closed 2 years ago

ithron commented 2 years ago

When calling saveinr(volume, frame) with a single precision volume (class(volume) == 'single') the function raises the error volume format not supported.

In line 30 of the source code, the datatype of the volume is compared against 'float'. However, neither Octave nor Matlab will return that values for class(volume) since the single precision floating point data types are called single not float.