📄 2003-october.txt
字号:
Liu zhiguoin Jilin University in China2003-10-10From marco.beninca at salvagninigroup.com Fri Oct 10 11:22:22 2003From: marco.beninca at salvagninigroup.com (Beninca Marco)Date: Fri Oct 10 08:43:15 2003Subject: [Acis-alliance] on COEDGEMessage-ID: <E6629EA4F0DB234EB6CC6A4F990691400B00FF@SIEUCLM1.europe.salvagninigroup.com>Hiyou need to use ee->loop()->face() instead of ee->owner()->face()Marco-----Original Message-----From: liu zhiguo [mailto:lzguo@mail.com]Sent: Friday, October 10, 2003 10:12 AMTo: acis-alliance@cs.columbia.eduSubject: [Acis-alliance] on COEDGEHi everyone of acis-alliance, I want to judge if a two faces are adjacent in a ENTITY_LIST. I use CODEGE to realize it. This is my codes:--------------------------------------------------------------------------- for (int i = 0; i < face_list.count(); i++) { if(is_BODY(face_list[i])) { BODY *body=(BODY*)face_list[i]; COEDGE *ee=body->lump()->shell()->face_list()->loop()->start(); while(ee!=NULL){ FACE *face=ee->owner()->face(); COEDGE *par_ee=ee->partner(); FACE *adj_face=par_ee->owner()->face(); num_codege++; ee=ee->next(); if(adj_face!=face) { face_adj_edge.add(face); face_adj_edge.add(adj_face); } } } }---------------------------------------------------------------------------But I can not pass the compiling, the error is :--------------------Configuration: ACISR10 - Win32 Debug--------------------Compiling...ACISR10Doc.cppF:\lzguo\program\ACISR10\ACISR10Doc.cpp(836) : error C2039: 'face' : is not a member of 'ENTITY' d:\spatial\acisr10\kern\kernel\kerndata\data\entity.hxx(714) : see declaration of 'ENTITY'F:\lzguo\program\ACISR10\ACISR10Doc.cpp(838) : error C2039: 'face' : is not a member of 'ENTITY' d:\spatial\acisr10\kern\kernel\kerndata\data\entity.hxx(714) : see declaration of 'ENTITY'F:\lzguo\program\ACISR10\ACISR10Doc.cpp(843) : error C2065: 'face_adj_edge' : undeclared identifierF:\lzguo\program\ACISR10\ACISR10Doc.cpp(843) : error C2228: left of '.add' must have class/struct/union typeF:\lzguo\program\ACISR10\ACISR10Doc.cpp(844) : error C2228: left of '.add' must have class/struct/union typeError executing cl.exe.Creating browse info file...ACISR10.exe - 5 error(s), 0 warning(s)Should I use the follow method to realize, but when I use it to judge , the program will hold on. ------------------------------------------------------------------------void get_faces_of_edge(EDGE *edge, ENTITY_LIST &faces){ faces.add( ((LOOP *)edge->coedge()->owner())->face() ); faces.add( ((LOOP *)edge->coedge()->partner()->owner())->face() );}-------------------------------------------------------------------------Who can tell me what is the error in my two codes, and how to do? Thank you very much.Liu zhiguoin Jilin University in China2003-10-10_______________________________________________Acis-alliance mailing listAcis-alliance@cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom patilan at iitb.ac.in Mon Oct 13 13:51:06 2003From: patilan at iitb.ac.in (Ajit Narayan Patil)Date: Mon Oct 13 03:21:25 2003Subject: [Acis-alliance] How to find Surface typeMessage-ID: <1379.10.145.237.53.1066029666.squirrel@iitmail.iitb.ac.in>Hi FriendsI want to confirmed where selected face is Plane or Cylinderical typeI write code FACE* ff=(FACE*)ent; SURFACE* fs=ff->geometry(); if (fs->identity()==PLANE_TYPE) { AfxMessageBox("FACE is Plane Type"); }but this error C2065: 'PLANE_TYPE' : undeclared identifier is comes out.please tell me what should be done for it or which header file shouldincludedThanks in advanceAjitFrom i.patriche at zeiss.de Mon Oct 13 10:36:35 2003From: i.patriche at zeiss.de (Irina Patriche)Date: Mon Oct 13 03:38:08 2003Subject: Antwort: [Acis-alliance] How to find Surface typeMessage-ID: <OF8B2FB9EF.52513191-ONC1256DBE.002968D3@dejen.krz.org>hi ajit,i usually use:bool b = is_planar_face(ent);with "ent" being of type ENTITY*...hope this helps you. this way, you don't have to cast your entity to FACE*and then to SURFACE*...good luck, irinaFrom kaufmann at ims.tuwien.ac.at Mon Oct 13 11:04:06 2003From: kaufmann at ims.tuwien.ac.at (Hannes Kaufmann)Date: Mon Oct 13 03:52:57 2003Subject: [Acis-alliance] Memory leaksMessage-ID: <3F8A5C76.B403FE78@ims.tuwien.ac.at>When I start my application and quit it at once again, ACIS (compiledwith debug DLLs) produces a file called mmgr.log which starts with*** Beginning Leak Dump ***C:\build\acisr12\NTS\.\SPAlop\lop_husk_init.m\src\init_lop.cpp(62) :{0000000071} at 0x0A6F2EA0 76 Bytes Type: 1 Call: 14C:\build\acisr12\NTS\.\SPAblnd\blend_kernutil_init.m\src\initblnd.cpp(73): {0000000070} at 0x0A6F2D40 176 Bytes Type: 1 Call: 14C:\build\acisr12\NTS\.\SPArem\rem_husk_remove.m\src\init_rem.cpp(52) :{0000000069} at 0x0A6F2C70 32 Bytes Type: 1 Call: 14(the whole 10KB file attached)Is this normal? It sounds like my application is producing all thesememory leaks?All I do in my application that's ACIS related isin an init part: outcome a_return; a_return = api_start_modeller(0); a_return = api_initialize_faceter(); a_return = api_initialize_constructors(); a_return = api_initialize_booleans(); a_return = api_initialize_intersectors();and in the destructor api_terminate_intersectors(); api_terminate_booleans(); api_terminate_constructors(); api_terminate_faceter(); api_stop_modeller();what's wrong with this and how are the memory leaks generated?thanks a lot for your help,Hannes-------------- next part --------------A non-text attachment was scrubbed...Name: mmgr.logType: application/x-unknown-content-type-log_auto_fileSize: 9606 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031013/9cca9198/mmgr.binFrom fangzhihua422 at sina.com Mon Oct 13 17:50:27 2003From: fangzhihua422 at sina.com (fangzhihua422)Date: Mon Oct 13 04:50:46 2003Subject: [Acis-alliance] how to do this?Message-ID: <20031013085027.5760.qmail@sina.com>draw a plane which have some holes______________________________________
===================================================================在今天享受明天,惠普招行推出分期免息购PC (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)From kaufmann at ims.tuwien.ac.at Mon Oct 13 17:38:23 2003From: kaufmann at ims.tuwien.ac.at (Hannes Kaufmann)Date: Mon Oct 13 10:26:36 2003Subject: [Acis-alliance] Memory leaks againMessage-ID: <3F8AB8DF.AAC43584@ims.tuwien.ac.at>I saw that api_start_modeller(0);api_stop_modeller();alone causes about 300KB of memory leak (see attached mmgr.log).Can something be done about it?Hannes-- Hannes Kaufmann | Vienna University of Technology Researcher | Interactive Media Systems GroupT +43 1 58801-18860 | F +43 1 58801-18898 kaufmann @ ims.tuwien.ac.at-------------- next part --------------A non-text attachment was scrubbed...Name: mmgr.logType: application/x-unknown-content-type-log_auto_fileSize: 9606 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031013/97857cd6/mmgr-0001.binFrom patilan at iitb.ac.in Wed Oct 15 18:17:54 2003From: patilan at iitb.ac.in (Ajit Narayan Patil)Date: Wed Oct 15 07:48:07 2003Subject: [Acis-alliance] Need helpIn-Reply-To: <E1A93ec-0003a3-02@rogue.cs.columbia.edu>References: <E1A93ec-0003a3-02@rogue.cs.columbia.edu>Message-ID: <1400.10.145.237.53.1066218474.squirrel@iitmail.iitb.ac.in>Hi friendsI am using folloing code for getting value from screen possitionI am using view vectorunit_vector dir( 0, -2, 1.5 ), up( -1, 1, -1 );for displaywhat should be valuse forposition origin(?,?,?);vector normal(?,?,?);const position* pln_origin=&origin;const vector* pnl_normal=&normal;position pt;api_gi_pick_screen_position(pe,pln_origin,pnl_normal,pt);thanks in advanceAjitFrom jr8b8 at umr.edu Mon Oct 27 18:34:01 2003From: jr8b8 at umr.edu (Ramesh, Jayant (UMR-Student))Date: Mon Oct 27 19:34:08 2003Subject: [Acis-alliance] help in getting startedMessage-ID: <B6548610C5020A47AB0E19DB8F80252B0E0D39@umr-mail1.umr.edu>Hello. I just installed ACIS on to my computer. I am using a windows XPmachine with VC++ as the compiler. I just got the software yesterday. Ihave installed the ACIS s/w but I cannot figure out how to get itstarted. This is a very simple and basic question, but I need some help withthat. I hope someone will take time off to help me get it started.Thanks Jayant RameshUniversity of Missouri - Rolla ************************************The soul would have no rainbow , if the eyes had no tears -------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031027/7159fe7d/attachment.htmFrom patilan at iitb.ac.in Tue Oct 28 11:02:58 2003From: patilan at iitb.ac.in (Ajit Narayan Patil)Date: Tue Oct 28 00:33:15 2003Subject: [Acis-alliance] Regaring Display of threadsIn-Reply-To: <E1A7zgb-0004kK-02@rogue.cs.columbia.edu>References: <E1A7zgb-0004kK-02@rogue.cs.columbia.edu>Message-ID: <1314.10.145.237.53.1067319178.squirrel@iitmail.iitb.ac.in>Dear FriendsI am using following code for generation of threads on cylinderical shaftBut when i call this function display of part is very slow and when idisplay same part in wireframe it take long time.also time for sweep operation is long.Can anyone tell how to reduce time for this.Thanks in advance.Ajitvoid CFBMTurnDoc::OnThread(){ // TODO: Add your command handler code here //api_initialize_sweeping(); // Initializes the sweep library PART* part = m_pAcisDoc->Part(); double pitch=2; double Xposition=15.0; double Zposition=60.0; double length=6.0; double startposi=Zposition-pitch; position axis_start(0,0,startposi);// axis start position double endposi=Zposition+length+pitch; position axis_end(0,0,endposi); // axis end position vector start_dir(0,1,0); // from axis_start to helix start double radius = 15; // major radius of helix pitch; // distance between turns along axis logical handiness = FALSE; // TRUE is right FALSE is left EDGE *helix; // pointer to the helix created api_edge_helix (axis_start, //creates the helix axis_end, start_dir, radius, pitch, handiness, helix); /* VERTEX *v1= helix->start(); // get the coordinates of // its start vertex APOINT *p1 = v1->geometry(); position origin = p1->coords(); const curve& cur = helix->geometry()->equation(); // curve direction at start unit_vector normal = cur.point_direction(origin);*/position pts[3]; double h=pitch*0.86603; double zpt0=Zposition-(pitch/2.1); pts[0] = position( 0,Xposition, zpt0); double zpt1=zpt0+(pitch/16.0); double xpt1=Xposition-(pitch/16.0); double xpt2=Xposition-(h-(h/8.0)); pts[1] = position( 0,xpt2,Zposition); double zpt3=Zposition+(pitch/2.0)-(pitch/16.0); pts[2] = position( 0,Xposition,(zpt3+pitch/16.0)); double xpt5=Xposition+pitch/16.0; // Construct an edge that is a linear line. EDGE *my_linear[3]; api_curve_line( pts[0], pts[1], my_linear[0]); api_curve_line( pts[1], pts[2], my_linear[1]); api_curve_line( pts[2], pts[0], my_linear[2]); ENTITY_LIST *edlist = new ENTITY_LIST; edlist->add(my_linear[0]); edlist->add(my_linear[1]); edlist->add(my_linear[2]); // Create a wire-body from a list of edges. BODY *my_wirebody = NULL; outcome result; result = api_make_ewire( 3, my_linear, my_wirebody); CheckOutcome(result); ENTITY_LIST my_profile_faces; my_profile_faces.init(); api_cover_circuits (1, &edlist, *(surface*)NULL_REF, my_profile_faces); BODY *my_sweep; FACE *my_sweep_face; my_sweep_face = (FACE *)my_profile_faces[0]; result = api_mk_by_faces(NULL, 1, &my_sweep_face, my_sweep); CheckOutcome(result);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -