|
马上注册,结交更多同行朋友,交流,分享,学习。
您需要 登录 才可以下载或查看,没有帐号?注册
x
CATIBRepAccess* pEdgeCurve = NULL;
HRESULT hr = ppSelection->QueryInterface(IID_CATIBRepAccess,(void**) &pEdgeCurve);
if(pEdgeCurve == NULL)
{
cout<<"Error in pEdgeCurve"<<endl;
_pPoint2Agent->InitializeAcquisition();
return FALSE;
}
CATBody_var spBodyTest = pEdgeCurve->CreateBody(spSpecObject2,iBRepType);
JingmianBody = spBodyTest;
//将CATBody转换为CATSurface
CATOrientation helloOrientation(CATOrientationUnknown );
CATOrientation ioOrientation[1];
ioOrientation[0] = helloOrientation;
CATFace *JingFace = JingmianBody->CreateFace();
JINGSurface = JingFace->GetSurface(ioOrientation);
//显示
CATBaseUnknown_var AAAA = NULL_var;
AAAA = JINGSurface;
CATISpecObject_var SpecObject = AAAA;
SpecObject->Update();
CATIGSMProceduralView_var aaaSpecObject = SpecObject;
aaaSpecObject->InsertInProceduralView();
ppSelection是一个通过对话框选中的一个CATSurface类型曲面。
编译没有错误,但是运行CATIA的时候会出错,我发现出错的地方在
CATFace *JingFace = JingmianBody->CreateFace();
JINGSurface = JingFace->GetSurface(ioOrientation);
这两句没有真正生成成功,所以我想问一下,到底是怎么回事?
如果知道问题所在,还请不吝赐教!!!
|
|