Hello!
I'm very new with OCCT technology and try to find some basic info:
I have an array of Geom_Curve geometry and must cycle on everyone of them and try to find the defining parameters for each of them. For example in the case of Geom_Line (the lines) I need to extract the start point and the end point of the line, for a Geom_TrimmedCurve (which represent the arcs) I need to find center, radius, and start point and end point, for Geom_Circle (the circles) I need to find center, and radius, ands so on.
I can use GeomAdaptor_Curve and try use the resulted gp_Lin / gp_Circle from the original Geom_Curve but I got stuck here, I'm not sure how to retrieve the points.
From official documentation, the gp_Lin class has Location() and Position(). Which one must use to calculate the start and the end points?
Also I need to find the start point and an end point of an arc.
It would be very helpful, if you can point me to the right way to do it.
Ioan
I'm very new with OCCT technology and try to find some basic info:
I have an array of Geom_Curve geometry and must cycle on everyone of them and try to find the defining parameters for each of them. For example in the case of Geom_Line (the lines) I need to extract the start point and the end point of the line, for a Geom_TrimmedCurve (which represent the arcs) I need to find center, radius, and start point and end point, for Geom_Circle (the circles) I need to find center, and radius, ands so on.
I can use GeomAdaptor_Curve and try use the resulted gp_Lin / gp_Circle from the original Geom_Curve but I got stuck here, I'm not sure how to retrieve the points.
From official documentation, the gp_Lin class has Location() and Position(). Which one must use to calculate the start and the end points?
Also I need to find the start point and an end point of an arc.
It would be very helpful, if you can point me to the right way to do it.
Ioan