Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to rebuild a surface in vb.

 

INPUT:

surface, domain (nbrU, nbrV)

 

OUTPUT

surface rebuild with the new domain

 

Thanks to help!

 

RG

Views: 651

Replies to This Discussion

Hi RG,

 

what are nbrU and nbrV? Changing the Domain of the surface does not equal rebuilding it.

 

If you want to change the domains of a surface, you'll need to assign these new domains like so:

 

srf.SetDomain(0, New Interval(0, 10))    

srf.SetDomain(1, New Interval(0, 10))

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Verry interesting, what is the difference between rebulding and change the domain?

Thanks:)

Changing the domain does not in any way change the surface shape. It maintains the number of control-points, the weight of control-points, knot ratios and degrees. Rebuilding creates an entirely new surface with potentially different degrees, control-point-count, parameterization etc. etc.

 

The easiest way to imagine a Rebuild is to divide the surface into a grid of points, then create a new surface with the control-points at these locations. It is quite a bit smarter than that, but that is the basic idea.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

 

Incidentally, both operations are available as standard Rhino commands, so you can see the difference quite easily. Compare the outputs of the _Rebuild and the _Reparameterize commands. You can use the _What and the _List commands to examine the data structure of any given surface.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service