RBF Scalar Field

https://github.com/nortikin/sverchok/assets/14288520/7b7cc987-f48d-40b5-886b-4f716f3b916b

Dependencies

This node optionally uses SciPy library to work.

Functionality

This node generates a Scalar Field for given set of points in 3D space and corresponding scalar field values, by use of RBF method. Depending on node parameters, the field can be interpolating, i.e. have exactly the provided values in the provided points, or only approximating.

https://github.com/nortikin/sverchok/assets/14288520/05f3c475-dd46-43db-8e48-f1ef383f8dc9

Inputs

This node has the following inputs:

  • Vertices. The set of points where the values of scalar fields are known. This input is mandatory.

  • Values. Values of the scalar field in the specified points. This input is mandatory.

https://github.com/nortikin/sverchok/assets/14288520/51175cf8-c62b-4d49-a73d-cbe9a36dd67e
  • Epsilon. Epsilon parameter of used RBF function; it affects the shape of generated field. The default value is 1.0.

  • Smooth. Smoothness parameter of used RBF function. If this is zero, then the field will have exactly the specified values in all provided points; otherwise, it will be only an approximating field. The default value is 0.0.

Parameters

This node has the following parameter:

  • Function. The specific function used by the node. The available values are:

    • Multi Quadric

    • Inverse

    • Gaussian

    • Cubic

    • Quintic

    • Thin Plate

    The default function is Multi Quadric.

Outputs

This node has the following output:

  • Field. The generated scalar field.

Example of usage

The field is generated by following data:

  • In the origin, it has value of 0;

  • In eight vertices of 2x2x2 cube, it has the value of 2;

  • In the vertices of 4x4x4 cube, it has the value of 4.

https://user-images.githubusercontent.com/284644/87240833-7f39e480-c436-11ea-9706-d7e55849c136.png

Let’s move the smaller cube slightly and generate an iso-surface instead of iso-curves:

https://user-images.githubusercontent.com/284644/87240927-4ea67a80-c437-11ea-9b36-04b56a6ae696.png
https://github.com/nortikin/sverchok/assets/14288520/055dc1d2-6c59-4568-b095-52b74ac27d52 https://github.com/nortikin/sverchok/assets/14288520/9d961a3f-3962-431e-a1d2-408d6664190f