Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

52 lines
1.1 KiB
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TPGeFitPath3D 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TPGeFitPath3D 定义
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#include "StdAfx.h"
#include "TPGeFitPath3D.h"
#include "TPGeDscPoint3D.h"
#include "TGMLine3D.h"
TPGeFitPath3D::TPGeFitPath3D(double value)
: m_fValue(value),bClosed(false)
{
}
TPGeFitPath3D::~TPGeFitPath3D()
{
}
void TPGeFitPath3D::SetClosed()
{
bClosed = true;
}
bool TPGeFitPath3D::operator >(const TPGeFitPath3D&) const
{
return false;
}
bool TPGeFitPath3D::operator <(const TPGeFitPath3D&) const
{
return false;
}
TGMLine3D* TPGeFitPath3D::CreateCurve()
{
TGMLine3D *pMLine = new TGMLine3D(GetLength(),bClosed);
for(long i = 0; i < GetLength(); i++)
{
(*pMLine)[i] = (*((*this)[i]));
}
return pMLine;
}