Solid에 구멍을 만드는 예제입니다.
//The cylinder gp_Pnt neckLocation(gp_Pnt(30,30,0)); gp_Dir neckNormal = gp::DZ(); gp_Ax2 neckAx2(neckLocation , neckNormal); TopoDS_Shape aHole = BRepPrimAPI_MakeCylinder(neckAx2 , 10 , 60); //The cube TopoDS_Shape box = BRepPrimAPI_MakeBox(gp_Pnt(0, 0, 0), 60 , 60 , 60); //Cube - Cylinder TopoDS_Shape result = BRepAlgoAPI_Cut(box , aHole); return result;
댓글
댓글 쓰기