Tue, 03/08/2011 - 23:36
Forums:
So I iterator through the edges of a face using the TopExp_Explorer object and for each edge I get a Geom_Curve via BRep_Tool::Curve(...) call. I then use a GeomAdapter_Curve object to get the type of curve which is used in a switch statement. In the case of a line I can get the position of the line as well as a direction but the direction is always normalized. How do I find out the length of the line? I use GeomAdaptor_Curve::Line() function to get a gp_Lin object. Thanks.
Tue, 03/22/2011 - 13:37
U can get the fist point & the last point
then calculate the length
http://www.opencascade.org/org/forum/thread_20239/
Tue, 03/29/2011 - 21:17
Thank you!
Mon, 08/09/2021 - 15:26
Hello, this link doesn't work for me, can you please tell me how I can find the first and last point for the gp_Lin object?
Thanks.
Thu, 08/12/2021 - 09:32
I compute the length of curves like this:
[core]
CPnts_AbscissaPoint::Length(curve, parameter1, parameter2, 1.0e-4);
[/code]
Benjamin
Sat, 08/14/2021 - 11:40
Sorry, but length of a line is INFINITE )
Sun, 08/15/2021 - 23:47
Compute edge length?
Way 1.
Way2.