|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.rico.engine.geometry.AbstractMesh
de.rico.engine.geometry.MeshDL
de.rico.engine.geometry.modelloader.threeds.Model3DS
public class Model3DS
This class represents a 3DS (3D Studio Max) model. This model does support static models only. You can't animate the model. Basic loader technology found at the joglutils project: https://joglutils.dev.java.net/
Constructor Summary | |
---|---|
Model3DS(boolean smooth)
Creates a new 3DS model mesh, optionally shaded smoothly. |
|
Model3DS(boolean smooth,
BoundingVolume type)
Creates a new 3DS mesh object, optionally smooth shaded. |
Method Summary | |
---|---|
java.lang.String |
getFilePath()
Returns the file path of the model file used. |
void |
load(java.lang.String modelFile,
float scale)
This method loads a model from the specified file. |
Methods inherited from class de.rico.engine.geometry.MeshDL |
---|
addFace, destroy, draw, finishModel, getDisplayListId, getFaces, getFacesTransformed, specializedDraw, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Model3DS(boolean smooth)
smooth
- shade mesh smoothly? --> true=yes, false=nopublic Model3DS(boolean smooth, BoundingVolume type)
smooth
- shade mesh smoothly? --> true=yes, false=notype
- value from the BoundingVolume enumerationMethod Detail |
---|
public java.lang.String getFilePath()
ImportableModelIface
getFilePath
in interface ImportableModelIface
public void load(java.lang.String modelFile, float scale)
ImportableModelIface
load
in interface ImportableModelIface
modelFile
- path to the model filescale
- scale factor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |