Tanoda
Leap.Unity.PolyFinger Class Reference
Inheritance diagram for Leap.Unity.PolyFinger:
Leap.Unity.FingerModel

Public Member Functions

override void InitFinger ()
 
override void UpdateFinger ()
 
- Public Member Functions inherited from Leap.Unity.FingerModel
void SetLeapHand (Hand hand)
 
Hand GetLeapHand ()
 
Finger GetLeapFinger ()
 
virtual void InitFinger ()
 
abstract void UpdateFinger ()
 
Vector3 GetTipPosition ()
 
Vector3 GetJointPosition (int joint)
 
Ray GetRay ()
 
Vector3 GetBoneCenter (int bone_type)
 
Vector3 GetBoneDirection (int bone_type)
 
Quaternion GetBoneRotation (int bone_type)
 
float GetBoneLength (int bone_type)
 
float GetBoneWidth (int bone_type)
 
float GetFingerJointStretchMecanim (int joint_type)
 
float GetFingerJointSpreadMecanim ()
 

Public Attributes

int sides = 4
 
bool smoothNormals = false
 
float startingAngle = 0.0f
 
float[] widths = new float[NUM_JOINTS]
 
- Public Attributes inherited from Leap.Unity.FingerModel
Finger.FingerType fingerType = Finger.FingerType.TYPE_INDEX
 
Transform[] bones = new Transform[NUM_BONES]
 
Transform[] joints = new Transform[NUM_BONES - 1]
 

Protected Member Functions

Quaternion GetJointRotation (int joint)
 
void InitJointVertices ()
 
void UpdateMesh ()
 
void UpdateCapMesh ()
 
void InitMesh ()
 
void InitCapsMesh ()
 

Protected Attributes

Vector3[] vertices_
 
Vector3[] normals_
 
Vector3[] joint_vertices_
 
Mesh mesh_
 
Mesh cap_mesh_
 
Vector3[] cap_vertices_
 
- Protected Attributes inherited from Leap.Unity.FingerModel
Hand hand_
 
Finger finger_
 

Additional Inherited Members

- Static Public Attributes inherited from Leap.Unity.FingerModel
const int NUM_BONES = 4
 
const int NUM_JOINTS = 3
 

Detailed Description

Draws the bones of the finger as a polygonal tube.

Definition at line 16 of file PolyFinger.cs.

Member Function Documentation

◆ GetJointRotation()

Quaternion Leap.Unity.PolyFinger.GetJointRotation ( int  joint)
protected

Definition at line 84 of file PolyFinger.cs.

◆ InitCapsMesh()

void Leap.Unity.PolyFinger.InitCapsMesh ( )
protected

Definition at line 206 of file PolyFinger.cs.

◆ InitFinger()

override void Leap.Unity.PolyFinger.InitFinger ( )
virtual

Creates the finger mesh.

Reimplemented from Leap.Unity.FingerModel.

Definition at line 39 of file PolyFinger.cs.

◆ InitJointVertices()

void Leap.Unity.PolyFinger.InitJointVertices ( )
protected

Definition at line 93 of file PolyFinger.cs.

◆ InitMesh()

void Leap.Unity.PolyFinger.InitMesh ( )
protected

Definition at line 164 of file PolyFinger.cs.

◆ UpdateCapMesh()

void Leap.Unity.PolyFinger.UpdateCapMesh ( )
protected

Definition at line 146 of file PolyFinger.cs.

◆ UpdateFinger()

override void Leap.Unity.PolyFinger.UpdateFinger ( )
virtual

Updates the mesh.

Implements Leap.Unity.FingerModel.

Definition at line 49 of file PolyFinger.cs.

◆ UpdateMesh()

void Leap.Unity.PolyFinger.UpdateMesh ( )
protected

Definition at line 101 of file PolyFinger.cs.

Member Data Documentation

◆ cap_mesh_

Mesh Leap.Unity.PolyFinger.cap_mesh_
protected

Definition at line 35 of file PolyFinger.cs.

◆ cap_vertices_

Vector3 [] Leap.Unity.PolyFinger.cap_vertices_
protected

Definition at line 36 of file PolyFinger.cs.

◆ joint_vertices_

Vector3 [] Leap.Unity.PolyFinger.joint_vertices_
protected

Definition at line 32 of file PolyFinger.cs.

◆ mesh_

Mesh Leap.Unity.PolyFinger.mesh_
protected

Definition at line 34 of file PolyFinger.cs.

◆ normals_

Vector3 [] Leap.Unity.PolyFinger.normals_
protected

Definition at line 31 of file PolyFinger.cs.

◆ sides

int Leap.Unity.PolyFinger.sides = 4

The number of sides for finger tube.

Definition at line 23 of file PolyFinger.cs.

◆ smoothNormals

bool Leap.Unity.PolyFinger.smoothNormals = false

Whether to smooth the mesh normals, providing a smoother appearance.

Definition at line 25 of file PolyFinger.cs.

◆ startingAngle

float Leap.Unity.PolyFinger.startingAngle = 0.0f

Definition at line 26 of file PolyFinger.cs.

◆ vertices_

Vector3 [] Leap.Unity.PolyFinger.vertices_
protected

Definition at line 30 of file PolyFinger.cs.

◆ widths

float [] Leap.Unity.PolyFinger.widths = new float[NUM_JOINTS]

An array containing the width of the finger at each joint.

Definition at line 28 of file PolyFinger.cs.


The documentation for this class was generated from the following file: