The node positions
The indices of the triangles
The init value tells what kind of data we are going to diffuse. This can be
either a scalar or an array of any size. The size of the array will be the itemSize
of the
returned Serie after calling solve()
The itemSize
of the returned Serie (after calling solve()
) will be the length of this array,
or 1 if a number is passed.
Solve the discrete laplace equation using relaxation
A DataFrame containing positions, indices series as well as the computed "property"
as a serie.
If record=true
, a serie will be recorded every step
. If step=0
, only the begining step is recorded.
Optional
name?: stringOptional
record?: booleanOptional
step?: number
Use Laplace equation to diffuse an attribute (number or Array) given
some constraints at nodes on triangulated surface.
Example
Diffuse a scalar field
Example
Diffuse a vector field of size 3