For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Intersection of Edges

Anonymous's picture
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

Julia Gerasimova's picture

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

Stefan Schlich's picture

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

Julia Gerasimova's picture

Hi Stefan,

In this case you should extract 3d curves from your edges and use GeomAPI_ExtremaCurveCurve.

Bye,

Julia