www.pudn.com > MeshProcess.rar > Tri3D.h
// Tri3D.h: interface for the CTri3D class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TRI3D_H__BBA8A2D0_1D1B_4941_970C_CAC8A9B74259__INCLUDED_)
#define AFX_TRI3D_H__BBA8A2D0_1D1B_4941_970C_CAC8A9B74259__INCLUDED_
#include "Ver3D.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CTri3D
{
public:
void CompEdgeLeng(CVer3D ver3d[]);
void CompArea();
void CompNormale(CVer3D ver3d[]);
void CompCtgangle(CVer3D ver3d[]);
CTri3D();
virtual ~CTri3D();
double edgelength[3]; //length of edge
int veridx[3]; //index of three vertices
int normidx[3]; //index of three normales
double normal[3]; // normales
double ctgangle[3]; //ctg angles
double halftgangle[3]; //half of the tg angles
double triarea; //area of the triangle
};
#endif // !defined(AFX_TRI3D_H__BBA8A2D0_1D1B_4941_970C_CAC8A9B74259__INCLUDED_)