📄 2005-april.txt
字号:
>> 1. qtacishoopsrefapp doesn't work (Markus.Herb@de.TRUMPF.com)> 2. incremental faceting (=?gb2312?B?c2VhZ2xvdzAwNw==?=)> 3. Parametric modelling in ACIS (chintalapati Laxmi RamanaRao)>>>---------------------------------------------------------------------->>Message: 1>Date: Fri, 1 Apr 2005 08:55:53 +0200 >From: Markus.Herb@de.TRUMPF.com>Subject: [Acis-alliance] qtacishoopsrefapp doesn't work>To: acis-alliance@cs.columbia.edu>Message-ID:> <56EDA62D2FE6314A99BD963936765F0C34C160@srv01mail1.corp.trumpf.com>>Content-Type: text/plain>>Hi,>i need to build an application using ACIS 13 HOOPS 11.1 and QT 3.3.1.>After some searching i found the qtacishoopsrefapp.zip:>http://developer.hoops3d.com/downloads/DevZoneSamples/qtacishoopsrefapp.zip >I hoped that this is a good entry point for my work.>I'm able to compile it and the HOOPs part is also working (drawing spheres,>coni, etc.) >But whenever i want to load a SAT file a new Window is opened but only with>a black screen. no SAT BODY can be seen.>What i don't understand:>I've searched in the whole project for a api_initialize_hoops_acis_bridge>call but didn't find any. >>From what I've learned in the ACIS manual concerning the HOOPS-ACIS Bridge>this initialization function has to be called.>>Furthermore there is a >>"HA_Read_Sat_File(FileName, elist); // read an SAT file" >>statement in the code but it doesn't seem to be reached. >>My question: is this reference app really able to load and show sat files? >>Geetings>Markus>>>------------------------------>>Message: 2>Date: Fri, 1 Apr 2005 16:26:13 +0800 (CST)>From: "=?gb2312?B?c2VhZ2xvdzAwNw==?=" <seaglow007@126.com>>Subject: [Acis-alliance] incremental faceting>To: acis-alliance@cs.columbia.edu>Message-ID: <424D05A5.00001B.19733@m59.126.com>>Content-Type: text/plain; charset="gb2312">>Hello acis-alliance:> I am wondering how to undergo the incremental faceting.when i use the function>api_facet_unfaceted_entity or api_facet_unfaceted_entities to facet a body,it does not perform as expected. The faceter still faceting all the faces on a body other than those faces that have changed since they were last faceted.I think it should be some wrong with my program,so could you please kindly tell me how to use these two functions correctly?> my program is here:>> void main(){> > api_start_modeller(0);> api_initialize_faceter();> api_initialize_constructors();>> api_mark_faceted_faces(TRUE);> BODY *cuboid;> api_make_cuboid(100,100,100,cuboid);>> api_mark_faceted_faces(TRUE);> My_INDEXED_MESH_MANAGER* MM1 = new My_INDEXED_MESH_MANAGER();> api_set_mesh_manager(MM1);>> VERTEX_TEMPLATE* tplate;> int ntokens = 2 ;> int token[2];> token[ 0 ] = POSITION_TOKEN ;> token[ 1 ] = NORMAL_TOKEN ;> api_create_vertex_template( ntokens, token, tplate );> api_set_default_vertex_template(tplate);>> REFINEMENT* ref = NULL;> api_get_default_refinement(ref);>> ref->set_surface_tol(10);> ref->set_normal_tol(10);> ref->set_grid_aspect_ratio(1);> ref->set_max_edge_length(10);> ref->set_adjust_mode(AF_ADJUST_NONE);> ref->set_grid_mode(AF_GRID_TO_EDGES);> ref->set_max_grid_lines(300) ;> ref->set_triang_mode(AF_TRIANG_ALL);>> api_set_default_refinement(ref);>>> api_facet_unfaceted_entity(cuboid);> api_mark_faceted_faces(TRUE);>> CString s1;> s1.Format("cnt1:%d,cnt2:%d,cnt3:%d,\ncnt4:%d,cnt5:%d,cnt6:%d,\ncnt7:% d,cnt8:%d,cnt9:%d",> cnt1,cnt2,cnt3,cnt4,cnt5,cnt6,cnt7,cnt8,cnt9);> AfxMessageBox(s1);>> cnt1=0,cnt2=0,cnt3=0,cnt4=0,cnt5=0,cnt6=0,cnt7=0,cnt8=0,cnt9=0;> My_INDEXED_MESH_MANAGER* MM2 = new My_INDEXED_MESH_MANAGER();> api_set_mesh_manager(MM2);>> api_initialize_blending();> EDGE *edge=cuboid->lump()->shell()->face()->loop()->start()->edge();> ENTITY_LIST edgelist;> edgelist.add(edge);> api_blend_edges(edgelist,20);>> api_facet_unfaceted_entity(cuboid);> > CString s2;> s2.Format("cnt1:%d,cnt2:%d,cnt3:%d,\ncnt4:%d,cnt5:%d,cnt6:%d,\ncnt7:%d,cnt8:%d,cnt9:%d",> cnt1,cnt2,cnt3,cnt4,cnt5,cnt6,cnt7,cnt8,cnt9);> AfxMessageBox(s2);>> delete MM1;> delete MM2;> api_terminate_blending();> api_terminate_constructors();> api_terminate_faceter();> api_stop_modeller();>}>>My_INDEXED_MESH_MANAGER is a class that i derived from INDEXED_MESH_MANAGER. cnt1,cnt2,....,cnt9 are some counters to indicate how many times the functions in the mash manager have been called when faceting the cuboid.>-------------- next part -------------->An HTML attachment was scrubbed...>URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20050401/4d1bf2c1/attachment-0001.html>>------------------------------>>Message: 3>Date: 1 Apr 2005 10:17:04 -0000>From: "chintalapati Laxmi RamanaRao" <chlramanarao@rediffmail.com>>Subject: [Acis-alliance] Parametric modelling in ACIS>To: acis-alliance@cs.columbia.edu>Message-ID: <20050401101704.23110.qmail@webmail49.rediffmail.com>>Content-Type: text/plain; charset="iso-8859-1">>Hi,> I am working with acisR10sp9.I followed the managed history streams example given in the september 2004 archives.I am practising an example for parametric modelling in ACIS.I am able to roll back to previous state from current state using api_changed_state.But I am unable to change the state further.What I have done is created a solid block,frustum and subtracted frustum from solid block and then rolled back to frustum state and deleted the old frustum and created new frustum.What I need is would like to roll forward to subtracted state and that frustum need to be changed after forward.Here below i am giving the code.>>int main(int argc, char* argv[])>{> > EXCEPTION_BEGIN> BODY* sheet = NULL;> outcome rc;>> ENTITY_LIST save_list;> ENTITY_LIST elist;>> HISTORY_STREAM* default_hs = NULL;> HISTORY_STREAM* hs = NULL;>> DELTA_STATE *active_ds1 = NULL;> DELTA_STATE *active_ds2= NULL;> DELTA_STATE *active_ds3= NULL;> DELTA_STATE *active_ds4 = NULL;> DELTA_STATE *active_ds5 = NULL;> DELTA_STATE *active_ds6 = NULL;> DELTA_STATE *active_ds7 = NULL;>> STATE_ID id1 = -1;> STATE_ID id2 = -1;> STATE_ID id3 = -1;> STATE_ID id4 = -1;> STATE_ID id5 = -1;> STATE_ID id6 = -1;> STATE_ID id7 = -1;> STATE_ID id8 = -1;> STATE_ID id9 = -1;> STATE_ID id10 = -1;> STATE_ID id11 = -1;> STATE_ID id12 = -1;> STATE_ID id13 = -1;>> char* cpartName1="Mypart1";> char* cpartName2="Mypart2";> char* cpartName3="Mypart3";> char* cpartName4="Mypart4";> char* cpartName5="Mypart5";>> const char* atbName=""; > const char* atbName1=""; > const char* atbName2=""; > const char* atbName3=""; > const char* atbName4=""; > > SPAposition pt1(0, 0, 0);> SPAposition pt2(100, 100, 10);>> double height = 10.0;> double rad = 25.0;>> double height1 = 13.0;> double rad1 = 35.0;> > BODY* tool = NULL;> PART* part = NULL;> AcisOptions* ao=NULL; >> EXCEPTION_TRY> rc = api_start_modeller(0);> check_outcome(rc);> rc =api_initialize_kernel();> check_outcome(rc);> rc =api_initialize_intersectors();> check_outcome(rc);> rc =api_initialize_euler_ops();> check_outcome(rc);> rc =api_initialize_constructors();> check_outcome(rc);> rc=api_initialize_part_manager();> check_outcome(rc);> >> rc=api_part_create(10,part);> check_outcome(rc);> int depth=0;>> // Create a solid block> API_BEGIN> rc = api_solid_block(pt1, pt2, sheet);> check_outcome(rc);> API_END>>> rc=api_part_add_entity(sheet,part);> check_outcome(rc);> rc=api_get_default_history(default_hs );> check_outcome(rc);> check_outcome(api_note_state(active_ds1,default_hs, TRUE));> rc=api_get_state_id(active_ds1,id1);> check_outcome(rc);> rc=api_get_active_state(active_ds1,default_hs );> check_outcome(rc);> rc=api_part_name_state(cpartName1,default_hs);> check_outcome(rc);> > // Create a hole> {> API_BEGIN> rc= api_make_frustum(height, rad,rad,rad,tool);> check_outcome(rc);> SPAtransf t = translate_transf(SPAvector(50, 50, 5));> rc = api_transform_entity(tool, t);> check_outcome(rc);> API_END>> rc=api_part_add_entity(tool,part);> check_outcome(rc);> }> check_outcome(api_note_state(active_ds2,default_hs, TRUE));> rc=api_get_state_id(active_ds2,id2);> check_outcome(rc);> rc=api_get_active_state(active_ds2,default_hs );> check_outcome(rc);> rc=api_part_name_state(cpartName2,default_hs);> check_outcome(rc);> > // Subtract Hole from Rectangle> {> API_BEGIN> rc= api_subtract(tool, sheet);> check_outcome(rc);> API_END>> // Create a new PART> rc=api_part_add_entity(sheet,part); > check_outcome(rc);> }> check_outcome(api_note_state(active_ds3,default_hs, TRUE));> rc=api_get_state_id(active_ds3,id3);> check_outcome(rc);> rc=api_get_active_state(active_ds3,default_hs );> check_outcome(rc);> rc=api_part_name_state(cpartName3,default_hs);> check_outcome(rc);>> rc=api_change_state(active_ds3);> check_outcome(rc);> rc=api_get_state_id(active_ds3,id5);> check_outcome(rc);> rc=api_change_state(active_ds2);> check_outcome(rc);> rc=api_get_state_id(active_ds2,id6);> check_outcome(rc);>> {> API_BEGIN> rc=api_del_entity(tool);> check_outcome(rc);> rc=api_clean_body(tool);> check_outcome(rc);> rc= api_make_frustum(height1,rad1,rad1,rad1,tool);> check_outcome(rc);> SPAtransf st = translate_transf(SPAvector(60, 60, 5));> rc = api_transform_entity(tool, st);> check_outcome(rc);> rc=api_part_add_entity(tool,part);> check_outcome(rc);> API_END> }> check_outcome(api_note_state(active_ds4,default_hs, TRUE)); > rc=api_get_active_state(active_ds4,default_hs );> check_outcome(rc);> rc=api_part_name_state(cpartName4,default_hs);> check_outcome(rc);>> rc=api_change_state(active_ds4);> check_outcome(rc);> rc=api_get_state_id(active_ds4,id8);> check_outcome(rc);> rc=api_change_state(active_ds3);> check_outcome(rc);> DELTA_STATE *test= NULL;> {> rc=api_get_active_state(test,default_hs );> }> rc=api_get_state_id(test,id10);> check_outcome(rc);> rc=api_part_add_entity(sheet,part); >> // set file information> FileInfo info;> char* strId ="test program";> > info.set_product_id(strId);> info.set_units(1.0);> rc =api_set_file_info((FileId | FileUnits), info);> info.reset();>> // save model> FILE* fp =fopen("RectHolePart.sat", "w");> rc=api_part_save(fp, true,part,true,true); > check_outcome(rc);> fclose(fp);>> rc=api_terminate_part_manager();> check_outcome(rc);> rc =api_terminate_constructors(); > check_outcome(rc);> rc =api_terminate_intersectors();> check_outcome(rc);> rc =api_terminate_euler_ops();> check_outcome(rc);> rc =api_terminate_kernel();> check_outcome(rc);> rc =api_stop_modeller();> check_outcome(rc);>> EXCEPTION_CATCH(TRUE)> if (!rc.ok()) > { > err_mess_type errNum = rc.error_number(); > fprintf(stderr, "%s (%d): %s (%d)\n", > __FILE__, __LINE__, > find_err_mess(errNum), errNum); > }> EXCEPTION_END>> return 0;>}>>>>>Regards,>CH.L.RAMANA RAO.> ?>-------------- next part -------------->An HTML attachment was scrubbed...>URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20050401/6c958382/attachment.html>>------------------------------>>_______________________________________________>Acis-alliance mailing list>Acis-alliance@cs.columbia.edu>http://lists.cs.columbia.edu/mailman/listinfo/acis-alliance>>>End of Acis-alliance Digest, Vol 25, Issue 1>********************************************============================================= From lxg at jlu.edu.cn Sun Apr 10 04:18:23 2005From: lxg at jlu.edu.cn (lxg@jlu.edu.cn)Date: Sun Apr 10 03:28:05 2005Subject: [Acis-alliance] Who can give me A example about "api_loft_coedges"Message-ID: <1113121103.4258e14fc8d00@mail.ctosoft.com>Hello,everyone:I want to know how to use "api_loft_coedges",who can give me a C++ example?Thank you!From edilson at cenapad.unicamp.br Wed Apr 13 16:25:26 2005From: edilson at cenapad.unicamp.br (=?ISO-8859-1?Q?Edilson_Gr=C3=BCnheidt_Borges?=)Date: Wed Apr 13 16:27:05 2005Subject: [Acis-alliance] Re:qtacishoopsrefapp doesn't workMessage-ID: <Pine.A41.4.21.0504131706560.44400-100000@delos>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -