mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0022887: Request to make Intf_InterferencePolygon2d class thread-safe.
This commit is contained in:
47
src/IntPatch/IntPatch_Polygo.lxx
Normal file
47
src/IntPatch/IntPatch_Polygo.lxx
Normal file
@@ -0,0 +1,47 @@
|
||||
// File: IntPatch_Polygo.lxx
|
||||
// Created: Fri Feb 10 08:18:37 2012
|
||||
// Author: Sergey ZERCHANINOV
|
||||
// Copyright: OPEN CASCADE SAS 2012
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Error
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Real IntPatch_Polygo::Error () const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : DeflectionOverEstimation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Real IntPatch_Polygo::DeflectionOverEstimation () const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : NbSegments
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline Standard_Integer IntPatch_Polygo::NbSegments () const
|
||||
{
|
||||
return NbPoints()-1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : BeginOfSeg
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
inline void IntPatch_Polygo::Segment (const Standard_Integer theIndex,
|
||||
gp_Pnt2d &theBegin, gp_Pnt2d &theEnd) const
|
||||
{
|
||||
theBegin = Point(theIndex);
|
||||
theEnd = Point(theIndex+1);
|
||||
}
|
Reference in New Issue
Block a user