Grasshopper

algorithmic modeling for Rhino

hello,

does anyone know which method/property of OpenNurbs would extract isocurves from a surface at specified uv coordinates  ?

best

Views: 14919

Replies to This Discussion

;)
Attachments:
hello andrea,

thanks for you definition,
sorry but I was referring to an sdk method such as .IsoCurve() or similar and the way it can be implemented using a c# or vb component in grasshopper
Hi Gennaro,

are you looking for isocurves which are trimmed by surface edges, or merely isocurves which run across the entire surface?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
can you point help for both fo them, it might turn to be very usefull to have them trimmed by surface edges later on....

I do not have a regular spacing, I've got array or list with specified uv coordinates (or points coordinates) at which I need to extract the isocurves
basically same stuff that you do with the rhinoscript method "extract isocurve"

thanks
Well, IOnSurface.IsoCurve() is definitely the method you need. You can get both the U and the V isocurve at a given uv-coordinate.

If you need curves that are aware of surface trims, you cannot use IOnSurface at all, you have to start using BReps. There is a GetWireFrameCurves() method on MRhinoBrepObject, but it will be difficult to determine which curve you need.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks David,

would you be that kind to provide a short example that shows how to work with IOnsurface, when interfaces comes to play I'm still kind of not confident

thanks in any case
sorry again,

would it be possible to access to rhinoscript methods within grasshopper script components ?

I tried to add as assenbly the rhinoscript.tlb file but obviously it did not work....
rhinoscript methods are not, afaik, available in a GH .net component.
right,

that was easier that I thought,
basically the method IOnsurface.Isocurve() gives back directly a OnCurve which is an abstract class
so it can not be instantiated which means that we have to plug OnCurve from the outside as an input
and use also as output

if this is not clear have a look at the definition

thanks for you help
Attachments:
Hi Gennaro,

you can also directly declare the local variable inside the method. Have a look at this definition - it has two examples.

- Giulio
Attachments:
hey many thanks Giulio,

this is pretty amusing,
I did exactly the same yesterday and got exception of protected member, such as Oncurve could not be accessed..... I must have done some mess though because in your definition is working....

thanks
I think I put the word "new" before Oncurve, which caused the exception because OnCurve cannot be instantiated.....

thanks again

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service