opencascade简单形状的轮廓面偏置生成




针对一些简单的形状,可以利用OCC中的函数直接生成其轮廓面的偏置形状
BRepOffsetAPI_MakeOffsetShape aShapeMaker1; //aShapeMaker1.PerformByJoin(input,30,0.01);//第一种生成方式 aShapeMaker1.PerformBySimple(input, 20);//第二种生成方式,input为输入的TopoDS_Shape形状 TopoDS_Shape offsetBox = aShapeMaker1.Shape(); Handle(AIS_Shape)ais_shape = new AIS_Shape(offsetBox); m_context->SetTransparency(ais_shape, 0.1, this);//显示 m_context->SetColor(ais_shape, Quantity_NOC_GRAY, Standard_True); m_context->Display(ais_shape, Standard_True); m_view->FitAll();
更多的偏置功能参考以下类:
转自:https://blog.csdn.net/ha0ha0xuexi/article/details/117742963
