
This volume is not limited in space as the sampled volumes are.
Observe that the vector field magnitude is extremely large close to the singularities and also that the singularities are singularities.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | point | MFVec3f | [] | The positions of the potentials |
![]() | potential | MFFloat | [] | The potentials of the points |
![]() | maxScalar | SFFloat | 0 | A roof for the potential in the volume |
![]() | maxMagnitude | SFFloat | 0 | A roof for the gradient magnitude in the volume |
| Derived from VHTKScalarFieldNode | ||||
![]() | size | SFVec3f | (2,2,2) | The size of this volume |
Public Member Functions | |
| ScalarElectroPotentialField (H3D::Inst< H3D::SFNode > _metadata=0, H3D::Inst< H3D::Field > _dataChanged=0, H3D::Inst< H3D::SFBool > _scaleVectors=0, H3D::Inst< H3D::SFVec3f > _size=0, H3D::Inst< H3D::MFVec3f > _point=0, H3D::Inst< H3D::MFFloat > _potential=0, H3D::Inst< H3D::SFFloat > _maxScalar=0, H3D::Inst< H3D::SFFloat > _maxMagnitude=0) | |
| Constructor. | |
| virtual float | getScalar (const H3D::Matrix4f &T, const H3D::Vec3f &x) |
| Get the scalar value at a given position in space. | |
| virtual H3D::Vec3f | getGradient (const H3D::Matrix4f &T, const H3D::Vec3f &x) |
| Get the voxel value at a given position in space. | |
Public Attributes | |
| auto_ptr< H3D::MFVec3f > | point |
| The position of the potentials. | |
| auto_ptr< H3D::MFFloat > | potential |
| The potential of the points. | |
| auto_ptr< H3D::SFFloat > | maxScalar |
| The maximum potential in the volume. | |
| auto_ptr< H3D::SFFloat > | maxMagnitude |
| The maximum gradient magnitude in the volume. | |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
| VHTK::ScalarElectroPotentialField::ScalarElectroPotentialField | ( | H3D::Inst< H3D::SFNode > | _metadata = 0, |
|
| H3D::Inst< H3D::Field > | _dataChanged = 0, |
|||
| H3D::Inst< H3D::SFBool > | _scaleVectors = 0, |
|||
| H3D::Inst< H3D::SFVec3f > | _size = 0, |
|||
| H3D::Inst< H3D::MFVec3f > | _point = 0, |
|||
| H3D::Inst< H3D::MFFloat > | _potential = 0, |
|||
| H3D::Inst< H3D::SFFloat > | _maxScalar = 0, |
|||
| H3D::Inst< H3D::SFFloat > | _maxMagnitude = 0 | |||
| ) |
Constructor.
| virtual float VHTK::ScalarElectroPotentialField::getScalar | ( | const H3D::Matrix4f & | T, | |
| const H3D::Vec3f & | x | |||
| ) | [virtual] |
Get the scalar value at a given position in space.
| T | is the transforation matrix from local space to the space the volume data is specified in. | |
| x | is the local position in space. |
Implements VHTK::VHTKScalarDataNode.
| virtual H3D::Vec3f VHTK::ScalarElectroPotentialField::getGradient | ( | const H3D::Matrix4f & | T, | |
| const H3D::Vec3f & | x | |||
| ) | [virtual] |
Get the voxel value at a given position in space.
| T | is the transforation matrix from local space to the space the volume data is specified in. | |
| x | is the local position in space. |
Reimplemented from VHTK::VHTKScalarFieldNode.
| auto_ptr< H3D::MFVec3f > VHTK::ScalarElectroPotentialField::point |
The position of the potentials.
The potential of the points.
The maximum potential in the volume.
The maximum gradient magnitude in the volume.
1.5.6