Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/TGGePolyDist.h
T

37 lines
991 B
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 : TGGePolyDist类
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: TGGePolyDist类声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGGEPOLYDIST_H_
#define _TGGEPOLYDIST_H_
#ifndef _TADSGEPOINT3D_H_
#include "TADSGePoint3d.h"
#endif
2026-10-04 00:04:20 +08:00
// 两个多边形之间的最短距离
2026-09-28 15:28:50 +08:00
class GEOAPI TGGePolyDist
{
public:
TGGePolyDist(ads_real nD, int n1, int n2, const TADSGePoint3d &pt1, const TADSGePoint3d &pt2);
TGGePolyDist();
virtual ~TGGePolyDist();
static int Compare(const TGGePolyDist *p1, const TGGePolyDist *p2);
public:
2026-10-04 00:04:20 +08:00
//值
2026-09-28 15:28:50 +08:00
ads_real nDist;
2026-10-04 00:04:20 +08:00
//最短处在俩个多边形的边号
2026-09-28 15:28:50 +08:00
int nIndex1, nIndex2;
2026-10-04 00:04:20 +08:00
//最短处的两点
2026-09-28 15:28:50 +08:00
TADSGePoint3d ptLocation1, ptLocation2;
};
#endif