50 lines
1.1 KiB
C++
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 |