Page principale Liste des namespaces Hiérarchie des classes Liste par ordre alphabétique Liste des composants Liste des fichiers Membres des namespaces Composants Déclarations

# ExCMesh.cpp

Aller à la documentation de ce fichier.

    00001 /*
    00002  * ExNihilo 3D Engine
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  *
    00018  * Please read AUTHORS file !!!
    00019  *
    00020  * $Id: ExCMesh.cpp,v 1.6 2002/11/11 00:02:33 data Exp $
    00021  *
    00022  */
    00023
    00024 #include "ExCMesh.h"
    00025
    00026 ExCMesh::ExCMesh(void)
    00027 {
    00028         m_AB=0;
    00029         m_BC=0;
    00030         m_CA=0;
    00031         m_Smoothing=0;
    00032         m_Material = "NONE";
    00033         m_MeshNumber=0;
    00034 }
    00035
    00036 ExCMesh::ExCMesh(ExCVertex  a,ExCVertex  b,ExCVertex  c)
    00037 {
    00038         SetVertex(a,b,c);
    00039 }
    00040
    00041 ExCMesh::~ExCMesh(void)
    00042 {
    00043
    00044 }
    00045
    00046 void ExCMesh::SetMaterial(std::string Material)
    00047 {
    00048 Guard(void ExCMesh::SetMaterial(std::string Material));
    00049         m_Material = Material;
    00050 UnGuard
    00051 }
    00052
    00053 void ExCMesh::SetVertex(ExCVertex  a,ExCVertex  b,ExCVertex  c)
    00054 {
    00055 Guard(void ExCMesh::SetVertex(ExCVertex  a,ExCVertex  b,ExCVertex  c))
    00056         A=a;
    00057         B=b;
    00058         C=c;
    00059 UnGuard
    00060 }
    00061
    00062 void ExCMesh::Affich(void)
    00063 {
    00064         std::cout<<"Mesh "<<m_MeshNumber<<":   AB :"<<m_AB<<" BC:"<<m_BC<<" CA:"<<m_CA<<std::endl;
    00065         std::cout<<"Material:"<<m_Material<<std::endl;
    00066         std::cout<<"Smoothing:"<<m_Smoothing<<std::endl;
    00067 }