Open CASCADE Technology
7.1.0.beta
|
This class creates and writes STL files from Open CASCADE shapes. An STL file can be written to an existing STL file or to a new one.. More...
#include <StlAPI_Writer.hxx>
Public Member Functions | |
StlAPI_Writer () | |
Creates a writer object with default parameters: ASCIIMode. More... | |
Standard_Boolean & | ASCIIMode () |
Returns the address to the flag defining the mode for writing the file. This address may be used to either read or change the flag. If the mode returns True (default value) the generated file is an ASCII file. If the mode returns False, the generated file is a binary file. More... | |
StlAPI_ErrorStatus | Write (const TopoDS_Shape &aShape, const Standard_CString aFileName) |
Converts a given shape to STL format and writes it to file with a given filename. More... | |
This class creates and writes STL files from Open CASCADE shapes. An STL file can be written to an existing STL file or to a new one..
StlAPI_Writer::StlAPI_Writer | ( | ) |
Creates a writer object with default parameters: ASCIIMode.
Standard_Boolean& StlAPI_Writer::ASCIIMode | ( | ) |
Returns the address to the flag defining the mode for writing the file. This address may be used to either read or change the flag. If the mode returns True (default value) the generated file is an ASCII file. If the mode returns False, the generated file is a binary file.
StlAPI_ErrorStatus StlAPI_Writer::Write | ( | const TopoDS_Shape & | aShape, |
const Standard_CString | aFileName | ||
) |
Converts a given shape to STL format and writes it to file with a given filename.