📄 2005-april.txt
字号:
From Markus.Herb at de.TRUMPF.com Fri Apr 1 01:55:53 2005From: Markus.Herb at de.TRUMPF.com (Markus.Herb@de.TRUMPF.com)Date: Fri Apr 1 01:56:30 2005Subject: [Acis-alliance] qtacishoopsrefapp doesn't workMessage-ID: <56EDA62D2FE6314A99BD963936765F0C34C160@srv01mail1.corp.trumpf.com>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 witha 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_bridgecall but didn't find any. >From what I've learned in the ACIS manual concerning the HOOPS-ACIS Bridgethis 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? GeetingsMarkusFrom seaglow007 at 126.com Fri Apr 1 03:26:13 2005From: seaglow007 at 126.com (=?gb2312?B?c2VhZ2xvdzAwNw==?=)Date: Fri Apr 1 03:27:15 2005Subject: [Acis-alliance] incremental facetingMessage-ID: <424D05A5.00001B.19733@m59.126.com>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.htmlFrom chlramanarao at rediffmail.com Fri Apr 1 05:17:04 2005From: chlramanarao at rediffmail.com (chintalapati Laxmi RamanaRao)Date: Fri Apr 1 05:16:07 2005Subject: [Acis-alliance] Parametric modelling in ACISMessage-ID: <20050401101704.23110.qmail@webmail49.rediffmail.com>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-0001.htmlFrom Ray.BAGLEY at Spatial.Com Fri Apr 1 06:00:52 2005From: Ray.BAGLEY at Spatial.Com (Ray.BAGLEY@Spatial.Com)Date: Fri Apr 1 06:01:47 2005Subject: [Acis-alliance] Ray Bagley/dassault-systemes is out of the office.Message-ID: <OF5004AFCB.86C30350-ON87256FD6.003C8154-87256FD6.003C8154@Spatial.Com>I will be out of the office starting 03/29/2005 and will not return until04/04/2005.I will respond to your message when I return (perhaps sooner if theethernet gods are kind to me). Please contact my manager, Linda Lokay, at303-544-2911 for urgent matters.From davidkou at hkusua.hku.hk Fri Apr 1 06:42:58 2005From: davidkou at hkusua.hku.hk (David)Date: Fri Apr 1 06:48:59 2005Subject: [Acis-alliance] Re: Help: qtacishoopsrefapp doesn't workMessage-ID: <200504011142.j31BgwbJ016987@hkusua.hku.hk>Dear Markus,On the problem you stated, I suppose this is due to incorrect version of SAT file. Where is your SAT from? Say it is exported from tertiary CAD packages, make sure that you export the entities with ACIS V11.0 or ACIS 12.0 version, else you can see nothing in the canvas. So far with ACIS R13 SP9, you can not sucessfully read ACISr13 SAT files, I did tried this in Solidworks. Hope this helps.Best RegardsDavid KouPhD Candidate, HKU======= 2005-04-01 18:28:57 In your letter: =======>Send Acis-alliance mailing list submissions to> acis-alliance@cs.columbia.edu>>To subscribe or unsubscribe via the World Wide Web, visit> http://lists.cs.columbia.edu/mailman/listinfo/acis-alliance>or, via email, send a message with subject or body 'help' to> acis-alliance-request@cs.columbia.edu>>You can reach the person managing the list at> acis-alliance-owner@cs.columbia.edu>>When replying, please edit your Subject line so it is more specific>than "Re: Contents of Acis-alliance digest...">>>Today's Topics:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -