fangq / iso2mesh

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

mcpath - not recognized as an internal or external command error #21

Closed ryanmckindles closed 6 years ago

ryanmckindles commented 6 years ago

A change in the mcpath file (line 30) from the previous version seems to have broken the ability to find files in the bin folder, typically executables.

Operating System: Windows 10 MATLAB: '9.2.0.538062 (R2017a)' Error: '"cgalsurf.exe"' is not recognized as an internal or external command, operable program or batch file. Current Code: mcpath (line 30) - if(exist(tempname,'file')) Edited Code: mcpath (line 30) - if(exist([tempname getexeext],'file')) <-- looks for specific file (recommended) Alternative Code: mcpath (line 30) - if(exist([fileparts(which(mfilename)) filesep 'bin'],'file')) <-- looks for the bin folder, this is how the previous version code worked.

fangq commented 6 years ago

thanks for reporting this. This bug is now fixed in e67caf7. I updated the released packages to v1.9.0-1.

https://github.com/fangq/iso2mesh/releases/tag/v1.9.0-1