Warning, /include/opencascade/IntPatch_ImpImpIntersection.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-05-07
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-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 <StdFail_NotDone.hxx>
0018 #include <Standard_DomainError.hxx>
0019 #include <IntPatch_Line.hxx>
0020
0021 inline Standard_Boolean IntPatch_ImpImpIntersection::IsDone () const
0022 {
0023 return (GetStatus() != IntStatus_Fail);
0024 }
0025
0026 inline IntPatch_ImpImpIntersection::IntStatus
0027 IntPatch_ImpImpIntersection::GetStatus() const
0028 {
0029 return myDone;
0030 }
0031
0032 inline Standard_Boolean IntPatch_ImpImpIntersection::IsEmpty () const
0033 {
0034 if (!IsDone ()) { throw StdFail_NotDone(); }
0035 return empt;
0036 }
0037
0038 inline Standard_Boolean IntPatch_ImpImpIntersection::TangentFaces () const
0039 {
0040 if (!IsDone ()) { throw StdFail_NotDone(); }
0041 return tgte;
0042 }
0043
0044 inline Standard_Boolean IntPatch_ImpImpIntersection::OppositeFaces () const
0045 {
0046 if (!IsDone ()) { throw StdFail_NotDone(); }
0047 if (!tgte) {throw Standard_DomainError();}
0048 return oppo;
0049 }
0050
0051 inline Standard_Integer IntPatch_ImpImpIntersection::NbPnts () const
0052 {
0053 if (!IsDone ()) { throw StdFail_NotDone(); }
0054 return spnt.Length();
0055 }
0056
0057 inline const IntPatch_Point& IntPatch_ImpImpIntersection::Point (const Standard_Integer Index) const
0058 {
0059 if (!IsDone ()) { throw StdFail_NotDone(); }
0060 return spnt(Index);
0061 }
0062
0063 inline Standard_Integer IntPatch_ImpImpIntersection::NbLines () const
0064 {
0065 if (!IsDone ()) { throw StdFail_NotDone(); }
0066 return slin.Length();
0067 }
0068
0069 inline const Handle(IntPatch_Line)& IntPatch_ImpImpIntersection::Line (const Standard_Integer Index) const
0070 {
0071 if (!IsDone ()) { throw StdFail_NotDone(); }
0072 return slin(Index);
0073 }