1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
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.
18 #include <HLRBRep_ShapeBounds.hxx>
19 #include <HLRTopoBRep_OutLiner.hxx>
20 #include <Standard_Transient.hxx>
22 //=======================================================================
23 //function : HLRBRep_ShapeBounds
25 //=======================================================================
27 HLRBRep_ShapeBounds (const Handle(HLRTopoBRep_OutLiner)& S,
28 const Handle(Standard_Transient)& SData,
29 const Standard_Integer nbIso,
30 const Standard_Integer V1,
31 const Standard_Integer V2,
32 const Standard_Integer E1,
33 const Standard_Integer E2,
34 const Standard_Integer F1,
35 const Standard_Integer F2) :
39 myVertStart(V1),myVertEnd(V2),
40 myEdgeStart(E1),myEdgeEnd(E2),
41 myFaceStart(F1),myFaceEnd(F2)
44 //=======================================================================
45 //function : HLRBRep_ShapeBounds
47 //=======================================================================
50 HLRBRep_ShapeBounds (const Handle(HLRTopoBRep_OutLiner)& S,
51 const Standard_Integer nbIso,
52 const Standard_Integer V1,
53 const Standard_Integer V2,
54 const Standard_Integer E1,
55 const Standard_Integer E2,
56 const Standard_Integer F1,
57 const Standard_Integer F2) :
60 myVertStart(V1),myVertEnd(V2),
61 myEdgeStart(E1),myEdgeEnd(E2),
62 myFaceStart(F1),myFaceEnd(F2)
65 //=======================================================================
66 //function : Translate
68 //=======================================================================
70 void HLRBRep_ShapeBounds::Translate (const Standard_Integer NV,
71 const Standard_Integer NE,
72 const Standard_Integer NF)
82 //=======================================================================
85 //=======================================================================
87 void HLRBRep_ShapeBounds::Sizes (Standard_Integer& NV,
89 Standard_Integer& NF) const
91 NV = myVertEnd + 1 - myVertStart;
92 NE = myEdgeEnd + 1 - myEdgeStart;
93 NF = myFaceEnd + 1 - myFaceStart;
96 //=======================================================================
99 //=======================================================================
101 void HLRBRep_ShapeBounds::Bounds (Standard_Integer& V1,
102 Standard_Integer& V2,
103 Standard_Integer& E1,
104 Standard_Integer& E2,
105 Standard_Integer& F1,
106 Standard_Integer& F2) const