CAA获取Body对应Feature的方法

CAA中很多对象的接口会给出对象的Body供用于计算分析,但建模时用到的更多的是Feature。以下为Body-->Feature基本思路。

CATBody::GetAllCells 获取Body的某一维Cell,如点0,线1;
CATMmiUseServicesFactory::CreateBRepDecodeServices 得到 CATIMmiUseBRepDecodeServices;
CATIMmiUseBRepDecodeServices::DecodeCellInBody 得到 CATIMmiUseBRepAccess;
CATIMmiUseBRepAccess::GetBRepInitialFeature 等接口得到对应的 Feature。

其中,GetBRepInitialFeature 等方法有一个输入参数iMaster,官方给出的解释是
If this feature is a ResultOUT, it is not displayed in the specification tree. 

TRUE : the feature returned is the master feature of the selecting feature. FALSE : the feature returned is the selecting feature itself. 

即,如果一个特征是一个计算输出结果,那么其不会在特征树上显示。此时,若iMaster==TRUE,获取到的是在特征上与之血缘最近的父级特征(如ResultOUT的父特征,若父特征也是ResultOUT,再向上查找),若iMaster==FALSE,获取到的是这个输出特征。











猜你喜欢

转载自blog.csdn.net/originalcandy/article/details/79577694
今日推荐