H3D::CoordinateDeformer Class Reference
[H3D specific Node classes.]

The CoordinateDeformer uses a H3DFunctionNode to determine the deformation. More...

#include <CoordinateDeformer.h>

Inheritance diagram for H3D::CoordinateDeformer:

Inheritance graph
List of all members.

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< SFFunctionNodedistanceToDepth
 The distanceToDepth field specifies a function from the distance from the point of contact to the depth of the deformation.
auto_ptr< SFFloatplasticity
 The plasticity field defines the plasticity.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Protected Attributes

bool touched_last_time

Detailed Description

The CoordinateDeformer uses a H3DFunctionNode to determine the deformation.

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)


Member Data Documentation

auto_ptr< SFFunctionNode > H3D::CoordinateDeformer::distanceToDepth
 

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

auto_ptr< SFFloat > H3D::CoordinateDeformer::plasticity
 

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


Generated on Thu Aug 24 12:38:57 2006 for H3D API by  doxygen 1.4.5