COMPASSi/trunk/code/inc/OCC/OCCLib/SectionAlgo.h

30 lines
622 B
C
Raw Normal View History

2025-06-25 15:06:42 +08:00
#pragma once
#include "BaseAlgo.h"
class SectionAlgo : BaseAlgo
{
public:
SectionAlgo(void);
SectionAlgo(TopoDS_Shape shape1, TopoDS_Shape shape2);
~SectionAlgo(void);
public:
//Face-face相交
TopoDS_Shape SectionFF(TopoDS_Face face1, TopoDS_Face face2);
//Shell-shell相交
TopoDS_Shape SectionSS(TopoDS_Shape shape1, TopoDS_Shape shape2);
//Face-shell相交
TopoDS_Shape SectionFS(TopoDS_Face face1, TopoDS_Shape shape2);
//执行相交操作
void Perform();
public:
//求交结果
TopoDS_Shape result;
//求交图元
TopoDS_Shape S1;
//求交图元
TopoDS_Shape S2;
//是否完成
bool isDone;
};