File indexing completed on 2026-09-14 09:16:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StepVisual_TriangulatedSurfaceSet_HeaderFile_
0015 #define _StepVisual_TriangulatedSurfaceSet_HeaderFile_
0016
0017 #include <Standard.hxx>
0018 #include <StepVisual_TessellatedSurfaceSet.hxx>
0019
0020 #include <Standard_Integer.hxx>
0021 #include <NCollection_Array1.hxx>
0022 #include <NCollection_HArray1.hxx>
0023 #include <NCollection_Array2.hxx>
0024 #include <NCollection_HArray2.hxx>
0025
0026
0027 class StepVisual_TriangulatedSurfaceSet : public StepVisual_TessellatedSurfaceSet
0028 {
0029 public:
0030
0031 Standard_EXPORT StepVisual_TriangulatedSurfaceSet();
0032
0033
0034 Standard_EXPORT void Init(
0035 const occ::handle<TCollection_HAsciiString>& theRepresentationItemName,
0036 const occ::handle<StepVisual_CoordinatesList>& theTessellatedFaceCoordinates,
0037 const int theTessellatedFacePnmax,
0038 const occ::handle<NCollection_HArray2<double>>& theTessellatedFaceNormals,
0039 const occ::handle<NCollection_HArray1<int>>& thePnindex,
0040 const occ::handle<NCollection_HArray2<int>>& theTriangles);
0041
0042
0043 const occ::handle<NCollection_HArray1<int>> Pnindex() const { return myPnindex; }
0044
0045
0046 void SetPnindex(const occ::handle<NCollection_HArray1<int>>& thePnindex)
0047 {
0048 myPnindex = thePnindex;
0049 }
0050
0051
0052 Standard_EXPORT int NbPnindex() const;
0053
0054
0055 Standard_EXPORT int PnindexValue(const int theNum) const;
0056
0057
0058 const occ::handle<NCollection_HArray2<int>> Triangles() const { return myTriangles; }
0059
0060
0061 void SetTriangles(const occ::handle<NCollection_HArray2<int>>& theTriangles)
0062 {
0063 myTriangles = theTriangles;
0064 }
0065
0066
0067 Standard_EXPORT int NbTriangles() const;
0068
0069 DEFINE_STANDARD_RTTIEXT(StepVisual_TriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
0070
0071 private:
0072 occ::handle<NCollection_HArray1<int>> myPnindex;
0073 occ::handle<NCollection_HArray2<int>> myTriangles;
0074 };
0075
0076 #endif