Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDb3dSolid::stlOut Method (const OdChar*, bool, double)
Syntax
C++
virtual OdResult stlOut(const OdChar* filename, bool asciiFormat, double maxSurfaceDeviation = 0.0) const;

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

 

Parameters
Description
filename
[in] Full file name.
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.

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-2022. Open Design Alliance All rights reserved.