Remap Values component icon

Remap Values

Nickname ValRemapMorphe › 1. Field › OperateOutputs Field

Remaps the scalar values of a field from input range [IMin, IMax] to output range [OMin, OMax] through a transfer curve chosen from the right-click menu (Linear, Smoothstep, Sigmoid, Gamma). The curve's parameter (Clamp / Steepness / Exponent) appears as an input for the modes that use it. Pointwise: value-domain only; does not blend between fields and does not remap coordinates.

Modes

Choose the mode from the component's right-click menu.

LinearSmoothstepSigmoidGamma

Inputs

NameNickTypeDefaultDescription
InputFFieldThe input field.
Input MinIMinNumber0The minimum input value.
Input MaxIMaxNumber1The maximum input value.
Output MinOMinNumber0The minimum output value.
Output MaxOMaxNumber2The maximum output value.
ClampoptionalCBooleanFalseClamp output to [OMin, OMax]. Off = extrapolate past the range (default; the classic behaviour).

Outputs

NameNickTypeDescription
OutputFFieldThe output field.

Example definition

Grading a shell's wall thickness with height
A sphere is hollowed with Shell, whose thickness is the Z coordinate remapped from 0–40 mm to a wall of 0.5–4 mm, so the wall thickens towards the top. Shell keeps the outer surface and grows the wall inward; a quarter is cut away with Difference so the wall can be seen.
Try
  • Change Output Min and Output Max to set the thinnest and thickest walls.
  • Switch the curve from the right-click menu: Smoothstep or Sigmoid gives a softer transition.
Download remap-values.gh4 KB · Rhino 8 · Morphé 1.0

Messages

What the component may report, shown as a balloon on the canvas.

LevelMessage
ErrorInput field is null.
ErrorInput Min and Input Max must differ (the input range cannot be zero-width).
ErrorSteepness must be greater than 0.
ErrorExponent must be greater than 0.
Written for Morphé 1.0 · Rhino 8