BIMHome v1.0.0
BIMHome接口文档说明
GeometryUtility.h
浏览该文件的文档.
1/************************************************************************
2* @file GeometryUtility.h
3*
4* @brief 几何工具类
5*
6* @details 几何工具类
7*
8* @author
9*
10* @version 1.0
11*
12* @date 2025-6-6
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17
18#ifndef BIMHOMEBASE_GEOMETRYUTILITY_H
19#define BIMHOMEBASE_GEOMETRYUTILITY_H
20
21#include <Base/Vector3D.h>
22#include <Base/Tools2D.h>#include "BHGlobal.h"
23#include <string>
24#include <vector>
25#include <memory>
26#include "Base/Math/Geometry/Geometry.h"
27#include "Base/Math/Geometry/Point.h"
28#include "Base/Math/Geometry/Curve.h"
29#include "Base/Math/Geometry/LineSegment.h"
30#include "Base/Math/Geometry/Circle.h"
31#include "Base/Math/Geometry/Ellipse.h"
32#include "Base/Math/Geometry/ArcofCircle.h"
33#include "Base/Math/Geometry/ArcofEllipse.h"
34#include "Base/Math/Geometry/PolyLine.h"
35#include "Base/Math/Geometry/Hatch.h"
36#include "Base/Math/Geometry/Block.h"
37namespace Base
38{
44 class BaseExport GeometryUtility
45 {
46 public:
52
58
59 public:
60
68 static std::shared_ptr<Geometry> getGeometryOffset(std::shared_ptr<Geometry> geo, const Base::Vector3d& pt);
69
77 static std::vector<std::shared_ptr<Geometry>> getGeometryListOffset(std::vector<std::shared_ptr<Geometry>> geoList, const Base::Vector3d& pt);
78
85 static Base::LineSegment* getMaxLengthGeometryObj(std::vector<Base::Geometry*> partlist);
86 };
87}
88
89#endif // BIMHOMEBASE_GEOMETRYUTILITY_H
static std::shared_ptr< Geometry > getGeometryOffset(std::shared_ptr< Geometry > geo, const Base::Vector3d &pt)
按照指定点对几何对象进行归一化
static Base::LineSegment * getMaxLengthGeometryObj(std::vector< Base::Geometry * > partlist)
从几何对象列表中获取最长的线段
GeometryUtility()
默认构造函数
static std::vector< std::shared_ptr< Geometry > > getGeometryListOffset(std::vector< std::shared_ptr< Geometry > > geoList, const Base::Vector3d &pt)
按照指定点对几何对象列表进行归一化
~GeometryUtility()
默认析构函数
提供几何对象的归一化和几何列表操作的工具类
Definition GeometryUtility.h:45
Definition LineSegment.h:28
Definition BaseFigureFactory.h:24