File indexing completed on 2025-01-18 10:05:17
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 <TColStd_HArray1OfInteger.hxx>
0021 #include <TColStd_HArray2OfInteger.hxx>
0022
0023
0024 class StepVisual_TriangulatedSurfaceSet : public StepVisual_TessellatedSurfaceSet
0025 {
0026 public:
0027
0028 Standard_EXPORT StepVisual_TriangulatedSurfaceSet();
0029
0030
0031 Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theRepresentationItemName,
0032 const Handle(StepVisual_CoordinatesList)& theTessellatedFaceCoordinates,
0033 const Standard_Integer theTessellatedFacePnmax,
0034 const Handle(TColStd_HArray2OfReal)& theTessellatedFaceNormals,
0035 const Handle(TColStd_HArray1OfInteger)& thePnindex,
0036 const Handle(TColStd_HArray2OfInteger)& theTriangles);
0037
0038
0039 const Handle(TColStd_HArray1OfInteger) Pnindex() const { return myPnindex; }
0040
0041
0042 void SetPnindex(const Handle(TColStd_HArray1OfInteger)& thePnindex) { myPnindex = thePnindex; }
0043
0044
0045 Standard_EXPORT Standard_Integer NbPnindex() const;
0046
0047
0048 Standard_EXPORT Standard_Integer PnindexValue(const Standard_Integer theNum) const;
0049
0050
0051 const Handle(TColStd_HArray2OfInteger) Triangles() const { return myTriangles; }
0052
0053
0054 void SetTriangles(const Handle(TColStd_HArray2OfInteger)& theTriangles)
0055 {
0056 myTriangles = theTriangles;
0057 }
0058
0059
0060 Standard_EXPORT Standard_Integer NbTriangles() const;
0061
0062 DEFINE_STANDARD_RTTIEXT(StepVisual_TriangulatedSurfaceSet, StepVisual_TessellatedSurfaceSet)
0063
0064 private:
0065
0066 Handle(TColStd_HArray1OfInteger) myPnindex;
0067 Handle(TColStd_HArray2OfInteger) myTriangles;
0068 };
0069
0070 #endif