mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0025122: Expose internal static function ComputeDeviation from ShapeAnalysis_Edge.cxx
This commit is contained in:
parent
353474f083
commit
5402ccdda6
@ -24,6 +24,7 @@ class Edge from ShapeAnalysis
|
|||||||
-- (3d and pcurve(s) consistency, their adjacency to the vertices).
|
-- (3d and pcurve(s) consistency, their adjacency to the vertices).
|
||||||
|
|
||||||
uses
|
uses
|
||||||
|
Curve from Adaptor3d,
|
||||||
Pnt from gp,
|
Pnt from gp,
|
||||||
Pnt2d from gp,
|
Pnt2d from gp,
|
||||||
Vec2d from gp,
|
Vec2d from gp,
|
||||||
@ -275,7 +276,20 @@ is
|
|||||||
-- FAIL1 - edge does not have 3d curve
|
-- FAIL1 - edge does not have 3d curve
|
||||||
-- FAIL2 - if some computational problems were encountered (when
|
-- FAIL2 - if some computational problems were encountered (when
|
||||||
-- projecting points on curves)
|
-- projecting points on curves)
|
||||||
|
|
||||||
|
ComputeDeviation (myclass; CRef : Curve from Adaptor3d;
|
||||||
|
Other : Curve from Adaptor3d;
|
||||||
|
SameParameter: Boolean;
|
||||||
|
dev : in out Real;
|
||||||
|
NCONTROL : Integer)
|
||||||
|
returns Boolean;
|
||||||
|
---Purpose: Computes the maximal deviation between the two curve
|
||||||
|
-- representations.
|
||||||
|
-- dev is an input/output parameter and contains the computed
|
||||||
|
-- deviation (should be initialized with 0. for the first call).
|
||||||
|
-- Used by CheckSameParameter().
|
||||||
|
---Returns: True if the computation has been successful and False otherwise.
|
||||||
|
|
||||||
CheckOverlapping(me :in out; theEdge1, theEdge2 : Edge from TopoDS;
|
CheckOverlapping(me :in out; theEdge1, theEdge2 : Edge from TopoDS;
|
||||||
theTolOverlap:in out Real; theDomainDist : Real =0.0) returns Boolean;
|
theTolOverlap:in out Real; theDomainDist : Real =0.0) returns Boolean;
|
||||||
---Purpose: Checks the first edge is overlapped with second edge.
|
---Purpose: Checks the first edge is overlapped with second edge.
|
||||||
|
@ -705,11 +705,11 @@ Standard_Boolean ShapeAnalysis_Edge::CheckVertexTolerance(const TopoDS_Edge& edg
|
|||||||
//note: This function is made from Validate() in BRepCheck_Edge.cxx
|
//note: This function is made from Validate() in BRepCheck_Edge.cxx
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
static Standard_Boolean ComputeDeviation (const Adaptor3d_Curve& CRef,
|
Standard_Boolean ShapeAnalysis_Edge::ComputeDeviation (const Adaptor3d_Curve& CRef,
|
||||||
const Adaptor3d_Curve& Other,
|
const Adaptor3d_Curve& Other,
|
||||||
const Standard_Boolean SameParameter,
|
const Standard_Boolean SameParameter,
|
||||||
Standard_Real &dev,
|
Standard_Real &dev,
|
||||||
const Standard_Integer NCONTROL)
|
const Standard_Integer NCONTROL)
|
||||||
{
|
{
|
||||||
Standard_Boolean OK = Standard_True;
|
Standard_Boolean OK = Standard_True;
|
||||||
Standard_Real dev2 = dev*dev;
|
Standard_Real dev2 = dev*dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user