mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-07 13:18:19 +08:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
Executable
+70
@@ -0,0 +1,70 @@
|
||||
// File: IntTools_LineConstructor.lxx
|
||||
// Created: Tue Feb 7 10:12:45 1995
|
||||
// Author: Jacques GOUSSARD
|
||||
// Copyright: OPEN CASCADE 1995
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : GeomInt_LineConstructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline IntTools_LineConstructor::IntTools_LineConstructor ()
|
||||
: done(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Load
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline void IntTools_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1,
|
||||
const Handle(Adaptor3d_TopolTool)& D2,
|
||||
const Handle(GeomAdaptor_HSurface)& S1,
|
||||
const Handle(GeomAdaptor_HSurface)& S2)
|
||||
{
|
||||
myDom1 = D1;
|
||||
myDom2 = D2;
|
||||
myHS1 = S1;
|
||||
myHS2 = S2;
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : IsDone
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Boolean IntTools_LineConstructor::IsDone () const
|
||||
{
|
||||
return done;
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NbParts
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Integer IntTools_LineConstructor::NbParts () const
|
||||
{
|
||||
if (!done) { StdFail_NotDone::Raise(); }
|
||||
return (seqp.Length() / 2);
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Part
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline void IntTools_LineConstructor::Part (const Standard_Integer I,
|
||||
Standard_Real& WFirst,
|
||||
Standard_Real& WLast) const
|
||||
{
|
||||
if (!done) { StdFail_NotDone::Raise(); }
|
||||
WFirst = seqp(2*I-1);
|
||||
WLast = seqp(2*I);
|
||||
}
|
||||
Reference in New Issue
Block a user