Hello,
I have been looking for and easy way to extract list of points from a rhino object but I couldnt find any in any documentation/topic. Do I need to implement it myself? Have I missed an easier solution during my research?
Thanks!
Hello,
I have been looking for and easy way to extract list of points from a rhino object but I couldnt find any in any documentation/topic. Do I need to implement it myself? Have I missed an easier solution during my research?
Thanks!
What kind of objects? What kind of points?
Note, there is no one way - each object will need to be taken into account.
– Dale
I am trying to replicate grasshopper´s geometry pipeline with the curve-type filter, basically x,y,z values in any type or form that make up objects that would pass the said filter
Hi @Vojta_Hanzlík,
Can you upload a .GH file, along with required internalized geometry, that demonstrates what you want?
– Dale
snippet.gh (14.2 KB)
this is a tiny part of a more complicated gh file, all of the components here Id like to implement myself using rhino common
Hi @Vojta_Hanzlík,
Sorry, I didn’t get much from your .GH file.
So you have some curves and you want to extract some points from them.
What kind of curves? Polylines? NURBS curves?
What kind of points? Polylines vertices? NURBS curve control points?
Perhaps some more information what you want to do - and why - would be helpful.
Thanks,
– Dale
I am processing floor plans, I think I am aiming for polylines and their vertices. Sorry, I am not too familiar with cad terminology
If I understand properly, you want to get the vertices of polylines.
A PolyLineCurve exposes its vertices through the Point(index) method.
PolylineCurve class (rhino3d.com)
That’s what I use to build up segments.
You might also look at this:
Curve.DuplicateSegments method (rhino3d.com)