Commit | Line | Data |
---|---|---|
7fd59977 | 1 | #include <StlAPI.ixx> |
2 | #include <StlAPI_Writer.hxx> | |
3 | #include <StlAPI_Reader.hxx> | |
4 | ||
5 | void StlAPI::Write(const TopoDS_Shape& aShape, | |
6 | const Standard_CString aFile, | |
7 | const Standard_Boolean aAsciiMode) | |
8 | { | |
9 | StlAPI_Writer writer; | |
10 | writer.ASCIIMode() = aAsciiMode; | |
11 | writer.Write (aShape, aFile); | |
12 | } | |
13 | ||
14 | ||
15 | void StlAPI::Read(TopoDS_Shape& aShape,const Standard_CString aFile) | |
16 | { | |
17 | StlAPI_Reader reader; | |
18 | reader.Read (aShape, aFile); | |
19 | } |