30 lines
820 B
C++
30 lines
820 B
C++
#ifndef _SECTIONPOLYGONCREATEOR_H_
|
|
#define _SECTIONPOLYGONCREATEOR_H_
|
|
|
|
#ifndef _SECTIONSTRUCTDEF_H_
|
|
#include "SectionStructDef.h"
|
|
#endif
|
|
class GEOAPI SectionPloygonCreator
|
|
{
|
|
public:
|
|
SectionPloygonCreator();
|
|
SectionPloygonCreator(const XSectionSolid &solid, const XSectionPlane &plane);
|
|
SectionPloygonCreator(const XSectionSolid &solid);
|
|
SectionPloygonCreator(const XSectionPlane &plane);
|
|
~SectionPloygonCreator(){};
|
|
|
|
void setSectionPlane(const XSectionPlane &plane); // 设置剖面
|
|
void setSectionSolid(const XSectionSolid &solid); // 设置被剖的实体
|
|
|
|
void getSectionPlane(XSectionPlane &plane);
|
|
void getSectionSolid(XSectionSolid &solid);
|
|
|
|
void GetSection(std::vector<XPoly2D> &arPolys, void *fill); // 计算剖面
|
|
|
|
private:
|
|
XSectionSolid m_SectionSolid;
|
|
XSectionPlane m_SectionPlane;
|
|
};
|
|
|
|
#endif
|