CrystalSpace

Public API Reference

Static Public Member Functions
csNormalCalculator Class Reference

A normal calculator. More...

#include <cstool/normalcalc.h>

List of all members.

Static Public Member Functions

static void CalculateNormals (csDirtyAccessArray< csVector3 > &mesh_vertices, csDirtyAccessArray< csTriangle > &mesh_triangles, csDirtyAccessArray< csVector3 > &mesh_normals, bool do_compress)
 Calculate normals for the given mesh.

Detailed Description

A normal calculator.

Definition at line 36 of file normalcalc.h.


Member Function Documentation

static void csNormalCalculator::CalculateNormals ( csDirtyAccessArray< csVector3 > &  mesh_vertices,
csDirtyAccessArray< csTriangle > &  mesh_triangles,
csDirtyAccessArray< csVector3 > &  mesh_normals,
bool  do_compress 
) [static]

Calculate normals for the given mesh.

Parameters:
mesh_verticesVertices of the mesh.
mesh_trianglesTriangles of the mesh.
mesh_normalsNormals of the mesh.
do_compressif true then the vertices will be compressed (equal vertices collapsed) before calculating normals. If false then this will not happen which means that you can have seams.

The documentation for this class was generated from the following file:

Generated for Crystal Space 2.0 by doxygen 1.7.6.1