1 // Copyright (c) 2021 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13 
14 #ifndef Draw_Params_HeaderFile
15 #define Draw_Params_HeaderFile
16 
17 #include <Standard_Real.hxx>
18 
19 //! DBRep parameters.
20 struct DBRep_Params
21 {
22 public:
23   Standard_Integer NbIsos;         //!< number of iso in U and V
24   Standard_Real    Size;
25   Standard_Integer Discretization; //!< Discretization number of points for curves
26   Standard_Boolean DispTriangles;
27   Standard_Boolean DisplayPolygons;
28   Standard_Real    HLRAngle;       //!< Discretization angle for edges
29   Standard_Real    HAngMin;
30   Standard_Real    HAngMax;
31   Standard_Boolean WithHLR;        //!< True if HLR, False if wireframe
32   Standard_Boolean WithRg1;        //!< True if display Rg1Lines
33   Standard_Boolean WithRgN;        //!< True if display RgNLines
34   Standard_Boolean WithHid;        //!< True if display HiddenLines
35 
DBRep_ParamsDBRep_Params36   DBRep_Params()
37   : NbIsos  (2),
38     Size    (100.0),
39     Discretization (30),
40     DispTriangles(false),
41     DisplayPolygons (false),
42     HLRAngle(35.0 * M_PI / 180.0),
43     HAngMin ( 1.0 * M_PI / 180.0),
44     HAngMax (35.0 * M_PI / 180.0),
45     WithHLR (false),
46     WithRg1 (true),
47     WithRgN (false),
48     WithHid (false)
49   {}
50 };
51 
52 #endif
53