Isolines
Draws contour lines of the charges' field at several levels, like a topographic map.
Node id field/isolines
The Isolines node draws the contour lines of the same field as Metaballs: for each level, the line where the charges' combined influence equals it. Several levels around a few charges look like the contour lines of a hilly map.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| charges | Array<PointScalar> | — | |
| bounds | BoundingBox | — | |
| count | number | 5 | |
| min | number | 0.5 | |
| max | number | 2.5 | |
| levels | Array<number> | — | |
| cellSize | number | 4 | |
| falloff | MetaballFalloff | "inverse-square" | |
| smooth | boolean | false |
Outputs
| Name | Type | Notes |
|---|---|---|
| lines | Array<Renderable> | |
| levels | Array<number> |
Behaviour
- Levels.
countlevels evenly spaced frommintomax(both included; withcount1, justmin). Connect a list of numbers tolevels, for example from Range, to choose them yourself:count,minandmaxare then ignored. A level is a field value, so with a lone charge level 1 is at its radius, level 4 at half of it and level 0.25 at twice it. - Closed and open lines. A contour that stays inside
boundsis a closed Polygon with a transparent fill; one that runs off the edge is an open Polyline. Withsmoothon they're a ClosedSpline and a Spline instead. - Levels output.
levelshas one entry per line, the level it was drawn at, so lines can be styled by height, e.g. by mapping both lists through Map byindex. - Falloff, resolution, negative charges work as in Metaballs.
Errors
boundsmust be connected (for example from Page).countmust be a whole number from 1 to 100, and a connectedlevelslist can have at most 100 numbers; a non-finite level is a node error.- A non-finite charge, a
cellSizethat isn't positive, more than 250 000 grid cells or more than 1 000 charges are node errors.
Example
Five levels around three charges.
Related nodes
- Metaballs and contour lines: worked example.
- Zip Point Scalars: makes the charges from points and radii.
- Contour Series: concentric outlines of a shape instead of a field.