Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1995-06-12
0002 // Created by: Philippe DERVIEUX
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 <TopoDS.hxx>
0018 #include <TopoDS_Shape.hxx>
0019 #include <TopoDS_Vertex.hxx>
0020 #include <TopoDS_Edge.hxx>
0021 #include <TopoDS_Wire.hxx>
0022 #include <TopoDS_Face.hxx>
0023 
0024 
0025 //=======================================================================
0026 //function : Result
0027 //purpose  : 
0028 //=======================================================================
0029 
0030 inline TopoDS_Face ChFi2d_Builder::Result() const 
0031 {
0032   TopoDS_Face aFace = newFace;
0033   aFace.Orientation(refFace.Orientation());
0034   return aFace;
0035 }
0036 
0037 //=======================================================================
0038 //function : IsModified
0039 //purpose  : 
0040 //=======================================================================
0041 
0042  inline Standard_Boolean ChFi2d_Builder::IsModified
0043  (const TopoDS_Edge& E) const 
0044 {
0045   return history.IsBound(E);
0046 }
0047 
0048 //=======================================================================
0049 //function : FilletEdges
0050 //purpose  : 
0051 //=======================================================================
0052 
0053  inline const TopTools_SequenceOfShape& ChFi2d_Builder::FilletEdges() const 
0054 {
0055   return fillets;
0056 }
0057 
0058 //=======================================================================
0059 //function : ChamferEdges
0060 //purpose  : 
0061 //=======================================================================
0062 
0063  inline const TopTools_SequenceOfShape& ChFi2d_Builder::ChamferEdges() const 
0064 {
0065   return chamfers;
0066 }
0067 
0068 //=======================================================================
0069 //function : NbFillet
0070 //purpose  : 
0071 //=======================================================================
0072 
0073  inline Standard_Integer ChFi2d_Builder::NbFillet() const 
0074 {
0075   return fillets.Length();
0076 }
0077 
0078 //=======================================================================
0079 //function : NbChamfer
0080 //purpose  : 
0081 //=======================================================================
0082 
0083  inline Standard_Integer ChFi2d_Builder::NbChamfer() const 
0084 {
0085   return chamfers.Length();
0086 }
0087 
0088 //=======================================================================
0089 //function : HasDescendant
0090 //purpose  : 
0091 //=======================================================================
0092 
0093  inline Standard_Boolean ChFi2d_Builder::HasDescendant
0094  (const TopoDS_Edge& E) const 
0095 {
0096   return history.IsBound(E);
0097 }
0098 
0099 //=======================================================================
0100 //function : DescendantEdge
0101 //purpose  : 
0102 //=======================================================================
0103 
0104 inline const TopoDS_Edge& ChFi2d_Builder::DescendantEdge(const TopoDS_Edge& E) const 
0105 {
0106   return TopoDS::Edge(history.Find(E));
0107 } // DescendantEdge
0108 
0109 
0110 //=======================================================================
0111 //function : Status
0112 //purpose  : 
0113 //=======================================================================
0114 
0115  inline ChFi2d_ConstructionError ChFi2d_Builder::Status() const 
0116 { 
0117   return status; 
0118 }