Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.mesh.Mesh
Extends/Implements : un.engine.opengl.scenegraph.GLNode
Subclasses : -

Stores mesh model informations.
author  Johann Sorel


Variables : -
Functions : Mesh, Mesh, getCullFace, setCullFace, isDirty, getBBox, copy, setShape, getShape, setMaterial, getMaterial, setTessellator, getTessellator, setPickable, isPickable, updateResources, dispose



public void Mesh ()

public void Mesh (CoordinateSystem cs)

public int getCullFace ()


One of GLC.CULLING.*
Use -1 for no face culling
param  cullFace
public void setCullFace (int cullFace)

public boolean isDirty ()


{@inheritDoc }
public BBox getBBox (CoordinateSystem cs)


Reuse all informations form given mesh.
This does not duplicate materials or any vbo.
param  mesh
public void copy (Mesh mesh)

public void setShape (Shape shell)

public Shape getShape ()

public void setMaterial (Material material)

public Material getMaterial ()

public void setTessellator (Tessellator material)

public Tessellator getTessellator ()


Indicate if the mesh is pickable.
Default is false.
param  pickable
public void setPickable (boolean pickable)

public boolean isPickable ()

public void updateResources (RenderContext context)

public void dispose (GLProcessContext context)