File indexing completed on 2026-10-06 09:21:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _RWStl_HeaderFile
0017 #define _RWStl_HeaderFile
0018
0019 #include <OSD_Path.hxx>
0020 #include <Poly_Triangulation.hxx>
0021 #include <Standard_Macro.hxx>
0022 #include <Message_ProgressScope.hxx>
0023 #include <NCollection_Sequence.hxx>
0024
0025
0026 class RWStl
0027 {
0028 public:
0029
0030
0031
0032 Standard_EXPORT static bool WriteBinary(
0033 const occ::handle<Poly_Triangulation>& theMesh,
0034 const OSD_Path& thePath,
0035 const Message_ProgressRange& theProgress = Message_ProgressRange());
0036
0037
0038 Standard_EXPORT static bool WriteBinary(
0039 const occ::handle<Poly_Triangulation>& theMesh,
0040 Standard_OStream& theStream,
0041 const Message_ProgressRange& theProgress = Message_ProgressRange());
0042
0043
0044
0045
0046 Standard_EXPORT static bool WriteAscii(
0047 const occ::handle<Poly_Triangulation>& theMesh,
0048 const OSD_Path& thePath,
0049 const Message_ProgressRange& theProgress = Message_ProgressRange());
0050
0051
0052 Standard_EXPORT static bool WriteAscii(
0053 const occ::handle<Poly_Triangulation>& theMesh,
0054 Standard_OStream& theStream,
0055 const Message_ProgressRange& theProgress = Message_ProgressRange());
0056
0057
0058
0059 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadFile(
0060 const OSD_Path& theFile,
0061 const Message_ProgressRange& theProgress = Message_ProgressRange());
0062
0063
0064
0065 static occ::handle<Poly_Triangulation> ReadFile(
0066 const char* const theFile,
0067 const Message_ProgressRange& theProgress = Message_ProgressRange())
0068 {
0069 return ReadFile(theFile, M_PI / 2.0, theProgress);
0070 }
0071
0072
0073
0074
0075
0076
0077
0078 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadFile(
0079 const char* const theFile,
0080 const double theMergeAngle,
0081 const Message_ProgressRange& theProgress = Message_ProgressRange());
0082
0083
0084
0085
0086
0087
0088
0089 Standard_EXPORT static void ReadFile(
0090 const char* const theFile,
0091 const double theMergeAngle,
0092 NCollection_Sequence<occ::handle<Poly_Triangulation>>& theTriangList,
0093 const Message_ProgressRange& theProgress = Message_ProgressRange());
0094
0095
0096
0097 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadBinary(
0098 const OSD_Path& thePath,
0099 const Message_ProgressRange& theProgress = Message_ProgressRange());
0100
0101
0102
0103 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadAscii(
0104 const OSD_Path& thePath,
0105 const Message_ProgressRange& theProgress = Message_ProgressRange());
0106
0107
0108
0109 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadBinaryStream(
0110 Standard_IStream& theStream,
0111 const double theMergeAngle = M_PI / 2.0,
0112 const Message_ProgressRange& theProgress = Message_ProgressRange());
0113
0114
0115
0116 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadAsciiStream(
0117 Standard_IStream& theStream,
0118 const double theMergeAngle = M_PI / 2.0,
0119 const Message_ProgressRange& theProgress = Message_ProgressRange());
0120
0121
0122
0123 Standard_EXPORT static occ::handle<Poly_Triangulation> ReadStream(
0124 Standard_IStream& theStream,
0125 const double theMergeAngle = M_PI / 2.0,
0126 const Message_ProgressRange& theProgress = Message_ProgressRange());
0127 };
0128
0129 #endif