Home
Reply
Contributor
tcxhb
Posts: 5

create face from a ellipse why failed 我想把椭圆构建成平面,为什么不行呢有错

FACE *f1;
 ::api_curve_ellipse(p(0,0,0),p(0,1,0),2,0,0,e,NULL);
 WIRE *w=new WIRE((COEDGE *)e,w);

 outcome outp = api_cover_wire (w,*(surface*)NULL,f1,NULL);
 savelist->add(e);

 if(!outp.ok())
 {
  CString str = ::find_err_mess(outp.error_number());
  ::AfxMessageBox(str);
  return ;
 }