Command name “convert” in Rhino 5 , takes a long curve and gives output as
Arcs Segments.
There is a Tolerance and an angler tolerance for this conversion.
Please please, some one tell me what are this two tolerance and how the code work.
I need to write a RhinoCommon c# script, which should convert a long curve into Arc and line Segments.
I wrote something, which is going through existing control points of the long curve, so not very accurate.
Can somebody explain the rule behind this existing convert command ?
Sorry, I see that you wanted arcs not line segments. As the code behind the Convert command is not entirely exposed in RhinoCommon, the best you can (probably) do at this time is to use Rhino.Geometry.Curve.Simplify().
Dear Dale ,
Many thanks for the reply !
I actually need that particular command implemented in Rhino-common.
I will see Rhino documentation to understand what are those two tolerance.
I hope that will give me idea, how to do it.
I did one, which convert a long curve to arc and line segments, it is working perfect but it is not recalculating control points.
So mine one is not the optimized one.
I need to brain storm
Best regards
Just bumping this in 2019. Has the Convert command (or an equivalent function) been added to RhinoCommon? I looked through all the things you can do the Geometry in an object, but I did not find an alternative.