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 //function : BRepFeat_SplitShape
0022 //purpose :
0023 //=======================================================================
0024
0025 inline BRepFeat_SplitShape::BRepFeat_SplitShape () {}
0026
0027
0028
0029
0030 //=======================================================================
0031 //function : BRepFeat_SplitShape
0032 //purpose :
0033 //=======================================================================
0034
0035 inline BRepFeat_SplitShape::BRepFeat_SplitShape (const TopoDS_Shape& S) :
0036 mySShape(S)
0037 {
0038 myWOnShape = new LocOpe_WiresOnShape(S);
0039 }
0040
0041 //=======================================================================
0042 //function : Add
0043 //purpose :
0044 //=======================================================================
0045 inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges)
0046 {
0047 return myWOnShape->Add(theEdges);
0048 }
0049
0050 //=======================================================================
0051 //function : Init
0052 //purpose :
0053 //=======================================================================
0054
0055 inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
0056 {
0057 mySShape.Init(S);
0058 if (myWOnShape.IsNull()) {
0059 myWOnShape = new LocOpe_WiresOnShape(S);
0060 }
0061 else {
0062 myWOnShape->Init(S);
0063 }
0064 }
0065
0066 //=======================================================================
0067 //function : SetCheckInterior
0068 //purpose :
0069 //=======================================================================
0070
0071 inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
0072 {
0073 myWOnShape->SetCheckInterior(ToCheckInterior);
0074 }
0075
0076 //=======================================================================
0077 //function : Add
0078 //purpose :
0079 //=======================================================================
0080
0081 inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W,
0082 const TopoDS_Face& F)
0083 {
0084 myWOnShape->Bind(W,F);
0085 }
0086
0087
0088 //=======================================================================
0089 //function : Add
0090 //purpose :
0091 //=======================================================================
0092
0093 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
0094 const TopoDS_Face& F)
0095 {
0096 myWOnShape->Bind(E,F);
0097 }
0098
0099 //=======================================================================
0100 //function : Add
0101 //purpose :
0102 //=======================================================================
0103
0104 inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp,
0105 const TopoDS_Face& F)
0106 {
0107 myWOnShape->Bind(Comp,F);
0108 }
0109
0110
0111 //=======================================================================
0112 //function : Add
0113 //purpose :
0114 //=======================================================================
0115
0116 inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E,
0117 const TopoDS_Edge& EOn)
0118 {
0119 myWOnShape->Bind(E,EOn);
0120 }
0121
0122