|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmri.v3ds.Mesh3ds
public class Mesh3ds
Mesh object.
A mesh object in 3D Studio consists of a set of faces (triangles).
The faces are assigned materials and can be texture mapped.
The position, rotation, scaling, etc. are controlled by the
keyframer tracks.
The Mesh3ds class contains the following data that is read
from the 3D-editor part of the 3ds-file:
- Mesh name
- An array of vertices
- An array of texture mapping coordinates
- Texture mapping U and V tiling parameter
- Texture mapping type
- An array of faces
- An array of smmothing group parameters
- Matrix for moving the mesh frown world to object space
- A set of face material assignment objects
The following data is from the keyframer:
- Node id in the object hierarchy
- Parent node id in the object hierarchy
- Node flags
- Position spline track
- Rotation spline track
- Scale spline track
- Morph spline track
- Hide track
| Field Summary | |
|---|---|
static int |
CYLINDRICAL_MAP
Texture mapping was done using Cylindrical mapping. |
static int |
PLANAR_MAP
Texture mapping was done using Planar mapping. |
static int |
SPHERICAL_MAP
Texture mapping was done using Spherical mapping. |
| Constructor Summary | |
|---|---|
Mesh3ds()
|
|
| Method Summary | |
|---|---|
Face3ds |
face(int i)
Access a specific face. |
Face3ds[] |
faceArray()
Access the whole array of faces. |
FaceMat3ds |
faceMat(int i)
Access a specific face material. |
int |
faceMats()
Get number of face materials. |
int |
faces()
Get number of faces. |
HideTrack3ds |
hide()
Access hide track. |
MorphTrack3ds |
morph()
Access morph spline track. |
java.lang.String |
name()
Get mesh name. |
int |
nodeFlags()
Get node flags. |
int |
nodeId()
Get node id. |
int |
parentNodeId()
Get parent node id. |
Vertex3ds |
pivot()
Get pivot point. |
XYZTrack3ds |
position()
Access position spline track. |
RotationTrack3ds |
rotation()
Access rotation spline track. |
XYZTrack3ds |
scale()
Access scale spline track. |
int |
smoothEntry(int i)
Access a specific smoothing group entry. |
int[] |
smoothEntryArray()
Access the whole array of smoothing group entrys. |
int |
smoothEntrys()
Get number of smoothing group entrys. |
TexCoord3ds |
texCoord(int i)
Access a specific texture mapping coordinate. |
TexCoord3ds[] |
texCoordArray()
Access the whole array of texture mapping coordinates. |
int |
texCoords()
Get number of texture mapping coordinates. |
int |
texMapType()
Get texture mapping type used while mapping this mesh. |
float |
texUTile()
Get texture mapping U tiling parameter. |
float |
texVTile()
Get texture mapping V tiling parameter. |
Vertex3ds |
vertex(int i)
Acces a specific vertex in the vertex array. |
Vertex3ds[] |
vertexArray()
Access the whole array of vertices. |
int |
vertices()
Get number of vertices. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PLANAR_MAP
texMapType().
public static final int CYLINDRICAL_MAP
texMapType().
public static final int SPHERICAL_MAP
texMapType().
| Constructor Detail |
|---|
public Mesh3ds()
| Method Detail |
|---|
public java.lang.String name()
public int vertices()
public Vertex3ds vertex(int i)
i - index into vertex array [0 ... vertices()-1]
public Vertex3ds[] vertexArray()
public int texCoords()
public TexCoord3ds texCoord(int i)
i - index into texture mapping array [0 ... texCoords()-1]
public TexCoord3ds[] texCoordArray()
public float texUTile()
public float texVTile()
public int texMapType()
PLANAR_MAP,
SYLINDRICAL_MAP and SPHERICAL_MAP.
public int faces()
public Face3ds face(int i)
i - index into face array [0 ... faces()-1]
public Face3ds[] faceArray()
public int faceMats()
public FaceMat3ds faceMat(int i)
i - index into face material array [0 ... faceMats()-1]
public int smoothEntrys()
public int smoothEntry(int i)
i - index into smoothing group entry array [0 ... smoothEntrys()-1]
public int[] smoothEntryArray()
public int nodeId()
public int parentNodeId()
public int nodeFlags()
public Vertex3ds pivot()
public XYZTrack3ds position()
public RotationTrack3ds rotation()
public XYZTrack3ds scale()
public MorphTrack3ds morph()
public HideTrack3ds hide()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||