iCAx开思工具箱
标题:
CAA:帮着看看程序有什么问题
[打印本页]
作者:
liuruixiao205
时间:
2006-4-11 09:11
标题:
CAA:帮着看看程序有什么问题
CATIFeaturize_var spFeaturize;
spFeaturize=spSurface;(spSurface是CATISpecObject_var类型,鼠标选择的一个圆柱的端面)
if(spFeaturize!=NULL_var)
cout<<"spFeaturize!=NULL_var"<<endl;
CATISpecObject_var spCurFeath=spFeaturize->FeaturizeF();
CATIMfBRep_var spMfBrep=spCurFeath;
if(NULL_var!=spMfBrep)
cout<<"NULL_var!=spMfBrep"<<endl;
CATLISTP(CATCell) List;
List=spMfBrep->GetEdges();
int num=List.Size();
cout<<"num="<<num<<endl;
CATEdge_var spEdge=List[1];
CATEdgeCurve * pEdgeCur=spEdge->GetCurve();
CATCurve* pCur=pEdgeCur->GetRefCurve();
CATCurve_var spCur=pCur;
if(NULL_var!=spCur)
cout<<"NULL_var!=spCur"<<endl;
CATPCircle_var spPCircle=spCur;
if(NULL_var!=spPCircle)
cout<<"NULL_var!=spPCircle"<<endl;
CATSurParam ioCenter;
spPCircle->GetCenter(ioCenter);
CATGeoFactory* spGeoFac = ::CATCreateCGMContainer();
if(NULL!=spGeoFac)
cout<<"NULL_var!=spGeoFac"<<endl;
CATSurface_var spSurface1=spSurface;
if(NULL_var!=spSurface1)
cout<<"NULL_var!=spSurface1"<<endl;
CATPointOnSurface * pPoint = spGeoFac->CreatePointOnSurface(ioCenter,spSurface1);(此句有错)
好像是参数输入错误。
请指教。
作者:
binic
时间:
2006-7-7 22:39
我想建一个参数化的立方体,设了一个草图生成函数CreateSketch(),然后一个拉伸函数CreatePad()
不知道在OK响应函数里OkAction()怎么调用,是不是这样用
boolean LineCmd::OkAction(void *data)
{
CATISpecObject_var spSketch = CreateSketch();
CreatePad(spSketch);
_pi->RequestDelayedDestruction();
return TRUE;
}
谢谢了
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3