1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

88
src/IntPatch/IntPatch_WLine.lxx Executable file
View File

@@ -0,0 +1,88 @@
// File: IntPatch_WLine.lxx
// Created: Mon May 27 13:18:45 1991
// Author: Isabelle GRIGNON
// Copyright: OPEN CASCADE 1991, 1992
#include <Standard_DomainError.hxx>
#include <IntSurf_LineOn2S.hxx>
#include <IntPatch_Point.hxx>
inline void IntPatch_WLine::AddVertex (const IntPatch_Point& Pnt)
{
svtx.Append(Pnt);
}
inline void IntPatch_WLine::Replace (const Standard_Integer Index,
const IntPatch_Point& Pnt)
{
svtx(Index) = Pnt;
}
inline void IntPatch_WLine::SetFirstPoint (const Standard_Integer IndFirst)
{
fipt = Standard_True;
indf = IndFirst;
}
inline void IntPatch_WLine::SetLastPoint (const Standard_Integer IndLast)
{
lapt = Standard_True;
indl = IndLast;
}
inline Standard_Integer IntPatch_WLine::NbPnts () const
{
return curv->NbPoints();
}
inline const IntSurf_PntOn2S& IntPatch_WLine::Point (const Standard_Integer Index) const
{
return curv->Value(Index);
}
inline Standard_Boolean IntPatch_WLine::HasFirstPoint () const
{
return fipt;
}
inline Standard_Boolean IntPatch_WLine::HasLastPoint () const
{
return lapt;
}
inline const IntPatch_Point& IntPatch_WLine::FirstPoint () const
{
if (!fipt) {Standard_DomainError::Raise();}
return svtx(indf);
}
inline const IntPatch_Point& IntPatch_WLine::LastPoint () const
{
if (!lapt) {Standard_DomainError::Raise();}
return svtx(indl);
}
inline const IntPatch_Point& IntPatch_WLine::FirstPoint (Standard_Integer& Indfirst) const
{
if (!fipt) {Standard_DomainError::Raise();}
Indfirst = indf;
return svtx(indf);
}
inline const IntPatch_Point& IntPatch_WLine::LastPoint (Standard_Integer& Indlast) const
{
if (!lapt) {Standard_DomainError::Raise();}
Indlast = indl;
return svtx(indl);
}
inline Standard_Integer IntPatch_WLine::NbVertex () const
{
return svtx.Length();
}
inline const IntPatch_Point& IntPatch_WLine::Vertex (const Standard_Integer Index) const
{
return svtx(Index);
}