Grasshopper

algorithmic modeling for Rhino

 

Where does OnCurve.setDomain() function go? I could not locate this function in RhinoCommon. Curve obj on longer has the setDomain() function to reset the parametric domain to, say, 0 and 1. Could anyone show me what might be the substitute function in RhinoCommon? 

 

Thanks. -javier

Views: 752

Replies to This Discussion

Hi Javier,

 

Domain is now a property on the Curve object. You can use that property to both retrieve and assign the domain of a curve:

 

Dim crv As Curve        

Dim dom As Interval  = crv.Domain       

dom.T0 += 1        

dom.T1 += 5        

crv.Domain = dom

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

David,

 

Thanks! You save my day.

-j

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