class ExpressionNS::Muscle

This class is the abstract base class that defines the interface for the animated muscles and channels.

Inheritance:


Public Fields

[more]ExpMeshAdapter* mesh
pointer to the mesh interface that the muscle minipulates
[more]std::string name
name of the muscle

Public Methods

[more]virtual void ActivateMuscle (const float val)
Contracts the muscle val ranges from 00 to infinity
[more]virtual void Draw (bool selected)
Draws the muscle with Opengl commands


Documentation

This class is the abstract base class that defines the interface for the animated muscles and channels. Java dudes might be familiar with the interface concept. Most of the muscles have very similar activities, I choose not to build a deeper class hierarchy around the code, due to fact that most real-time guys cringe at the some of the of the abstractions that I chosen to implement here. (see the mesh adapter for a good example of that)

Hopefully I've struck a decent balance between flexibility and speed. The most commonly used muscle is the linear muscle. More specialized is the limited muscle, used around the upper and lower lip. The limited muscle adds a path traversal algorithm to inside/outside test so that the lower lip doesn't get tagged with the upper lip and visa versa. The Eye and Circular muscles are currently the same code. The str (striated) is a linear muscle with a zeroed out x component to simulate the forehead. The cheek muscle deforms along the vertex normasl out based on the distance to the center of the muscle, still a little flaky. The head muscle is currently not used but was meant as a complement to the limited muscle.

oExpMeshAdapter* mesh
pointer to the mesh interface that the muscle minipulates

ostd::string name
name of the muscle

ovirtual void ActivateMuscle(const float val)
Contracts the muscle val ranges from 00 to infinity

ovirtual void Draw(bool selected)
Draws the muscle with Opengl commands


Direct child classes:
strMuscle
morphMuscle
linearMuscle
limitedMuscle
headMuscle
eyeMuscle
circularMuscle
cheekMuscle

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.