www.pudn.com > MeshProcess.rar > Ver3D.h
// Ver3D.h: interface for the CVer3D class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VER3D_H__919B2427_3A12_4940_A98D_B877C5FB0A70__INCLUDED_)
#define AFX_VER3D_H__919B2427_3A12_4940_A98D_B877C5FB0A70__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
const double PI=3.1415926535897;
class CTri3D;
class CVer3D
{
public:
void CompMeanCurvature(int numi, CTri3D face3d[]); //Compute Mean Curvature "LOD Generation with Discrete Curvature Error Metric"
void CompGaussianCurvature(int numi,CTri3D face3d[]); //Compute Gaussian Curvature
int IntorOut(int n, CTri3D face3d[]); //judge the internode
CVer3D();
virtual ~CVer3D();
double norenergy; //the energy based on normale,between 0 and 1
double normale[3]; //normal direction
double MeanCurvature; //Mean Curvature
double GauCurvature; //Gaussian Curvature
double x,y,z; //x,y,z coordinate
int i,cp; //if characteristic vertex 1£¬else 0
int nfa; //the number of tris that contain the vertex
int triidx[100]; //the index of tri
int adj_vertex[100]; //the index of adjacent verteices
int internode; //if inside node 1£¬else 0
int dec_part; //Which part the vertex is included.
};
#endif // !defined(AFX_VER3D_H__919B2427_3A12_4940_A98D_B877C5FB0A70__INCLUDED_)