#include <CoordinateDeformer.h>
Inheritance diagram for H3D::CoordinateDeformer:

Public Types | |
| typedef TypedSFNode< H3DFunctionNode > | SFFunctionNode |
Public Member Functions | |
| CoordinateDeformer (Inst< SFFunctionNode > _distanceToDepth=0, Inst< SFFloat > _plasticity=0) | |
| Constructor. | |
| virtual void | deformPoints (const vector< bool > &is_touched, const vector< Vec3f > &touch_point, const vector< Vec3f > &touch_normal, const vector< Vec3f > &touch_force, const vector< Vec3f > &penetration_points, const vector< Vec3f > &orig_points, const vector< Vec3f > &resting_points, const vector< Vec3f > &deformed__points, vector< Vec3f > &new_resting_points, vector< Vec3f > &new_deformed_points) |
| The deformation of the points will be calculated depending on the distanceToDepth field and the plasticity field. | |
Public Attributes | |
| auto_ptr< SFFunctionNode > | distanceToDepth |
| The distanceToDepth field specifies a function from the distance from the point of contact to the depth of the deformation. | |
| auto_ptr< SFFloat > | plasticity |
| The plasticity field defines the plasticity. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
Protected Attributes | |
| bool | touched_last_time |
The distanceToDepth field specifies a function from the distance from the point of contact to the depth of the deformation. The depth is defined as a float 0 is no deformation at all, and 1 will result in a deformation that is as deep as penetration depth of the surface (i.e. the distance the haptics device has penetrated the surface.
The plasticity field defines the plasticity. 0 means that the deformation is non-plastic (resting points will not be changed) and 1 means that it is fully plasting (resting points will be the same as deformed points)
|
|
The distanceToDepth field specifies a function from the distance from the point of contact to the depth of the deformation. The depth is defined as a float 0 is no deformation at all, and 1 will result in a deformation that is as deep as penetration depth of the surface (i.e. the distance the haptics device has penetrated the surface. Access type: inputOutput |
|
|
The plasticity field defines the plasticity. 0 means that the deformation is non-plastic (resting points will not be changed) and 1 means that it is fully plasting (resting points will be the same as deformed points) Access type: inputOutput Default value: 0.0 |
1.4.5