Divooka Reference

Cell Based Terrain

33 nodes

On this page 33

Add To Attribute

Function

This node carries no documentation.

Signature
AddToAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    value: Number
CellBasedTerrain AddToAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double value)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
valueNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Apply Mask

Function

This node carries no documentation.

Signature
ApplyMask -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    targetAttributeName: Text
    modifiedAttributeName: Text
    maskAttributeName: Text
CellBasedTerrain ApplyMask(
    CellBasedTerrain Cell Based Terrain,
    string targetAttributeName,
    string modifiedAttributeName,
    string maskAttributeName)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
targetAttributeNameText—
modifiedAttributeNameText—
maskAttributeNameText—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Blend Attributes

Function

This node carries no documentation.

Signature
BlendAttributes -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    outputAttributeName: Text
    aAttributeName: Text
    bAttributeName: Text
    weight: Number
CellBasedTerrain BlendAttributes(
    CellBasedTerrain Cell Based Terrain,
    string outputAttributeName,
    string aAttributeName,
    string bAttributeName,
    double weight)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
outputAttributeNameText—
aAttributeNameText—
bAttributeNameText—
weightNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Calculate Slope

Function

This node carries no documentation.

Signature
CalculateSlope -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    outputAttributeName: Text
    elevationAttributeName: Text
CellBasedTerrain CalculateSlope(
    CellBasedTerrain Cell Based Terrain,
    string outputAttributeName = "Slope",
    string elevationAttributeName = "Elevation")

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
outputAttributeNameTextSlope
elevationAttributeNameTextElevation

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Clamp Attribute

Function

This node carries no documentation.

Signature
ClampAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    min: Number
    max: Number
CellBasedTerrain ClampAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double min,
    double max)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
minNumber—
maxNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Combine Attributes

Function

This node carries no documentation.

Signature
CombineAttributes -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    outputAttributeName: Text
    aAttributeName: Text
    bAttributeName: Text
    combiner: Func<Number, Number, Number>
CellBasedTerrain CombineAttributes(
    CellBasedTerrain Cell Based Terrain,
    string outputAttributeName,
    string aAttributeName,
    string bAttributeName,
    Func<double, double, double> combiner)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
outputAttributeNameText—
aAttributeNameText—
bAttributeNameText—
combinerFunc<Number, Number, Number>—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Create Mask

Function

This node carries no documentation.

Signature
CreateMask -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    outputAttributeName: Text
    sourceAttributeName: Text
    min: Number
    max: Number
    falloff: Number
CellBasedTerrain CreateMask(
    CellBasedTerrain Cell Based Terrain,
    string outputAttributeName,
    string sourceAttributeName,
    double min,
    double max,
    double falloff = 0)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
outputAttributeNameText—
sourceAttributeNameText—
minNumber—
maxNumber—
falloffNumber0

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Attribute Names

Function

This node carries no documentation.

Signature
AttributeNames(Cell Based Terrain: Cell Based Terrain) -> IReadOnlyCollection<Text>
IReadOnlyCollection<string> AttributeNames(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultIReadOnlyCollection<Text>
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Cell Count

Function

This node carries no documentation.

Signature
CellCount(Cell Based Terrain: Cell Based Terrain) -> Integer
int CellCount(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Columns

Function

This node carries no documentation.

Signature
Columns(Cell Based Terrain: Cell Based Terrain) -> Integer
int Columns(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Has Elevation

Function

This node carries no documentation.

Signature
HasElevation(Cell Based Terrain: Cell Based Terrain) -> Truth
bool HasElevation(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Physical Scale

Function

Meters per grid cell.
Applies to horizontal X/Y cell spacing, not vertical elevation.

Signature
PhysicalScale(Cell Based Terrain: Cell Based Terrain) -> Number
double PhysicalScale(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Rows

Function

This node carries no documentation.

Signature
Rows(Cell Based Terrain: Cell Based Terrain) -> Integer
int Rows(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Attribute Copy

Function

This node carries no documentation.

Signature
GetAttributeCopy -> Number Array
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
double[] GetAttributeCopy(
    CellBasedTerrain Cell Based Terrain,
    string attributeName)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—

Returns

resultNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Attribute Info

Function

This node carries no documentation.

Signature
GetAttributeInfo -> Cell Terrain Attribute Info
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
CellTerrainAttributeInfo GetAttributeInfo(
    CellBasedTerrain Cell Based Terrain,
    string attributeName)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—

Returns

resultCell Terrain Attribute Info
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Coordinate

Function

This node carries no documentation.

Signature
GetCoordinate -> (Integer, Integer)
    Cell Based Terrain: Cell Based Terrain
    index: Integer
(int, int) GetCoordinate(
    CellBasedTerrain Cell Based Terrain,
    int index)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
indexInteger—

Returns

result(Integer, Integer)
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Elevation

Function

This node carries no documentation.

Signature
GetElevation -> Number
    Cell Based Terrain: Cell Based Terrain
    x: Integer
    y: Integer
double GetElevation(
    CellBasedTerrain Cell Based Terrain,
    int x,
    int y)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
xInteger—
yInteger—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Index

Function

This node carries no documentation.

Signature
GetIndex -> Integer
    Cell Based Terrain: Cell Based Terrain
    x: Integer
    y: Integer
int GetIndex(CellBasedTerrain Cell Based Terrain, int x, int y)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
xInteger—
yInteger—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Get Value

Function

This node carries no documentation.

Overload 1 of 2

Signature
GetValue -> Number
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    index: Integer
double GetValue(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int index)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
indexInteger—

Returns

resultNumber

Overload 2 of 2

Signature
GetValue -> Number
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    x: Integer
    y: Integer
double GetValue(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int x,
    int y)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
xInteger—
yInteger—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Has Attribute

Function

This node carries no documentation.

Signature
HasAttribute -> Truth
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
bool HasAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Modify Attribute

Function

This node carries no documentation.

Overload 1 of 2

Signature
ModifyAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    modifier: Func<Number, Number>
CellBasedTerrain ModifyAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    Func<double, double> modifier)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
modifierFunc<Number, Number>—

Returns

resultCell Based Terrain

Overload 2 of 2

Signature
ModifyAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    modifier: Func<Number, Integer, Integer, Integer, Number>
CellBasedTerrain ModifyAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    Func<double, int, int, int, double> modifier)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
modifierFunc<Number, Integer, Integer, Integer, Number>—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Multiply Attribute

Function

This node carries no documentation.

Signature
MultiplyAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    value: Number
CellBasedTerrain MultiplyAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double value)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
valueNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Normalize Attribute

Function

This node carries no documentation.

Signature
NormalizeAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    newMin: Number
    newMax: Number
CellBasedTerrain NormalizeAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double newMin = 0,
    double newMax = 1)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
newMinNumber0
newMaxNumber1

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Remove Attribute

Function

This node carries no documentation.

Signature
RemoveAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    keepCoreAttributes: Truth
CellBasedTerrain RemoveAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    bool keepCoreAttributes = true)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
keepCoreAttributesTruthTrue

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Rename Attribute

Function

This node carries no documentation.

Signature
RenameAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    oldName: Text
    newName: Text
    overwrite: Truth
CellBasedTerrain RenameAttribute(
    CellBasedTerrain Cell Based Terrain,
    string oldName,
    string newName,
    bool overwrite = false)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
oldNameText—
newNameText—
overwriteTruthFalse

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Smooth Attribute

Function

This node carries no documentation.

Signature
SmoothAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    radius: Integer
    strength: Number
CellBasedTerrain SmoothAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int radius = 1,
    double strength = 1)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
radiusInteger1
strengthNumber1

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Summarize

Function

This node carries no documentation.

Signature
Summarize(Cell Based Terrain: Cell Based Terrain) -> Text
string Summarize(CellBasedTerrain Cell Based Terrain)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

To Jagged Array

Function

This node carries no documentation.

Signature
ToJaggedArray -> Number Array Array
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
double[][] ToJaggedArray(
    CellBasedTerrain Cell Based Terrain,
    string attributeName)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—

Returns

resultNumber Array Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Try Get Value

Function

This node carries no documentation.

Signature
TryGetValue -> (result: Truth, value: Number)
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    index: Integer
bool TryGetValue(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int index,
    out double value)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
indexInteger—

Returns

resultTruth
valueNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

With Attribute

Function

Overload 1 of 3

Signature
WithAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    values: Number Array
CellBasedTerrain WithAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double[] values)

Adds or replaces an attribute.

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
valuesNumber Array—

Returns

resultCell Based Terrain

Overload 2 of 3

Signature
WithAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    valueFactory: Func<Integer, Integer, Integer, Number>
CellBasedTerrain WithAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    Func<int, int, int, double> valueFactory)

Adds or replaces an attribute using a value factory.

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
valueFactoryFunc<Integer, Integer, Integer, Number>—

Returns

resultCell Based Terrain

Overload 3 of 3

Signature
WithAttribute -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    value: Number
CellBasedTerrain WithAttribute(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    double value)

Adds or replaces an attribute with a constant value.

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
valueNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

With Value

Function

This node carries no documentation.

Overload 1 of 2

Signature
WithValue -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    index: Integer
    value: Number
CellBasedTerrain WithValue(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int index,
    double value)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
indexInteger—
valueNumber—

Returns

resultCell Based Terrain

Overload 2 of 2

Signature
WithValue -> Cell Based Terrain
    Cell Based Terrain: Cell Based Terrain
    attributeName: Text
    x: Integer
    y: Integer
    value: Number
CellBasedTerrain WithValue(
    CellBasedTerrain Cell Based Terrain,
    string attributeName,
    int x,
    int y,
    double value)

Parameters

nametypedefaultdescription
Cell Based TerrainCell Based Terrain—
attributeNameText—
xInteger—
yInteger—
valueNumber—

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

Create

Function

Creates a flat terrain with ID, X, Y, and Elevation attributes.

Signature
Create -> Cell Based Terrain
    columns: Integer
    rows: Integer
    elevation: Number
    physicalScale: Number
CellBasedTerrain Create(
    int columns,
    int rows,
    double elevation = 0,
    double physicalScale = 1)

Parameters

nametypedefaultdescription
columnsInteger—
rowsInteger—
elevationNumber0
physicalScaleNumber1

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation

From Elevation

Function

Overload 1 of 2

Signature
FromElevation -> Cell Based Terrain
    columns: Integer
    rows: Integer
    elevation: Number Array
    physicalScale: Number
CellBasedTerrain FromElevation(
    int columns,
    int rows,
    double[] elevation,
    double physicalScale = 1)

Creates a terrain from row-major elevation data.

Parameters

nametypedefaultdescription
columnsInteger—
rowsInteger—
elevationNumber Array—
physicalScaleNumber1

Returns

resultCell Based Terrain

Overload 2 of 2

Signature
FromElevation -> Cell Based Terrain
    elevation: Number Array Array
    physicalScale: Number
CellBasedTerrain FromElevation(
    double[][] elevation,
    double physicalScale = 1)

Creates a terrain from jagged elevation data.

Parameters

nametypedefaultdescription
elevationNumber Array Array—
physicalScaleNumber1

Returns

resultCell Based Terrain
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Cell Based Terrain
Package
Procedural Generation