acis常用函数

上传人:Wo****C 文档编号:170098428 上传时间:2022-11-18 格式:DOC 页数:8 大小:21KB
返回 下载 相关 举报
acis常用函数_第1页
第1页 / 共8页
acis常用函数_第2页
第2页 / 共8页
acis常用函数_第3页
第3页 / 共8页
点击查看更多>>
资源描述
acis常用函数 - acis常用函数 根本几何造型函数: /立方体 api_make_cuboid(length(x),width(y),height(z),BODY) api_solid_block(SPAposition(左上角顶点坐标), SPAposition(右下角顶点坐标),BODY) /球体 api_make_sphere(半径,BODY) api_solid_sphere(SPAposition(圆心坐标),半径,BODY) /圆环体 api_make_torus(外环半径,环宽,BODY) api_solid_torus(SPAposition(环心坐标), 外环半径,环宽,BODY) /圆锥体 api_make_frustum(height(z), length(x),width(y),顶部半径,BODY) api_solid_cylinder_cone(SPAposition(顶部圆心坐标), SPAposition(底部圆心坐标),m*M_PI(底部长轴),n*M_PI(底部短轴),0(顶部半径),NULL,BODY) /圆柱体 api_make_frustum(height(z), length(x),width(y),顶部半径,BODY) api_solid_cylinder_cone(SPAposition(顶部圆心坐标), SPAposition(底部圆心坐标),m*M_PI(底部长轴),n*M_PI(底部短轴),0(顶部半径),NULL,BODY) /棱柱 api_make_prism(height(z), length(x),width(y),棱数,BODY) /棱锥 api_make_pyramid(height(z),length(x),width(y),顶部半径,棱数,BODY) /闭合样条 api_curve_spline(int,SPAposition*,SPAunit_vector*(NULL),SPAunit_vector*(NULL),EDGE*&,logical(TRUE),logical(TRUE),AcisOptions*) /曲线 api_curve_line( const SPAposition& pt1, const SPAposition& pt2, EDGE*& line, AcisOptions* ao = NULL ) /连接边的实体 api_make_ewire( int num_edges, EDGE* edges, BODY*& body, AcisOptions* ao = NULL ) /着色 api_rh_set_entity_rgb(ENTITY*&)body,rgb_color(r,g,b); /其中,api_gi_set_entity_rgb是着色函数,(ENTITY*&)body指定实体, body,rgb_color (r,g,b)进展着色。 /挪动SPAvector transs(i,j,k); SPAtransf movee = translate_transf(transs); api_transform_entity(ENTITY *&)new_body,movee); /其中,api_copy_entity是复制函数,(ENTITY*&)pre原实体,(ENTITY *&)new_body新实体; transf movee=translate_transf(trass)是定义移方向和大小的函数;api_ transform _entity 是移位函数,把(ENTITY *&)new_body按movee规那么平移。 /旋转 api_copy_entity(ENTITY *&)pre,(ENTITY *&)new_body); transf roti=rotate_transf(arc,acis); api_transform_entity(ENTITY *&)new_body,roti); /其中,api_copy_entity是复制函数,(ENTITY*&)pre原实体,(ENTITY *&)new_body新实体; transf roti=rotate_transf(arc,acis)是定义旋转方向和度数的函数;api_ transform _entity是旋转函数,把(ENTITY *&)new_body按roti规那么旋转。 api_boolean(body_a,body_b,UNION);/求两body的并集,结果保存在body_b中 api_boolean(body_a,body_b,INTERSECTION);/求两body的交集,结果保存在body_b中 api_boolean(body_a,body_b,SUBTRACTION);/求两body的差集,结果保存在body_b中 api_sweep_with_options(ENTITY*)circle, (ENTITY*)arcedge, options, (BODY*&)lei);/扫略api_find_vertex(BODY* fuwa,SPAposition(0,0,1),blv(接收);/获得实体上指定点附近的点 api_q_edges_around_vertex(vj,&vedge_listj);/得到共享给定点的边 api_get_faces( ENTITY* ent, ENTITY_LIST& face_list, PAT_NEXT_TYPE include_pat = PAT_CAN_CREATE, AcisOptions* ao = NULL)/获取所有面api_rh_create_light( const char* type, RH_LIGHT*& light)/创立光 api_rh_set_light_state( RH_LIGHT* light, logical on(off)/开关光 api_rh_set_material_texture( ENTITY_LIST const& entity_list, const char* tex_name)/贴图 HA_Delete_Entity_Geometry( ENTITY* entity)/取消实体的显示 api_del_entity( ENTITY* given_entity, AcisOptions* ao = NULL)/删除实体 api_transform_entity(ENTITY *&)e,translate_transf(SPAvector(1,0,0);/动画 api_find_vertex(e,SPAposition(0,0,5),blv);/找到实体上指定点附近的顶点,放到列表blv里 api_q_edges_around_vertex(blv,&edge_list);/寻找顶点谅连接的边。0号边是y方向(屏幕上下),1号是z方向(屏幕内外),2号x方向(屏幕左右) api_get_owner(ENTITY*)profile, (ENTITY*&)fuwa); api_sweep_with_options(ENTITY*)profile, (ENTITY*)path, options, (BODY*&)fuwa); api_terminate_sweeping; ACIS_DELETE options; 贴图和混合差不多。首先获取实体中的面,放到一个面的列表里。然后给这个列表的所有元素贴图。ENTITY_LIST ball;api_solid_block(SPAposition(0,0,0), SPAposition(5,5,5),fuwa);api_get_faces(fuwa,ball);/获取所有面api_rh_set_material_texture(ball,假如需要只给几个面贴图,只需要创立另一个列表,把需要贴图的面放到里面就可以了。 Function Description api_boolean( ) Can be used to generate the intersection between two BODIES. api_clash_bodies( ) Determines if two BODIES api_clash_faces( ) Determines if two FACES api_edent_rel( ) Determines the spatial relationship between an EDGE and another ENTITY. api_edfa_int( ) Generates the intersection between an EDGE and a FACE. api_entity_entity_distance( ) Determines the minimum distance between to ENTITIES. api_entity_entity_touch( ) Determines if two ENTITIES touch. api_entity_point_distance( ) Determines the distance between a point and an ENTITY. api_fafa_int( ) Generates the intersection between two faces. api_find_cls_ptto_face( ) Determines the point on a FACE nearest a given point. api_find_vertex( ) Determines the VERTEX on a BODY nearest a given point. api_intersect( ) Generates the intersection between two BODIES. api_intersect_curves( ) Determines the intersection between two EDGES or their underlying curves. api_planar_slice( ) Generates the wire BODY representing the intersection between a plane and a BODY. api_point_in_body( ) Determines whether a point lies inside, outside, or on the boundary of a BODY. api_point_in_face( ) Determines whether a point lies inside, outside, or on the boundary of a FACE. The point is assumed to lie on the surface of the FACE. api_ptent_rel( ) Determines the spatial relationship between a point and an ENTITY. #acis-hoops编程 第 8 页 共 8 页
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 演讲稿件


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!