Warning, /include/opencascade/BRepFeat_SplitShape.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1995-09-04
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <LocOpe_WiresOnShape.hxx>
0018
0019 //=================================================================================================
0020
0021 inline BRepFeat_SplitShape::BRepFeat_SplitShape() = default;
0022
0023 //=================================================================================================
0024
0025 inline BRepFeat_SplitShape::BRepFeat_SplitShape(const TopoDS_Shape& S)
0026 : mySShape(S)
0027 {
0028 myWOnShape = new LocOpe_WiresOnShape(S);
0029 }
0030
0031 //=================================================================================================
0032
0033 inline bool BRepFeat_SplitShape::Add(const NCollection_Sequence<TopoDS_Shape>& theEdges)
0034 {
0035 return myWOnShape->Add(theEdges);
0036 }
0037
0038 //=================================================================================================
0039
0040 inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
0041 {
0042 mySShape.Init(S);
0043 if (myWOnShape.IsNull())
0044 {
0045 myWOnShape = new LocOpe_WiresOnShape(S);
0046 }
0047 else
0048 {
0049 myWOnShape->Init(S);
0050 }
0051 }
0052
0053 //=================================================================================================
0054
0055 inline void BRepFeat_SplitShape::SetCheckInterior(const bool ToCheckInterior)
0056 {
0057 myWOnShape->SetCheckInterior(ToCheckInterior);
0058 }
0059
0060 //=================================================================================================
0061
0062 inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W, const TopoDS_Face& F)
0063 {
0064 myWOnShape->Bind(W, F);
0065 }
0066
0067 //=================================================================================================
0068
0069 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Face& F)
0070 {
0071 myWOnShape->Bind(E, F);
0072 }
0073
0074 //=================================================================================================
0075
0076 inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp, const TopoDS_Face& F)
0077 {
0078 myWOnShape->Bind(Comp, F);
0079 }
0080
0081 //=================================================================================================
0082
0083 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Edge& EOn)
0084 {
0085 myWOnShape->Bind(E, EOn);
0086 }