mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
0052954: Get In Place does not work
This commit is contained in:
parent
907035f22e
commit
9247817338
@ -74,6 +74,7 @@
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_SphericalSurface.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <TDF_Tool.hxx>
|
||||
@ -4636,6 +4637,8 @@ static bool isSameEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2)
|
||||
U = U11+range*2.0/3.0;
|
||||
gp_Pnt P2 = C1->Value(U); //Compute a point on two thirds of the edge's length
|
||||
|
||||
C2 = new Geom_TrimmedCurve(C2, U21, U22);
|
||||
|
||||
if(!GeomLib_Tool::Parameter(C2, P1, MAX_TOLERANCE, U) || U < U21 || U > U22)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user