Wed, 03/08/2000 - 13:24
Forums:
Hi folks,
I have two edges and a tolerance and need to find all intersection points and segments within the tolerance. (Afterwards I'd like to insert the intersection points as vertices but this is a different story). Are there any classes in Cas.Cade for this purpose? I found GeomAPI_ExtremaCurveCurve but this is not exactly what I want...
Thanks and bye, Stefan
Thu, 03/09/2000 - 16:13
Hello, Stefan
There is a class TopOpeBRep_EdgesIntersector that makes all the things you need. But it works only with edges on faces, so you must specify a face for each edge by the method SetFaces(F1,F2) of TopOpeBRep_EdgesIntersector. You may set the tolerances for each edge by the method ForceTolerances(Tol1,Tol2).
As a result you will have Points() of class TopOpeBRep_Point2d. This structure contains a lot of usefull information: is an intersection point the vertex on one of edges, the parameters of an intersection point on edges, is an intersection point a point of segment and so on.
Best regards,
Julia
Thu, 03/09/2000 - 17:11
Hi Julia,
thanks for your answer..
> There is a class TopOpeBRep_EdgesIntersector
> that makes all the things you need. But it
> works only with edges on faces, so you must
> specify a face for each edge by the method
> SetFaces(F1,F2) of
I don´t have any faces, just a set of edges. What can I do?
Bye, Stefan
Thu, 03/09/2000 - 18:10
Hi Stefan,
In this case you should extract 3d curves from your edges and use GeomAPI_ExtremaCurveCurve.
Bye,
Julia