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

88 lines
1.8 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 : TPGeCurveMesh3D 类
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: TPGeCurveMesh3D 声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _TPGECURVEMESH3D_H_
#define _TPGECURVEMESH3D_H_
#ifndef _TGPOINT_H_
#include "TGPoint.h"
#endif
#ifndef _TGOBJECTLIST_H_
#include "TGObjectList.h"
#endif
#ifndef _TPDLIST_H_
#include "TPDList.h"
#endif
#ifndef _TGMESHNODE3D_H_
#include "TGMeshNode3D.h"
#endif
#ifndef _TGMESHEDGE3D_H_
#include "TGMeshEdge3D.h"
#endif
#ifndef _TGMESH3D_H_
#include "TGMesh3D.h"
#endif
class TPGeCurve3D;
class GEOAPI TPGeCurveMesh3D
{
friend class TPGeCurveMesh3D;
public:
2026-10-04 00:04:20 +08:00
//要求输入曲线是完全打断的,但允许有重线
2026-09-28 15:28:50 +08:00
TPGeCurveMesh3D(const TGObjectList &buf,bool bOnlyClose = true);
virtual ~TPGeCurveMesh3D();
void AppendCurve(const TPGeCurve3D* pCurve);
2026-10-04 00:04:20 +08:00
//去开放边
2026-09-28 15:28:50 +08:00
void RemoveOpenEdge();
void FindAllMesh();
2026-10-04 00:04:20 +08:00
//按原曲线方向搜索边界路径
2026-09-28 15:28:50 +08:00
void FindAllSDMesh();
void CreateRegion(TGObjectList& lstRegion,TGObjectList& lstHole);
2026-10-04 00:04:20 +08:00
//根据连接关系分解为独立的子网
2026-09-28 15:28:50 +08:00
void Explode(TPDList<TPGeCurveMesh3D> &lstChildMesh);
bool operator > (const TPGeCurveMesh3D&) const;
bool operator < (const TPGeCurveMesh3D&) const;
public:
TPDList<TGMesh3D> m_allMesh;
protected:
TPGeCurveMesh3D();
TGMeshNode3D* FindOrAddNode(const TGPoint& pt);
protected:
2026-10-04 00:04:20 +08:00
//所有节点
2026-09-28 15:28:50 +08:00
TPDListEx<TGMeshNode3D> m_allNode;
2026-10-04 00:04:20 +08:00
//所有边
2026-09-28 15:28:50 +08:00
TPDList<TGMeshEdge3D> m_allEdge;
};
#endif