其他分享
首页 > 其他分享> > 遍历指定部件所有体,UF_OBJ_cycle_objs_in_part

遍历指定部件所有体,UF_OBJ_cycle_objs_in_part

作者:互联网

std::vector<tag_t> bodys_tag;
tag_t object_tag = NULL_TAG ;
UF_OBJ_cycle_objs_in_part ( part_tag , UF_solid_type , &object_tag );//遍历指定部件所有实体
while (object_tag != NULL_TAG)
{
int type = 0, subType = 0;
UF_OBJ_ask_type_and_subtype(object_tag, &type, &subType);//返回对象类型与子类型
if ( subType == UF_solid_body_subtype )
{
bodys_tag.push_back(object_tag);//保存体
}
UF_OBJ_cycle_objs_in_part ( part_tag , UF_solid_type , &object_tag );//遍历指定部件所有实体
}

标签:objs,OBJ,object,tag,part,UF,type
来源: https://www.cnblogs.com/nx10/p/14898450.html