马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近写了段干涉检查的程序,程序在pro_compute_interference这步出现闪退。请大神帮我看看,交流一下问题出在哪里。谢谢!
ProSelection *selintf;
ProArrayAlloc (0, sizeof (ProSelection), 1, (ProArray*)&selintf);
ProSelection *sel;
int n_sel;
ProSelect("part",1,NULL,NULL,NULL,NULL,&sel,&n_sel);
ProSelectionCopy(*sel,&selintf[0]);
ProSelect("part",1,NULL,NULL,NULL,NULL,&sel,&n_sel);
ProSelectionCopy(*sel,&selintf[1]);
Prohandle *intf_surfs;
int n_surfs;
pro_compute_interference (*selintf, PROINTERF_SOLID_ONLY, &intf_surfs, &n_surfs);
if (n_surfs>0)
{
AfxMessageBox(_T("干涉!"));
}
|