Changeset View
Changeset View
Standalone View
Standalone View
intern/elbeem/intern/ntl_blenderdumper.cpp
| Context not available. | |||||
| #include <zlib.h> | #include <zlib.h> | ||||
| #include "BLI_fileops.h" | |||||
| /****************************************************************************** | /****************************************************************************** | ||||
| Context not available. | |||||
| std::ostringstream bvelfilename; | std::ostringstream bvelfilename; | ||||
| bvelfilename << boutfilename.str(); | bvelfilename << boutfilename.str(); | ||||
| bvelfilename << ".bvel.gz"; | bvelfilename << ".bvel.gz"; | ||||
| gzf = gzopen(bvelfilename.str().c_str(), "wb9"); | gzf = (gzFile) BLI_gzopen(bvelfilename.str().c_str(), "wb9"); | ||||
| if(gzf) { | if(gzf) { | ||||
| int numVerts; | int numVerts; | ||||
| if(sizeof(numVerts)!=4) { errMsg("ntlBlenderDumper::renderScene","Invalid int size"); return 1; } | if(sizeof(numVerts)!=4) { errMsg("ntlBlenderDumper::renderScene","Invalid int size"); return 1; } | ||||
| Context not available. | |||||
| // compress all bobj's | // compress all bobj's | ||||
| boutfilename << ".bobj.gz"; | boutfilename << ".bobj.gz"; | ||||
| gzf = gzopen(boutfilename.str().c_str(), "wb1"); // wb9 is slow for large meshes! | gzf = (gzFile) BLI_gzopen(boutfilename.str().c_str(), "wb1"); // wb9 is slow for large meshes! | ||||
| if (!gzf) { | if (!gzf) { | ||||
| errMsg("ntlBlenderDumper::renderScene","Unable to open output '" + boutfilename.str() + "' "); | errMsg("ntlBlenderDumper::renderScene","Unable to open output '" + boutfilename.str() + "' "); | ||||
| return 1; } | return 1; } | ||||
| Context not available. | |||||