• No results found

Maths DOMAIN

In document Grasshopper (Page 127-132)

M.D.Bnd Bounds

P.I.Slider Number Slider

A slider is a special interface object that allows for quick setting of individual numeric values. You can change the values and properties through the menu, or by double-clicking a slider object. Sliders can be made longer or shorter by dragging the rightmost edge left or right. Note that sliders only have an output (ie. no input).

P.I.Pannel Panel

A panel for custom notes and text values. It is typically an inactive object that allows you to add remarks or explanations to a Document. Panels can also receive their information from elsewhere. If you plug an output parameter into a Panel, you can see the contents of that parameter in real-time. All data in Grasshopper can be viewed in this way. Panels can also stream their content to a text file.

P.I.List Value List

Provides a list of preset values from which to choose.

UTILITIES

P.U.Cin Cluster Input

Represents a cluster input parameter. P.U.COut Cluster Output

Represents a cluster input parameter.

P.U.Dam Data Dam

Delay data on its way through the document.

P.U.Jump Jump

Jump between different locations. P.U.

Viewer

Param Viewer

A viewer for data structures. P.U.Scrib-

ble

Scribble A quick note.

127

M.D.Dom Construct Domain

Create a numeric domain from two numeric extremes. M.D.

Dom2Num

Construct Domain²

Create a two-dimensinal domain from four numbers. M.D.

DeDomain

Deconstruct Domain

Deconstruct a numeric domain into its component parts. M.D.

DeDom2

Num

Deconstruct Domain²

Deconstruct a two-dimensional domain into four numbers.

M.D. Divide

Divide Domain²

Divides a two-dimensional domain into equal segments.

M.D.Inc Includes

Test a numeric value to see if it is included in the domain. M.D.

ReMap

Remap Numbers

Remap numbers into a new numeric domain.

OPERATORS M.O.Add Addition Mathematical addition. M.O.Div Division Mathematical division. M.O. Equals Equality

Test for (in)equality of two numbers.

M.O.And Gate And

Perform boolean conjunction (AND gate). Both inputs need to be True for the result to be True.

M.O.Not Gate Not

Perform boolean negation (NOT gate).

M.O.Or Gate Or

Perform boolean disjunction (OR gate). Only a single input has to be True for the result to be True.

M.O. Larger

Larger Than

Larger than (or equal to). M.O.

Multiply

Multiplication

M.O. Smaller

Smaller Than

Larger than (or equal to). M.O.

Similar

Similarity

Test for similarity of two numbers.

M.O.Sub Subtraction

Mathematical subtraction.

SCRIPT

M.S.Eval Evaluate

Evaluate an expression with a flexible number of variables. M.S. Expression Expression Evaluate an expression. TRIG M.T.Cos Cosine

Compute the cosine of a value.

M.T.Deg Degrees

Convert an angle specified in radians to degrees.

M.T.Rad Radians

Convert an angle specified in degrees to radians.

M.T.Sim Sine

Compute the sine of a value.

UTILITIES

M.U.Avr Average

Solve the arithmetic average for a set of items.

M.U.Phi Golden Ratio

Returns a factor of the golden ratio (Phi).

M.U.Pi Pi

Returns a factor of Pi.

129

S.L. CrossRef

Cross Reference

Cross Reference data from multiple lists. S.L.

Dispatch

Dispatch

Dispatch the items in a list into two target lists. List dispatching is very similar to the [Cull Pattern] component, with the exception that both lists are provided as outputs.

S.L.Ins Insert Items

Insert a collection of items into a list. S.L.Item List Item

Retrieve a specific item from a list.

S.L.Lng List Length

Measure the length of a list. Elements in a list are identified by their index. The first element is stored at index zero, the second element is stored at index one and so on and so forth. The highest possible index in a list equals the length of the list minus one. S.L.Long Longest List

Grow a collection of lists to the longest length amongst them. S.L.

Replace

Replace Items

Replace certain items in a list.

S.L.Rev Reverse List

Reverse the order of a list. The new index of each element will be N-i where N is the highest index in the list and i is the old index of the element.

S.L.Shift Shift List

Offset all items in a list. Items in the list are offset (moved) towards the end of the list if the shift offset is positive. If Wrap equals True, then items that fall off the ends are re-appended. S.L.Short Shortest List

Shrink a collection of lists to the shortest length amongst them. S.L.Sift Sift Pattern

Sift elements in a list using a repeating index pattern. S.L.Sort Sort List

Sort a list of numeric keys. In order for something to be sorted, it must first be comparable. Most types of data are not comparable, Numbers and Strings being basically the sole exceptions. If you want to sort other types of data, such as curves, you’ll need to create a list of keys first.

S.L.Weave Weave

Weave a set of input data using a custom pattern. The pattern is specified as a list of index values (integers) that define the order in which input data is collected.

SETS

S.S.Culli Cull Index

Cull (remove) indexed elements from a list. S.S.Cull Cull Pattern

Cull (remove) elements in a list using a repeating bit mask. The bit mask is defined as a list of Boolean values. The bit mask is repeated until all elements in the data list have been evaluated.

S.S.Dup Duplicate Data

Duplicate data a predefined number of times. Data can be duplicated in two ways, either copies of the list are appended at the end until the number of copies has been reached, or each item is duplicated a number of times before moving on to the next item. S.S.Jitter Jitter

Randomly shuffles a list of values. The input list is reordered based on random noise. Jittering is a good way to get a random set with a good distribution. The jitter parameter sets radius of the random noise. If jitter equals 0.5, then each item is allowed to reposition itself randomly to within half the span of the entire set. S.S.

Random

Random

Generate a list of pseudo random numbers. The number sequence is unique but stable for each seed value. If you do not like a random distribution, try different seed values.

S.S.Range Range

Create a range of numbers. The numbers are spaced equally inside a numeric domain. Use this component if you need to create numbers between extremes. If you need control over the interval between successive numbers, you should be using the [Series] component.

S.S.Repeat Repeat Data

Repeat a pattern until it reaches a certain length. S.S.Series Series

Create a series of numbers. The numbers are spaced according to the {Step} value. If you need to distribute numbers inside a fixed numeric range, consider using the [Range] component instead.

TREE

131

S.T.Flip Flip Matrix

Flip a matrix–like data tree by swapping rows and columns. S.T.Graft Graft Tree

Typically, data items are stored in branches at specific index values (0 for the first item, 1 for the second item, and so on and so forth) and branches are stored in trees at specific branch paths, for example: {0;1}, which indicates the second sub-branch of the first main branch. Grafting creates a new branch for every single data item.

S.T.Merge Merge

Merge a bunch of data streams.

S.T.Path Path Mapper

Perform lexical operations on data trees. Lexical operations are logical mappings between data paths and indices which are defined by textual (lexical) masks and patterns.

S.T.Prune Prune Tree

Removes all branches from a Tree that carry a special number of Data items. You can supply both a lower and an upper limit for branch pruning.

S.T.Simplify Simplify Tree

Simplify a tree by removing the overlap shared amongst all branches.

S.T.TStat Tree Statistics

Get some statistics regarding a data tree. S.T.

Unflatten

Unflatten Tree

Unflatten a data tree by moving items back into branches.

Vector

In document Grasshopper (Page 127-132)