Class TMesh
Unit
meshunit
Declaration
type TMesh = class(TObject)
Description
This class represent a Mesh, a collection of vertex and faces that forms a model. It has no drawing implementation, so that it's not bound to any library. Extenders of this class can implement it.
Hierarchy
TMesh > TObjectFields
Methods
Overview
Description
 |
procedure CalcolateNormals; |
used to recalculate normals. No so sure whether it works good :P
 |
procedure calculateBoundingSphereRadius; |
 |
constructor Create; virtual; |
 |
destructor Destroy; override; |
Destroy the mesh releasing used resources
 |
procedure Draw; virtual; abstract; |
This will be implemented by gfx-library specific code (opengl/directx/pen&paper/etc etc)
 |
function getBoundingSphereRadius:TFloat; |
get the radius of the bounding sphere of this mesh
 |
function getName():string; |
return the name of the mesh
 |
procedure LoadFrom(filename:String); overload; |
load the mesh from an XML file
 |
procedure LoadFrom(stream:TStream); overload; |
load the mesh from an XML stream
 |
procedure Scale(factor:TFloat); |
scale the mesh by a given factor (act on vertex! not on any view matrix)
parameters
-
X,Y,Z
-
the value of scaling on the single axes
 |
procedure setNumface(value:integer); |
 |
procedure setNumvertex(value:integer); |
 |
procedure Translate(x,y,z:TFloat); |
translate the mesh about its center (act on vertex! not on any view matrix)
parameters
-
X,Y,Z
-
the value of translation on the three axes
Properties
Overview
Description
 |
property NumFace: integer; |
 |
property NumVertex: integer; |
Generated by PasDoc 0.8.8 on 2005-03-14 21:03:49