Difference between revisions of "Mesh classes - geometry container classes"

From LinuxMCE
Jump to: navigation, search
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>Mesh classes are over the OpenGL implementations are:
+
Mesh classes are over the OpenGL implementations are:
  
- '''MeshContainer''': geometry keeper, a triangle based triangle keeper.
+
==MeshContainer==
  A mesh container contains two lists: one list of vertexes, which keeps for every point coordinate and color informations, UV texturing coordinate, etc.
+
MeshContainer is a geometry keeper, a triangle based triangle keeper.
- a list of triangles which keeps 3 indices to vertexes, one pointer to an OpenGLGraphic (the picture that is setup for every triangle)
+
A mesh container contains two lists:
- '''MeshBuilder''': helper class that creates a MeshContainer
+
===list of vertexes===
 +
::: which keeps for every point coordinate and color informations, UV texturing coordinate, etc.
 +
===list of triangles===
 +
::: which keeps 3 indices to vertexes, one pointer to an OpenGLGraphic (the picture that is setup for every triangle)
 +
==MeshBuilder==
 +
MeshBuilder is helper class that creates a MeshContainer
  
- '''MeshTransform''': a class that keeps all transformations that may apply to a MeshContainer. No object is drawn on the screen with default geometry. To all geometry are applied one or more transformations, even they does nothing or they do more transforms
+
==MeshTransform==
 +
MeshTransform a class that keeps all transformations that may apply to a MeshContainer. No object is drawn on the screen with default geometry. To all geometry are applied one or more transformations, even they does nothing or they do more transforms
  
- '''MeshFrame''': creates an hierarchy of objects, the single role of the MeshFrame is to keep a similar tree organisation of the objects. Every MeshFrame match that content:
+
==MeshFrame==
- MeshTransform: all transforms that applies to itself and all childrens
+
MeshFrame creates an hierarchy of objects, the single role of the MeshFrame is to keep a similar tree organisation of the objects. Every MeshFrame match that content:
- Name: unique name that is used to find different objects
+
* MeshTransform: all transforms that applies to itself and all childrens
- MeshContainer: which describe the geometry of the current MeshFrame
+
* Name: unique name that is used to find different objects
- Children: a list of children MeshFrames. They will get from Parent the current transform (like translation, scale, rotate or combined transforms)
+
* MeshContainer: which describe the geometry of the current MeshFrame
- Parent: a reference to the parent
+
* Children: a list of children MeshFrames. They will get from Parent the current transform (like translation, scale, rotate or combined transforms)
- helpers that simplify the management of children, geometry, transforms, name
+
* Parent: a reference to the parent
 +
* helpers that simplify the management of children, geometry, transforms, name
 +
[[Category: Programmer's Guide]]

Revision as of 14:01, 2 October 2007

Mesh classes are over the OpenGL implementations are:

MeshContainer

MeshContainer is a geometry keeper, a triangle based triangle keeper. A mesh container contains two lists:

list of vertexes

which keeps for every point coordinate and color informations, UV texturing coordinate, etc.

list of triangles

which keeps 3 indices to vertexes, one pointer to an OpenGLGraphic (the picture that is setup for every triangle)

MeshBuilder

MeshBuilder is helper class that creates a MeshContainer

MeshTransform

MeshTransform a class that keeps all transformations that may apply to a MeshContainer. No object is drawn on the screen with default geometry. To all geometry are applied one or more transformations, even they does nothing or they do more transforms

MeshFrame

MeshFrame creates an hierarchy of objects, the single role of the MeshFrame is to keep a similar tree organisation of the objects. Every MeshFrame match that content:

  • MeshTransform: all transforms that applies to itself and all childrens
  • Name: unique name that is used to find different objects
  • MeshContainer: which describe the geometry of the current MeshFrame
  • Children: a list of children MeshFrames. They will get from Parent the current transform (like translation, scale, rotate or combined transforms)
  • Parent: a reference to the parent
  • helpers that simplify the management of children, geometry, transforms, name