Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TPGeFitTriangle.h
T

50 lines
1.1 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-------------------------------------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
2026-10-04 00:04:20 +08:00
// = FileName : TPGeFitTriangle 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: TPGeFitTriangle 声明 拟合三角形
2026-09-28 15:28:50 +08:00
// = 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();
2026-10-04 00:04:20 +08:00
//计算拟合边
2026-09-28 15:28:50 +08:00
void GetFitEdge(double z,TPDList<TPGeDscEdge>&res);
TGTriangle2D* CreateTriangle();
2026-10-04 00:04:20 +08:00
//是否包含其它三角形
2026-09-28 15:28:50 +08:00
bool IsParentTriangle();
bool operator >(const TPGeFitTriangle&) const;
bool operator <(const TPGeFitTriangle&) const;
public:
2026-10-04 00:04:20 +08:00
TPGeDscEdge *pEdge0,*pEdge1,*pEdge2;//三条边<引用>
2026-09-28 15:28:50 +08:00
};
#endif