What is it?
A subclass of the Open Inventor SoField class used to contain a
uniformly regularly gridded scalar field, including it dimensions and bounding box.
How to use it
Once the source code
has been downloaded and compiled, the field can be used. I do not usually
create fields which are not part of a node, but if to create a field not
connected to a node you must register it with the database. Example:
SFScalarField *sfield = (SFScalarField *)
SoDB::createGlobalField("ScalarField",
SFScalarField::getClassTypeId());
This creates a global field and can be connected to other fields and vice
versa.
|