A script to create Voronoi cells on a surface. Each of these intervals is then given to a Rectangle component ( Curve tab, Primitive panel) to create a rectangle in the XY-plane that represents the boundary of the domain parameter space of the cylinder.įIGURE 5.1. As described in the previous chapter this is fed to a Deconstruct Domain 2 component ( Math tab, Domain panel) to extract intervals representing the u and v parameters. The script starts with a Cylinder component ( Surface tab, Primitive panel). Consider the script depicted in Figure 5.1. This speciality component will take a curve in the domain space of a surface, and return a transformed curve on the surface itself. The simplest way to make a given geometry conform to that of a surface is to use the Map to Surface component ( Transform tab, Morph panel). Here we build upon this idea to show how Grasshopper can be used to define transformations from the domain space to the surface space.
#Brep components grasshopper rhino 5 how to
In the previous chapter we saw how to get and use the domain of a surface. In this chapter we describe several such transformations. The most mysterious (and useful) of these are the ones that transform geometry onto a surface, similar to Rhino’s Flow along Surface command. Grasshopper contains many kinds of transformation under the Transform tab. Creating a new surface by offsetting a paraboloid by the square of the sine of the v parameter. These numbers are then passed to the X input of a Construct Point component.įIGURE 4.9. The output of the slider determines the number of real numbers that the Range component will pick in the given domain. Sliders can be used at those inputs, too, by right-clicking on them and changing the “Slider type” to “Integer.” For example, examine the simple script depicted in Figure 3.1. Others expect a natural number as an input, such as the N input of the Range component. As we have seen, some components expect a real number input, such as the R input (radius) of the Circle component. The number slider itself is an extremely versatile component. However, this is really just an alternate way to do the same thing. For example, one can use a Control Knob ( Params tab, Input panel) in place of a slider to simulate setting a dial. However, this is just one way in which a user can interact with a script. In previous chapters we saw how to make your Grasshopper scripts interactive by using a number slider.