BenQ Mobile

javax.microedition.m3g
Class SkinnedMesh

java.lang.Object
  extended byjavax.microedition.m3g.Object3D
      extended byjavax.microedition.m3g.Transformable
          extended byjavax.microedition.m3g.Node
              extended byjavax.microedition.m3g.Mesh
                  extended byjavax.microedition.m3g.SkinnedMesh

public class SkinnedMesh
extends Mesh

A scene graph node that represents a skeletally animated polygon mesh.


Field Summary
 
Fields inherited from class javax.microedition.m3g.Node
NONE, ORIGIN, X_AXIS, Y_AXIS, Z_AXIS
 
Constructor Summary
SkinnedMesh(VertexBuffer vertices, IndexBuffer[] submeshes, Appearance[] appearances, Group skeleton)
          Constructs a new SkinnedMesh with the given vertices, submeshes and skeleton.
SkinnedMesh(VertexBuffer vertices, IndexBuffer submesh, Appearance appearance, Group skeleton)
          Constructs a new SkinnedMesh with the given vertices, submeshes and skeleton.
 
Method Summary
 void addTransform(Node bone, int weight, int firstVertex, int numVertices)
          Associates a weighted transformation, or "bone", with a range of vertices in this SkinnedMesh.
 Group getSkeleton()
          Returns the skeleton Group of this SkinnedMesh.
 
Methods inherited from class javax.microedition.m3g.Mesh
getAppearance, getIndexBuffer, getSubmeshCount, getVertexBuffer, setAppearance
 
Methods inherited from class javax.microedition.m3g.Node
align, getAlphaFactor, getParent, getScope, getTransformTo, isPickingEnabled, isRenderingEnabled, setAlignment, setAlphaFactor, setPickingEnable, setRenderingEnable, setScope
 
Methods inherited from class javax.microedition.m3g.Transformable
getCompositeTransform, getOrientation, getScale, getTransform, getTranslation, postRotate, preRotate, scale, setOrientation, setScale, setTransform, setTranslation, translate
 
Methods inherited from class javax.microedition.m3g.Object3D
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinnedMesh

public SkinnedMesh(VertexBuffer vertices,
                   IndexBuffer submesh,
                   Appearance appearance,
                   Group skeleton)
Constructs a new SkinnedMesh with the given vertices, submeshes and skeleton.


SkinnedMesh

public SkinnedMesh(VertexBuffer vertices,
                   IndexBuffer[] submeshes,
                   Appearance[] appearances,
                   Group skeleton)
Constructs a new SkinnedMesh with the given vertices, submeshes and skeleton.

Method Detail

getSkeleton

public Group getSkeleton()
Returns the skeleton Group of this SkinnedMesh.


addTransform

public void addTransform(Node bone,
                         int weight,
                         int firstVertex,
                         int numVertices)
Associates a weighted transformation, or "bone", with a range of vertices in this SkinnedMesh.


BenQ Mobile

Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner.
All Rights Reserved.
BenQ Corp. is a trademark licensee of Siemens AG.


For further information about Mobility Toolkit (MTK) visit our Developer Portal.