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

50 lines
1.1 KiB
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TPGeFitTriangle 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TPGeFitTriangle 声明 拟合三角形
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _TPGEFITTRIANGLE_H_
#define _TPGEFITTRIANGLE_H_
#ifndef _TPDLIST_H_
#include "TPDList.h"
#endif
#ifndef _TPGEDSCEDGE_H_
#include "TPGeDscEdge.h"
#endif
class TGTriangle2D;
class GEOAPI TPGeFitTriangle
{
public:
TPGeFitTriangle(TPGeDscEdge*p0,TPGeDscEdge*p1,TPGeDscEdge*p2);
virtual ~TPGeFitTriangle();
//计算拟合边
void GetFitEdge(double z,TPDList<TPGeDscEdge>&res);
TGTriangle2D* CreateTriangle();
//是否包含其它三角形
bool IsParentTriangle();
bool operator >(const TPGeFitTriangle&) const;
bool operator <(const TPGeFitTriangle&) const;
public:
TPGeDscEdge *pEdge0,*pEdge1,*pEdge2;//三条边<引用>
};
#endif