
The surfaces are defined by the local gradient at the position of the proxy, so no iso-value can be specified. The strength transfer function specify the surface strength as a function of the scalar value of the volume, which provides means to specify which data of the volume that should produce haptic feedback. Friction is used in a similar way.
The distinctness function is used to control the strength of surfaces from the gradient magnitude. Since zero magnitude gradient should render no surface this function must start at zero for an input of zero.
X3D Interface | ||||
| Name | Type | Default value | Description | |
![]() | strength | SFTransferFunction | null | The surface strength |
![]() | friction | SFTransferFunction | null | The surface friction |
![]() | distinctness | SFTransferFunction | null | The surface distinctness as a function of the gradient magnitude |
| Derived from VHTKScalarModeNode | ||||
![]() | scalarVolume | SFScalarVolume | null | The volume to specify surfaces and material properties from |
| Derived from VHTKHapticModeNode | ||||
![]() | active | SFBool | true | Specifies if this haptic mode should be active or not |
Public Member Functions | |
| ScalarSurfaceFrictionMode () | |
| Initializes the internal data. | |
| void | getPrimitives (primitives_t &r, const state &s) |
| System function. | |
| void | initialize () |
| Initializes node functionality. | |
Public Attributes | |
| auto_ptr < H3D::ThreadSafeRefSField < SFTransferFunction > > | strength |
| The surface strength. | |
| auto_ptr < H3D::ThreadSafeRefSField < SFTransferFunction > > | friction |
| The surface friction. | |
| auto_ptr < H3D::ThreadSafeRefSField < SFTransferFunction > > | distinctness |
| The surface distinctness as a function of the gradient magnitude. | |
| auto_ptr < H3D::ThreadSafeSField < H3D::SFBool > > | snapdrag |
| Use snapdrag effect. | |
Static Public Attributes | |
| static H3D::H3DNodeDatabase | database |
| X3D interface function. | |
| VHTK::ScalarSurfaceFrictionMode::ScalarSurfaceFrictionMode | ( | ) |
Initializes the internal data.
| void VHTK::ScalarSurfaceFrictionMode::getPrimitives | ( | primitives_t & | r, | |
| const state & | s | |||
| ) | [virtual] |
| void VHTK::ScalarSurfaceFrictionMode::initialize | ( | ) | [virtual] |
| auto_ptr< H3D::ThreadSafeRefSField< SFTransferFunction > > VHTK::ScalarSurfaceFrictionMode::strength |
The surface strength.
| auto_ptr< H3D::ThreadSafeRefSField< SFTransferFunction > > VHTK::ScalarSurfaceFrictionMode::friction |
The surface friction.
| auto_ptr< H3D::ThreadSafeRefSField< SFTransferFunction > > VHTK::ScalarSurfaceFrictionMode::distinctness |
The surface distinctness as a function of the gradient magnitude.
Use snapdrag effect.
1.5.6