1 // Created on : Thu Mar 24 18:30:11 2022
3 // Generator: Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
4 // Copyright (c) Open CASCADE 2022
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <StepVisual_CubicBezierTriangulatedFace.hxx>
19 IMPLEMENT_STANDARD_RTTIEXT(StepVisual_CubicBezierTriangulatedFace, StepVisual_TessellatedFace)
21 //=======================================================================
22 //function : StepVisual_CubicBezierTriangulatedFace
24 //=======================================================================
26 StepVisual_CubicBezierTriangulatedFace::StepVisual_CubicBezierTriangulatedFace ()
30 //=======================================================================
33 //=======================================================================
35 void StepVisual_CubicBezierTriangulatedFace::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
36 const Handle(StepVisual_CoordinatesList)& theTessellatedFace_Coordinates,
37 const Standard_Integer theTessellatedFace_Pnmax,
38 const Handle(TColStd_HArray2OfReal)& theTessellatedFace_Normals,
39 const Standard_Boolean theHasTessellatedFace_GeometricLink,
40 const StepVisual_FaceOrSurface& theTessellatedFace_GeometricLink,
41 const Handle(TColStd_HArray2OfInteger)& theCtriangles)
43 StepVisual_TessellatedFace::Init(theRepresentationItem_Name,
44 theTessellatedFace_Coordinates,
45 theTessellatedFace_Pnmax,
46 theTessellatedFace_Normals,
47 theHasTessellatedFace_GeometricLink,
48 theTessellatedFace_GeometricLink);
50 myCtriangles = theCtriangles;
53 //=======================================================================
54 //function : Ctriangles
56 //=======================================================================
58 Handle(TColStd_HArray2OfInteger) StepVisual_CubicBezierTriangulatedFace::Ctriangles () const
63 //=======================================================================
64 //function : SetCtriangles
66 //=======================================================================
68 void StepVisual_CubicBezierTriangulatedFace::SetCtriangles(const Handle(TColStd_HArray2OfInteger)& theCtriangles)
70 myCtriangles = theCtriangles;
73 Standard_Integer StepVisual_CubicBezierTriangulatedFace::NbCtriangles() const
75 if (myCtriangles.IsNull())
79 return myCtriangles->ColLength();