//着色
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)进行着色。
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_smooth_edge_seq((EDGE*)edge_list[2],edges_to_blend);//得到与给定边相连的边的序列
api_set_const_rounds((ENTITY_LIST&)edges_to_blend,1.5);//设置混合半径,0点边的混合次序y向、z向、x向,注意不可以过大。
api_initialize_blending ();
api_fix_blends((ENTITY_LIST&)edges_to_blend);//进行混合,用新面取代老面3 x z y api_terminate_blending();
//sweep扫略
sweep_options* options = ACIS_NEW sweep_options();
options->set_cut_end_off(TRUE);
api_initialize_sweeping();
api_get_owner((ENTITY*)profile, (ENTITY*&)fuwa);
api_sweep_with_options((ENTITY*)profile, (ENTITY*)path, options, (BODY*&)fuwa);
api_terminate_sweeping();
ACIS_DELETE options;
如果需要只给几个面贴图,只需要创建另一个列表,把需要贴图的面放到里面就可以了。
Function |
Description |
api_boolean( ) |
Can be used to generate the intersection between two BODIES. |
api_clash_bodies( ) |
Determines if two BODIES "clash", and optionally the nature of the clash. |
api_clash_faces( ) |
Determines if two FACES "clash" and the nature of the clash. |
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. |