⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pointpos.cpp

📁 该源代码能够实现任意三角形的剖分
💻 CPP
字号:
// PointPos.cpp: implementation of the CPointPos class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Delaunay.h"
#include "PointPos.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

IMPLEMENT_SERIAL(CPointPos,CObject,1)  //

CPointPos::CPointPos()
{
	m_x=0;m_y=0;m_z=0.5;
	Fx=0;Fy=0;
	nx=0;ny=0;nz=0;
}

CPointPos::~CPointPos()
{

}
void CPointPos::Serialize(CArchive& ar) //////
{
	if(ar.IsStoring())
	{
		ar<<m_x<<m_y<<m_z<<Fx<<Fy;
	}
	else
	{
		ar>>m_x>>m_y>>m_z>>Fx>>Fy;
	}

}

CPointPos::CPointPos(double x, double y)
{
	m_x=x;m_y=y;m_z=0.5;//double(rand())/double(RAND_MAX);
	Fx=0;Fy=0;
	nx=0;ny=0;nz=0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -