API Reference > OdDb Classes > OdDb3dSolid Class > OdDb3dSolid Methods > stlOut Method > OdDb3dSolid::stlOut Method (OdChar*, bool, double)
OdDb3dSolid::stlOut Method (OdChar*, bool, double)
Syntax
C++
virtual OdResult stlOut(const OdChar* filename, bool asciiFormat, double maxSurfaceDeviation = 0.0) const;
Parameters 
Description 
const OdChar* filename 
[in] Full file name.  
bool asciiFormat 
[in] Flag determining the format of the output file (if true, the file has ASCII text format, or in other case the file has binary format).
 

eOk if successful or an appropriate error code in other case.

Writes out a Stereo Lithography (STL) representation of the solid to a file with the specified name. 

 

If the specified file already exists, it will be overwritten. 

If at least one of the obtained triangle points has at least one coordinate from the (-inf, 0] interval, then all points will be shifted to an octant, where all coordinates are positive numbers from the [0.01, +inf) interval.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.