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
0017 inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume()
0018 : myIntersect(true),
0019 myAvoidInternalShapes(false)
0020 {
0021 }
0022
0023 //=================================================================================================
0024
0025 inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume(
0026 const occ::handle<NCollection_BaseAllocator>& theAllocator)
0027 : BOPAlgo_Builder(theAllocator),
0028 myIntersect(true),
0029 myAvoidInternalShapes(false)
0030 {
0031 }
0032
0033 //=================================================================================================
0034
0035 inline BOPAlgo_MakerVolume::~BOPAlgo_MakerVolume()
0036 {
0037 Clear();
0038 }
0039
0040 //=================================================================================================
0041
0042 inline void BOPAlgo_MakerVolume::Clear()
0043 {
0044 BOPAlgo_Builder::Clear();
0045 myIntersect = true;
0046 myBBox = Bnd_Box();
0047 mySBox.Nullify();
0048 myFaces.Clear();
0049 myAvoidInternalShapes = false;
0050 }
0051
0052 //=================================================================================================
0053
0054 inline void BOPAlgo_MakerVolume::SetIntersect(const bool bIntersect)
0055 {
0056 myIntersect = bIntersect;
0057 }
0058
0059 //=================================================================================================
0060
0061 inline bool BOPAlgo_MakerVolume::IsIntersect() const
0062 {
0063 return myIntersect;
0064 }
0065
0066 //=================================================================================================
0067
0068 inline const TopoDS_Solid& BOPAlgo_MakerVolume::Box() const
0069 {
0070 return mySBox;
0071 }
0072
0073 //=================================================================================================
0074
0075 inline const NCollection_List<TopoDS_Shape>& BOPAlgo_MakerVolume::Faces() const
0076 {
0077 return myFaces;
0078 }