File indexing completed on 2026-09-13 09:16:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_Triangulation2D_HeaderFile
0018 #define _DrawTrSurf_Triangulation2D_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Standard_Integer.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <NCollection_HArray1.hxx>
0025 #include <Draw_Drawable2D.hxx>
0026 #include <Standard_OStream.hxx>
0027 #include <Draw_Interpretor.hxx>
0028 class Poly_Triangulation;
0029 class Draw_Display;
0030 class Draw_Drawable3D;
0031
0032
0033
0034
0035
0036
0037 class DrawTrSurf_Triangulation2D : public Draw_Drawable2D
0038 {
0039
0040 public:
0041 Standard_EXPORT DrawTrSurf_Triangulation2D(const occ::handle<Poly_Triangulation>& T);
0042
0043 Standard_EXPORT occ::handle<Poly_Triangulation> Triangulation() const;
0044
0045 Standard_EXPORT void DrawOn(Draw_Display& dis) const override;
0046
0047
0048 Standard_EXPORT occ::handle<Draw_Drawable3D> Copy() const override;
0049
0050
0051 Standard_EXPORT void Dump(Standard_OStream& S) const override;
0052
0053
0054
0055 Standard_EXPORT void Whatis(Draw_Interpretor& I) const override;
0056
0057 DEFINE_STANDARD_RTTIEXT(DrawTrSurf_Triangulation2D, Draw_Drawable2D)
0058
0059 private:
0060 occ::handle<Poly_Triangulation> myTriangulation;
0061 occ::handle<NCollection_HArray1<int>> myInternals;
0062 occ::handle<NCollection_HArray1<int>> myFree;
0063 };
0064
0065 #endif