Grasshopper Docs

Community documentation for Grasshopper add-ons & plugins

Color
Curve
Domain
List
Mesh
Number
Plane
Point
SubD
Surface
Transform
Twisted Box
Vector

Weighted Average Curve

Solve the arithmetic weighted average for a set of curves.

Inputs

NameIDDescriptionType
CurvesCSet of curves for averagingCurve
WeightsWCollection of weights for each curveNumber
RefitROptional Refit match method. (No Integer or 0 = Off, Integer greater than 0 = On and curve degree of refit) If an integer greater than zero, Refit match method is used if possible. When input curves are refit their control points are redistributed, added to, and removed from based on the curves curvature and the input integer degree, while trying to maintain their shapes. Refit results in tighter shaped averages, with curvature based control point distribution.Integer
Point SamplePOptional Point Sample match method. (No Integer or 0 = Off, Integer greater than 0 = On and amount of sample points) If an integer greater than zero, Point Sample match method is used. When input curves are sampled their control points are recreated by equally dividing the curve by the input integer point count. Point Sample results in looser shaped averages, with uniform control point distribution.Integer

Outputs

NameIDDescriptionType
Arithmetic meanAMArithmetic mean (average) of all input curvesCurve

Video Tutorials

Site design © Robin Rodricks.   Pufferfish and associated data © 2020 Michael Pryor.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service