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

Returns 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–2020. Open Design Alliance. All rights reserved.