endrov.typeMesh3d
Class Mesh3D

java.lang.Object
  extended by endrov.data.EvContainer
      extended by endrov.data.EvObject
          extended by endrov.typeMesh3d.Mesh3D

public class Mesh3D
extends EvObject

3D meshes


Nested Class Summary
static class Mesh3D.Face
          Instance *
 
Field Summary
 java.util.List<Mesh3D.Face> faces
           
 java.util.List<javax.vecmath.Vector3d> normal
           
 java.util.List<javax.vecmath.Vector3d> texcoord
           
 java.util.List<javax.vecmath.Vector3d> vertex
           
 
Fields inherited from class endrov.data.EvContainer
author, containerIcon, coreMetadataModified, dateCreate, dateLastModify, isGeneratedData, metaObject, ostBlobID
 
Constructor Summary
Mesh3D()
           
 
Method Summary
 void buildMetamenu(javax.swing.JMenu menu, EvContainer parentObject)
          Attach menu entries specific for this type of object
 void calcNormals()
           
 EvObject cloneEvObject()
          Get a deep copy of the object, not including children
static Mesh3D generateTestModel()
           
 BoundingBox3D getBoundingBox()
           
 java.lang.String getMetaTypeDesc()
          Human readable name
 javax.vecmath.Vector3d getVertexAverage()
          Get average position of all vertices
static void initPlugin()
          Plugin declaration
 void loadMetadata(org.jdom.Element e)
          Unserialize object
 void makeAllFacesSmooth()
          Make all faces smooth together
 void pruneUnusedNormals()
           
 void pruneUnusedTexcoord()
           
 void pruneUnusedVertices()
          Remove unused vertices
 java.lang.String saveMetadata(org.jdom.Element e)
          Serialize object
 
Methods inherited from class endrov.data.EvObject
cloneEvObjectRecursive, cloneUsingSerialize, getContainerIcon
 
Methods inherited from class endrov.data.EvContainer
addMetaObject, getChild, getChildNames, getFreeChildName, getIdObjects, getIdObjectsRecursive, getMetaContainer, getMetaObject, getObjects, isMetadataModified, putChild, removeMetaObjectByValue, setMetadataModified, setMetadataNotModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

faces

public java.util.List<Mesh3D.Face> faces

vertex

public java.util.List<javax.vecmath.Vector3d> vertex

texcoord

public java.util.List<javax.vecmath.Vector3d> texcoord

normal

public java.util.List<javax.vecmath.Vector3d> normal
Constructor Detail

Mesh3D

public Mesh3D()
Method Detail

generateTestModel

public static Mesh3D generateTestModel()

calcNormals

public void calcNormals()

makeAllFacesSmooth

public void makeAllFacesSmooth()
Make all faces smooth together


buildMetamenu

public void buildMetamenu(javax.swing.JMenu menu,
                          EvContainer parentObject)
Description copied from class: EvObject
Attach menu entries specific for this type of object

Specified by:
buildMetamenu in class EvObject
parentObject - TODO

getMetaTypeDesc

public java.lang.String getMetaTypeDesc()
Description copied from class: EvObject
Human readable name

Specified by:
getMetaTypeDesc in class EvObject

loadMetadata

public void loadMetadata(org.jdom.Element e)
Description copied from class: EvObject
Unserialize object

Specified by:
loadMetadata in class EvObject

saveMetadata

public java.lang.String saveMetadata(org.jdom.Element e)
Description copied from class: EvObject
Serialize object

Specified by:
saveMetadata in class EvObject

pruneUnusedVertices

public void pruneUnusedVertices()
Remove unused vertices


pruneUnusedTexcoord

public void pruneUnusedTexcoord()

pruneUnusedNormals

public void pruneUnusedNormals()

cloneEvObject

public EvObject cloneEvObject()
Description copied from class: EvObject
Get a deep copy of the object, not including children

Specified by:
cloneEvObject in class EvObject

getVertexAverage

public javax.vecmath.Vector3d getVertexAverage()
Get average position of all vertices


getBoundingBox

public BoundingBox3D getBoundingBox()

initPlugin

public static void initPlugin()
Plugin declaration