Sat, 03/12/2022 - 05:26
Forums:
hi,
i meet a question i want discrete curves ,but GCPnts_UniformAbscissa is not enough,because i want discrete curves .for example there are tow lines ,and i want to divide into tow parts,and only 3 points.like picture.
best regards.
Attachments:
Sat, 03/12/2022 - 22:54
Hi,
You can use the class BRepAdaptor_CompCurve that allows using a TopoDS_Wire object in the context where an adaptor curve is needed. Then you can use GCPnts_AbscissaPoint to get a point on a given distance from the start of the curve, as well as to measure the length of the entire composite curve.
BR,
Mikhail
Mon, 03/14/2022 - 10:59
thank you ,
this is a good method,it solved my problem .
and i also want know if has a function can use length to get point
BR,
Mon, 03/14/2022 - 13:35
As I already wrote, you can use GCPnts_AbscissaPoint to get a point on a given distance from the start of the curve. Please study the comments in the file GCPnts_AbscissaPoint.hxx.