|
Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
[← Previous Example] [Next Example → 020-CreateBundleAndSave.cpp ]. More...
#include <fiber/bundle/Bundle.hpp>#include <fiber/finit/FinitAPI.h>#include <fiber/field/ArrayRef.hpp>#include <fiber/field/UniformCartesianArray.hpp>Functions | |
| int | main () |
| Creating an (unfragmented) uniform grid with a scalar field. | |
[← Previous Example] [Next Example → 020-CreateBundleAndSave.cpp ].
| int main | ( | ) |
Creating an (unfragmented) uniform grid with a scalar field.
Create a grid of size 31x43x17 at time 0.0 named "DemoGrid" with bounding box [-1.0, -1.0, -0.5]x[1.0, 1.0, 0.5] and add a field named "Values" of type double . For demonstration purposes, compute some values from the coordinates on each point of this field using x^2+y^2+z^2.