Dump mesh stl binary

Submitted by richti83 on
ckloss

Hi Christian,

thanks for posting this!I'll have a detailed look in the frame of the next release! (scheduled for end of April)

Thanks and Best wishes
Christoph

Tue, 10 Mar 2015 - 09:39 Permalink
ckloss

Hi Christian,

I fixed the bug you reported, and also another one. "Multifile" was not working correctly for binary. Both fixes will be in next week's release
Best wishes
Christoph

Fri, 24 Apr 2015 - 14:12 Permalink

There is a bug when one tries to dump binary stl files. The dump class opens the file in textmode and not in binary mode.
I fixed this with an own openfile method in dump_mesh_stl.cpp which checks for writeBinarySTL_ flag.
if (filewriter) {
if (writeBinarySTL_) {
fp = fopen(filecurrent,"wb");
} else {
fp = fopen(filecurrent,"w");
}

everything else is like in the parent class.

On my case with 1570 triangles the dump binary stl is two times faster than ASCII dump !

Best,
Christian.