mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-31 11:15:31 +03:00
57 lines
1.4 KiB
Plaintext
Executable File
57 lines
1.4 KiB
Plaintext
Executable File
// File: IntPatch_ImpImpIntersection.lxx
|
|
// Created: Thu May 7 08:47:45 1992
|
|
// Author: Jacques GOUSSARD
|
|
// Copyright: OPEN CASCADE 1992
|
|
|
|
#include <StdFail_NotDone.hxx>
|
|
#include <Standard_DomainError.hxx>
|
|
#include <IntPatch_Line.hxx>
|
|
|
|
inline Standard_Boolean IntPatch_ImpImpIntersection::IsDone () const
|
|
{
|
|
return done;
|
|
}
|
|
|
|
inline Standard_Boolean IntPatch_ImpImpIntersection::IsEmpty () const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return empt;
|
|
}
|
|
|
|
inline Standard_Boolean IntPatch_ImpImpIntersection::TangentFaces () const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return tgte;
|
|
}
|
|
|
|
inline Standard_Boolean IntPatch_ImpImpIntersection::OppositeFaces () const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
if (!tgte) {Standard_DomainError::Raise();}
|
|
return oppo;
|
|
}
|
|
|
|
inline Standard_Integer IntPatch_ImpImpIntersection::NbPnts () const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return spnt.Length();
|
|
}
|
|
|
|
inline const IntPatch_Point& IntPatch_ImpImpIntersection::Point (const Standard_Integer Index) const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return spnt(Index);
|
|
}
|
|
|
|
inline Standard_Integer IntPatch_ImpImpIntersection::NbLines () const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return slin.Length();
|
|
}
|
|
|
|
inline const Handle(IntPatch_Line)& IntPatch_ImpImpIntersection::Line (const Standard_Integer Index) const
|
|
{
|
|
if (!done) {StdFail_NotDone::Raise();}
|
|
return slin(Index);
|
|
}
|