Is this by accident or on purpose?
Would be really great to have this function to convert a curve to a polyline as using curve geometry is not possible in the target app.
Or is there any other smart way to convert a curve into a polyline depending on the curvature?
These dont work for you?:
https://developer.rhino3d.com/api/RhinoScriptSyntax/#curve-ConvertCurveToPolyline
No, as I said, this function does not seem to exist in Rhino3dm, only in Rhinocommon.
Sorry, .NET. based on the nuget.
Hi @moritzcramer,
Rhino3dm is based on openNURBS. And the underlying function behind Curve.ToPolyline
is in Rhino, not in openNURBS.
There are many things RhinoCommon provides that Rhino3dm does not.
So to answer your question, no, Curve.ToPolyline
is not available in Rhino3dm.
If you have Rhino installed, then you might consider using Rhino.Inside.
– Dale
Thanks for your answer! Then I try to write it myself as Rhino.Inside is not an option in this case.
I am developing a free plugin to read Rhino3dm files in VL (vvvv).
Hello @moritzcramer
As @dale mentions, this is not available in rhino3dm. For the 3dmLoader in three.js, we discretize curves (after testing for many conditions). You can see how we go about it here. Of course, the end goal of doing this is to visualize the curves. With a bit of js to .net conversion you should be able to achieve the same thing.
Thank you @fraguada ! That is really helpful!