Open Cascade:如何从AIS_Shape导出TopoDS_Shape?

Posted 2018shawn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Open Cascade:如何从AIS_Shape导出TopoDS_Shape?相关的知识,希望对你有一定的参考价值。

Open Cascade:如何从AIS_Shape导出TopoDS_Shape?

实现代码如下:

if( !myAISContext->HasOpenedContext())
{
wxMessageBox(_T("It is necessary to activate the edges selection mode\n\and select edges on an object before \nrunning this function"),_T("Error!"));
return;
}

myAISContext->InitSelected();
if (myAISContext->MoreSelected()) {
Handle(AIS_Shape) S = Handle(AIS_Shape)::DownCast(myAISContext->SelectedInteractive());

if (S.IsNull()){
wxMessageBox(_T("It is necessary to activate the edges selection mode\n\and select edges on an object before \nrunning this function"),_T("Error!"));
return;
}

TopoDS_Shape Sh=S->Shape();

参考:

HOW TO GET THE TOPODS_SHAPE FROM A EXISTING AIS_SHAPE?

 

以上是关于Open Cascade:如何从AIS_Shape导出TopoDS_Shape?的主要内容,如果未能解决你的问题,请参考以下文章

Open Cascade:拓扑类型(Topo_DS)之间类型转换

CTU OPEN 2017 Pond Cascade /// 思维

Blackberry 10 Cascade:从设备读取短信

Laravel 迁移:从现有外键中删除 onDelete('cascade')

如何在一对一关系中使用 onDelete: 'CASCADE'

如何在 JPA 中获取外键引用以具有“ON UPDATE CASCADE ON DELETE CASCADE”功能?