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

Encapsulate a 3D Geometry and displays it as a gl mesh.
author  Johann Sorel


Variables : -
Functions : GeometryMesh, GeometryMesh, GeometryMesh, getGeometry, updateGeometry, getNbRing, setNbRing, getNbSector, setNbSector, getShape, buildShell, canHandle



public void GeometryMesh (Geometry geometry)

public void GeometryMesh (Geometry geometry, int nbSector)

public void GeometryMesh (Geometry geometry, int nbRing, int nbSector)

public Geometry getGeometry ()

public void updateGeometry (Geometry geom)

public int getNbRing ()

public void setNbRing (int nbRing)

public int getNbSector ()

public void setNbSector (int nbSector)

public Shell getShape ()


Update the vertices and normals.
Rebuild them from the geometry.
Call this method after making changes on the geometry.
public void buildShell ()


Test if the given geometry class is supported by the GeometryMesh.
param  geometryClass, not null
return  true if geometry type is supported
public boolean canHandle (Class geometryClass)