没有合适的资源?快使用搜索试试~ 我知道了~
ACIS艺术品造型和代码
4星 · 超过85%的资源 需积分: 9 69 下载量 87 浏览量
2010-05-19
19:48:25
上传
评论 1
收藏 710KB DOC 举报
温馨提示
试读
17页
同学的一个用ACIS/HOOPS生成的艺术品。对熟悉ACIS常用函数很有帮助。有截图和源码。
资源推荐
资源详情
资源评论
代码: CCADInnovateView * m_pView=GetMainView();
m_pView->m_pHView->Flush();
m_pView->m_pHView->RenderFlat();
m_pView->m_pHView->SetRenderMode(HRenderTriangulation, true);
HC_Open_Segment_By_Key(m_pView->m_pHView->GetModel()->GetModelKey());
HC_Open_Segment("");
//底座
BODY *body[19];
EDGE* edge;
EDGE* edges[2];
BODY *path0= NULL;
SPAposition center0=SPAposition(0,0,40);
api_curve_ellipse(center0,SPAposition(center0.x()+4,center0.y(),center0.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path0);
BODY *path1= NULL;
SPAposition center1=SPAposition(0,0,39);
api_curve_ellipse(center1,SPAposition(center1.x()+3,center1.y(),center1.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path1);
BODY *path2= NULL;
SPAposition center2=SPAposition(0,0,38);
api_curve_ellipse(center2,SPAposition(center2.x()+3,center2.y(),center2.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path2);
BODY *path3= NULL;
SPAposition center3=SPAposition(0,0,37);
api_curve_ellipse(center3,SPAposition(center3.x()+4,center3.y(),center3.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path3);
BODY *path4= NULL;
SPAposition center4=SPAposition(0,0,35);
api_curve_ellipse(center4,SPAposition(center4.x()+6,center4.y(),center4.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path4);
BODY *path5= NULL;
SPAposition center5=SPAposition(0,0,33);
api_curve_ellipse(center5,SPAposition(center5.x()+5,center5.y(),center5.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path5);
BODY *path6= NULL;
SPAposition center6=SPAposition(0,0,32);
api_curve_ellipse(center6,SPAposition(center6.x()+4,center6.y(),center6.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path6);
BODY *path7= NULL;
SPAposition center7=SPAposition(0,0,30);
api_curve_ellipse(center7,SPAposition(center7.x()+3,center7.y(),center7.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path7);
BODY *path8= NULL;
SPAposition center8=SPAposition(0,0,29);
api_curve_ellipse(center8,SPAposition(center8.x()+3,center8.y(),center8.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path8);
BODY *path9= NULL;
SPAposition center9=SPAposition(0,0,28);
api_curve_ellipse(center9,SPAposition(center9.x()+4,center9.y(),center9.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path9);
BODY *path10= NULL;
SPAposition center10=SPAposition(0,0,27);
api_curve_ellipse(center10,SPAposition(center10.x()+5,center10.y(),center10.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path10);
BODY *path11= NULL;
SPAposition center11=SPAposition(0,0,25);
api_curve_ellipse(center11,SPAposition(center11.x()+6,center11.y(),center11.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path11);
BODY *path12= NULL;
SPAposition center12=SPAposition(0,0,23);
api_curve_ellipse(center12,SPAposition(center12.x()+5,center12.y(),center12.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path12);
BODY *path13= NULL;
SPAposition center13=SPAposition(0,0,15);
api_curve_ellipse(center13,SPAposition(center13.x()+4,center13.y(),center13.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path13);
BODY *path14= NULL;
SPAposition center14=SPAposition(0,0,6);
api_curve_ellipse(center14,SPAposition(center14.x()+3,center14.y(),center14.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path14);
BODY *path15= NULL;
SPAposition center15=SPAposition(0,0,5);
api_curve_ellipse(center15,SPAposition(center15.x()+3,center15.y(),center15.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path15);
BODY *path16= NULL;
SPAposition center16=SPAposition(0,0,4);
api_curve_ellipse(center16,SPAposition(center16.x()+4,center16.y(),center16.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path16);
BODY *path17= NULL;
SPAposition center17=SPAposition(0,0,3);
api_curve_ellipse(center17,SPAposition(center17.x()+3,center17.y(),center17.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path17);
BODY *path18= NULL;
SPAposition center18=SPAposition(0,0,0);
api_curve_ellipse(center18,SPAposition(center18.x()+6,center18.y(),center18.z()),1,0,2*M_PI, edge);
edges[0] = edge;
api_make_ewire(1, edges, path18);
body[0]=(BODY*)path0;
body[1]=(BODY*)path1;
body[2]=(BODY*)path2;
body[3]=(BODY*)path3;
body[4]=(BODY*)path4;
body[5]=(BODY*)path5;
body[6]=(BODY*)path6;
body[7]=(BODY*)path7;
body[8]=(BODY*)path8;
body[9]=(BODY*)path9;
body[10]=(BODY*)path10;
body[11]=(BODY*)path11;
body[12]=(BODY*)path12;
body[13]=(BODY*)path13;
body[14]=(BODY*)path14;
body[15]=(BODY*)path15;
body[16]=(BODY*)path16;
body[17]=(BODY*)path17;
body[18]=(BODY*)path18;
BODY* my_body;
api_skin_wires(19,body,my_body,1,NULL);
api_rh_set_entity_rgb((ENTITY*)my_body,rgb_color(0.8,0.4,0.1));
HA_Render_Entity((ENTITY*)my_body);
//中间灯
BODY* my_body1=NULL;
BODY* my_body2=NULL;
剩余16页未读,继续阅读
zslenglish
- 粉丝: 8
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页