Get Edge out of shape and evaluate Points every 0.1mm

Dear all,

I finally managed to get the cut of my shapes to work :) With a lot of help from the forum and from Adrian.

Now I have got an intersection curve that looks just like a circle. I now would like to evaluate some points on the curve.

Currently I do it the following way:

1. I convert an exisiting Edge with Handle(Geom_Curve) po_segment = BRep_Tool::Curve (edge,d_tmin, d_tmax);
2. with d_tmin and d_tmax I have got the min and max value of the parameter space.
3. Now I would like to get the coordinates of points on the curve every 0.1mm.

-> This is where the problems begin :( I only have the parameter space description and have no idea how long the curve exactly is. Of course the length of the curve can also vary greatly.

Does anybody of you know, how I can handle this problem to get the points I want every 0.1 or 0.2 or else?

Thx in advance.


Stephane Routelous's picture

you should be able to do it with GCPnts_UniformAbsissa ( or GCPnts_QuasiUniformAbsissa, I don't remember exaclty)
just create a BRepAdaptor_Curve with you edge and pass it to the ctor with the distance you want.
Take care, I add some problems with the GCPnts package and BRepAdaptor_CompCurve from some wires.



dvdjimmy's picture

Hi Stephane,

thank you very much for your help. This class was exactly what I was looking for :)

Take care.