Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/BOPAlgo_MakerVolume.lxx is written in an unsupported language. File is not indexed.

0001 // Created by: Eugeny MALTCHIKOV
0002 // Copyright (c) 2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014 
0015 //=======================================================================
0016 //function : BOPAlgo_MakerVolume
0017 //purpose  : 
0018 //=======================================================================
0019 inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume()
0020 :
0021   BOPAlgo_Builder(),
0022   myIntersect(Standard_True),
0023   myAvoidInternalShapes(Standard_False)
0024 {
0025 }
0026 
0027 //=======================================================================
0028 //function : BOPAlgo_MakerVolume
0029 //purpose  : 
0030 //=======================================================================
0031 inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume
0032   (const Handle(NCollection_BaseAllocator)& theAllocator)
0033 :
0034   BOPAlgo_Builder(theAllocator),
0035   myIntersect(Standard_True),
0036   myAvoidInternalShapes(Standard_False)
0037 {
0038 }
0039 
0040 //=======================================================================
0041 //function : ~BOPAlgo_MakerVolume
0042 //purpose  : 
0043 //=======================================================================
0044 inline BOPAlgo_MakerVolume::~BOPAlgo_MakerVolume()
0045 {
0046   Clear();
0047 }
0048 
0049 //=======================================================================
0050 //function : Clear
0051 //purpose  : 
0052 //=======================================================================
0053 inline void BOPAlgo_MakerVolume::Clear()
0054 {
0055   BOPAlgo_Builder::Clear();
0056   myIntersect = Standard_True;
0057   myBBox = Bnd_Box();
0058   mySBox.Nullify();
0059   myFaces.Clear();
0060   myAvoidInternalShapes = Standard_False;
0061 }
0062 
0063 //=======================================================================
0064 //function : SetIntersect
0065 //purpose  : 
0066 //=======================================================================
0067 inline void BOPAlgo_MakerVolume::SetIntersect(const Standard_Boolean bIntersect)
0068 {
0069   myIntersect = bIntersect;
0070 }
0071 
0072 //=======================================================================
0073 //function : IsIntersect
0074 //purpose  : 
0075 //=======================================================================
0076 inline Standard_Boolean BOPAlgo_MakerVolume::IsIntersect()const
0077 {
0078   return myIntersect;
0079 }
0080 
0081 //=======================================================================
0082 //function : Box
0083 //purpose  : 
0084 //=======================================================================
0085 inline const TopoDS_Solid& BOPAlgo_MakerVolume::Box()const
0086 {
0087   return mySBox;
0088 }
0089 
0090 //=======================================================================
0091 //function : Faces
0092 //purpose  : 
0093 //=======================================================================
0094 inline const TopTools_ListOfShape& BOPAlgo_MakerVolume::Faces()const
0095 {
0096   return myFaces;
0097 }