?? 2003-september.txt
字號:
From nilesh.joshi at asu.edu Tue Sep 2 14:40:38 2003From: nilesh.joshi at asu.edu (Nilesh Joshi)Date: Tue Sep 2 16:53:25 2003Subject: [Acis-alliance] STEP translationMessage-ID: <002f01c37192$af6bfe40$de18a995@OKLAHOMA>Hi,I want to translate an AP203 file to AP224 using ACIS.my first assumption is that there is one to one correspondence between ACIS and related STEP file.now, I need to map as which face in SAT represents which face in STEP in short I need to compare faces in ACIS and STEPany idea as how can I do that?I wrote a script and out put a bunch of log file for different files.The log files generated had the information about SURFACE of step and related surface in STEP.I was surprised to find out that the order of surfaces in a step file and the order in the ACIS list is exactly the same (atleast the surface type lying underneath) without exception.I have tested this over 100 files.so, I was wondering if I could by pass the face comparison and directly assume that the faces in STEP and ACIS have the same order??please respondNilesh Joshi,Design Automation Lab,ASU-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030902/1525f9d5/attachment.htmFrom kaufmann at ims.tuwien.ac.at Fri Sep 5 12:50:15 2003From: kaufmann at ims.tuwien.ac.at (Hannes Kaufmann)Date: Fri Sep 5 05:45:47 2003Subject: [Acis-alliance] tangential planeMessage-ID: <3F585C57.F44DC435@ims.tuwien.ac.at>Hi,I have been (unsuccessfully) looking for an acis method to calculate the tangent plane from a given point to a given surface (wherethe touching point is nearest to a given point)I could not find any.Could you please help me - how do you efficiently calculate tangentialplanes to bodies with Acis?thanks a lot in advance,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.atFrom validpointer at rediffmail.com Sun Sep 7 20:01:27 2003From: validpointer at rediffmail.com (valid pointer)Date: Sun Sep 7 20:58:37 2003Subject: [Acis-alliance] Steps to ACIS syntax coloring in VSMessage-ID: <20030907190127.29664.qmail@webmail36.rediffmail.com>Hello everybody,This is not a question mail - I was sitting around and decided to do something to benefit all the acis users who use Windows platforms and Visual Studio to code in VC++.I am going to tell you how to get acis syntax coloring in the Visual Studio IDE.Step 1: Search for the "msdev.exe" file (usually in the "C:\program files\microsoft visual studio\common\MSDev98\Bin" directory) and using a text editor like notepad create a file called usertype.dat. Since I have already created a file and made some entries there, you can use the file that I have attached in the mail.Step 2: If you are creating your own usertype.dat file, add one acis keyword per line. This file is read during the Visual Studio initialization, so you will have to exit VS and then start it up again for the changes to take place and the syntax coloring mechanism checks the usertype.dat file last. Thus, all previously defined colorsettings take precedence over the user-defined keywords.Step 3: Now start VS (Visual Studio) and choose Options. Select the format tab. In the colors box, select User Defined Keywords.Step 4: Set the font, font size, foreground color and background color to your preferences. Click OKStep 5: Restart DevStudio.-------------------------------------------Hope that helped.___________________________________________________Medicine meets Marketing; Dr. Swati Weds Jayaram.Rediff Matchmaker strikes another interesting match !!Visit http://rediff.com/matchmaker?2-------------- next part --------------A non-text attachment was scrubbed...Name: usertype.datType: application/octet-streamSize: 20568 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030907/d9d5ba77/usertype-0001.objFrom SpatialDimensions at Spatial.Com Mon Sep 8 15:51:42 2003From: SpatialDimensions at Spatial.Com (SpatialDimensions@Spatial.Com)Date: Mon Sep 8 17:01:29 2003Subject: [Acis-alliance] Insiders =?utf-8?q?=E2=80=99_Summit=2C_May_3-5=2C_2004?=Message-ID: <OFA2C57A1D.A77E4AF3-ON87256D9B.00727DA4-87256D9B.007298B1@Spatial.Com>Spatial is happy to announce that next year?s 3D Insiders? Summit will beheld on May 3-5, 2004! It will once again be held at The Westin Westminsterhotel in Westminster, Colorado.This event will provide in-depth information on all of our products,including CAA V5, InterOp, ACIS, and HOOPS. Presentations will be given bySpatial employees, as well as our partners and university professors.We will also have the Insiders? Workshop, where attendees can interactone-on-one with Spatial?s support staff and Application Engineers regardingtheir specific needs and interests concerning Spatial products.More information will be available soon on our Web site, so please checkback.We hope to see you in May!From rams at virtuale3d.com Tue Sep 9 13:09:50 2003From: rams at virtuale3d.com (M Ramachandran)Date: Tue Sep 9 10:30:50 2003Subject: [Acis-alliance] Hi all need helpMessage-ID: <002801c3769d$2ba5e020$9601a8c0@ve3d.virtuale3d.com>Hi All,I am using ACIS R10.I am trying to convert CatiaV4 file into SAT file, not getting any error. But entities are not read, it gives entity list value null. In log file it prints all the catia entity list.My code follows like this, ENTITY_LIST EntityList; char* logFileName = "catia.log"; worked = process ( api_catia_convert_catia_to_acisentlist(filename, EntityList, logFileName) ); if(worked) { printf("Read Success.\n"); } else { printf("Error: Read Catia...\n"); }printf("Entities Read : %s \n", EntityList.count());When i run this i print the EntityList.count() it shows null value.Any one can help in this.M RamachandranVirtualE3D Info Pvt Ltd.,Bangalore - 68Ph : 550 1623, 550 1624-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030909/84843c24/attachment.htmFrom patilan at iitb.ac.in Fri Sep 12 14:02:05 2003From: patilan at iitb.ac.in (Ajit Narayan Patil)Date: Fri Sep 12 03:34:47 2003Subject: [Acis-alliance] Need help for Sweep..(urgent)Message-ID: <1365.10.145.109.53.1063351925.squirrel@iitmail.iitb.ac.in>Hi friendI am Ajit Patil New member of this group...I want to make model v,U,square groove on cylinder surface for turning part.If anybody Know how to use api_sweep_with_options about any axis.Please mail me code if anybody know it.Thank in advace..AjitFrom rams at virtuale3d.com Fri Sep 12 15:48:37 2003From: rams at virtuale3d.com (M Ramachandran)Date: Fri Sep 12 05:22:31 2003Subject: [Acis-alliance] CatiaV5 - X2CgmError 0Message-ID: <002e01c3790e$e99c1810$9601a8c0@ve3d.virtuale3d.com>Hi,I read the CATIAV4 file and got Entity List. Now i want to write a CATIAV5 file, i am getting the following error.How to rectify the following problem.used code: void create_CatiaV5_file (ENTITY_LIST elist, char *fileName, char *logFileName){ logical worked; worked = process (api_catiav5_convert_acis_entlist_to_catiav5((const char*)fileName, elist,NULL)); if(worked) { printf("\t %s CatiaV5 successfully written.\n", fileName); } else { printf("\t*** ERROR *** CatiaV5 file write failure.\n"); }}acis_convert_to_catiav5: Sat entities loaded and preprocessed. +=============================================+ ! An unhandled exception occurred in CATIA V5 ! +=============================================+The error is : <X2CgmError 0 > +===============================================+ + AN UNRECOVERABLE ERROR HAS OCCURED !!! + +-----------------------------------------------+ + THE ERROR IS + + + +===============================================+ + ABORTING + +===============================================+Terminating ...M Ramachandran-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030912/680db003/attachment.htmFrom Robert.Boehne at ricardo.com Fri Sep 12 16:45:48 2003From: Robert.Boehne at ricardo.com (Boehne, Robert)Date: Fri Sep 12 16:46:18 2003Subject: [Acis-alliance] CentroidMessage-ID: <1FDD58CAB1E3B4418D821B678F5AA8181E055A@ctc-ex2k.dtc.ricplc.com>Hello,Does anyone know of a formula (or reference to one) that gives the centroid of a polygon given the coordinates of it's vertices? I need to avoid using api_planar_face_pr in this case and calculate the centroid by hand.Thanks,Robert BoehneSoftware Engineer Ricardo SoftwareChicago Technical CenterFrom ywenbo at tom.com Mon Sep 15 17:32:20 2003From: ywenbo at tom.com (ywenbo@tom.com)Date: Mon Sep 15 04:32:41 2003Subject: [Acis-alliance] error LNK2001: unresolved external symbolMessage-ID: <3F657914.000008.19542@bjapp12>Hello everybody,I used MSVC++ to create a win32 console application and added display.cxx to the project. I had set up the Additional Include Directories and runtime library NT_DLLD properly.3 errors appear as followed. Linking...Display.obj : error LNK2001: unresolved external symbol "void * (__cdecl* acis_allocate)(unsigned int,enum AcisMemType,enum AcisMemCall,char const *,int,int *)" (?acis_allocate@@3P6APAXIW4AcisMemType@@W4AcisMemCall@@PBDHPAH@ZA)Display.obj : error LNK2001: unresolved external symbol "void (__cdecl* acis_discard)(void *,enum AcisMemCall,unsigned int)" (?acis_discard@@3P6AXPAXW4AcisMemCall@@I@ZA)Debug/DISPLAY.exe : fatal error LNK1120: 2 unresolved externalsError executing link.exe.what are they means? how to solve these problems.by the way, I am using acisR10.Any help is appreciated.display.cxx attached#include "kernel/acis.hxx"#include "constrct/kernapi/api/cstrapi.hxx"#include "kernel/kernapi/api/api.hxx"#include "kernel/kernapi/api/kernapi.hxx"#include "kernel/kerndata/top/body.hxx"#include "kernel/kerndata/lists/lists.hxx"#include "baseutil/vector/position.hxx" #include "faceter/api/af_api.hxx"#include "faceter/meshmgr/idx_mm.hxx"#include "rnd_husk/api/rnd_api.hxx"#include "gihusk/sys_utl.hxx"#include "gihusk/windows/view3dms.hxx"#include "gihusk/view3d.hxx"#include "gihusk/api/gi_api.hxx"#include "gihusk/rend.hxx"#include "br_husk/api/br_api.hxx"void main(){ api_start_modeller(0); api_initialize_constructors(); api_initialize_basic_rendering(); api_initialize_rendering(); api_initialize_graphic_interaction(); toolkit_rbase_app_callback *tk=NULL; tk=new toolkit_rbase_app_callback(); add_rbase_app_cb(tk); BODY* ball; api_make_sphere(20,ball); view3d* view=new view_3d_MS(150,150,450,450,TRUE); view->set_eye(SPAposition(70,70,70)); view->set_target(SPAposition(0,0,0)); ENTITY_LIST elist; elist.add((ENTITY *)ball); api_prepare_to_render(view); RH_BACKGROUND *background; Render_Color white(1,1,1); const char * name="plain"; api_rh_create_background(name,background); api_rh_set_background_arg(background,"color",white); api_rh_set_background(background); ENTITY_LIST light_list; RH_LIGHT* default_light=NULL; api_rh_create_light("eye",default_light); light_list.add(default_light); api_rh_set_light_list(light_list); INDEXED_MESH_MANAGER* MM=new INDEXED_MESH_MANAGER(); MM->SetTransform(NULL); api_set_mesh_manager(MM); api_facet_entity((ENTITY*)ball); api_rh_set_render_mode(RENDER_MODE_FLAT); logical clear_screen=TRUE; api_rh_render_entities(elist,clear_screen); sleep_milliseconds(8000); api_rh_delete_background(background); api_rh_delete_light(default_light); api_rh_terminate(); delete MM; api_terminate_graphic_interaction(); api_terminate_rendering(); api_terminate_basic_rendering(); api_terminate_constructors(); api_stop_modeller();}-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030915/f0a8dc20/attachment.htmFrom Robert.Boehne at ricardo.com Mon Sep 15 08:55:17 2003From: Robert.Boehne at ricardo.com (Boehne, Robert)Date: Mon Sep 15 08:56:00 2003Subject: [Acis-alliance] CentroidMessage-ID: <1FDD58CAB1E3B4418D821B678F5AA8183FEE51@ctc-ex2k.dtc.ricplc.com> As Nilesh pointed out in his second email, the answer can be found at <http://www.saltspring.com/brochmann/math/centroid/centroid.html> http://www.saltspring.com/brochmann/math/centroid/centroid.htmlif x[], y[], & z[] are coordinates of vertices of a 4-sided polygon the answer is found by using simple expressions for area and centroid of the two triangles that make up the four-sided polygon. a=1; b=5; c=6; d=2; // points #1, #5, #6 and #2// Centroid of the first triangle xc1 = (x[a]+x[b]+x[c])/3.0; yc1 = (y[a]+y[b]+y[c])/3.0; zc1 = (z[a]+z[b]+z[c])/3.0;// Area of the first triangle double a1 = 0.5*fabs( x[a]*y[b]*z[c] + y[a]*z[b]*x[c] + z[a]*x[b]*y[c] - z[a]*y[b]*x[c] - x[a]*z[b]*y[c] - y[a]*x[b]*z[c] );// Centroid of the second triangle xc2= (x[a]+x[d]+x[c])/3.0; yc2 = (y[a]+y[d]+y[c])/3.0; zc2 = (z[a]+z[d]+z[c])/3.0;// Area of the second triangle double a2 = 0.5*fabs( x[a]*y[d]*z[c] + y[a]*z[d]*x[c] + z[a]*x[d]*y[c] - z[a]*y[d]*x[c] - x[a]*z[d]*y[c] - y[a]*x[d]*z[c] );// Centroid of the 4-sided polygon xc = (xc1*a1 + xc2*a2)/(a1+a2); yc = (yc1*a1 + yc2*a2)/(a1+a2); zc = (zc1*a1 + zc2*a2)/(a1+a2);This can easily be extended to a planar polygon of N vertices.Thanks,Robert-----Original Message-----From: Gupta, Prashant [mailto:pgupta@india.ingr.com]Sent: Saturday, September 13, 2003 4:28 AMTo: Boehne, RobertSubject: RE: [Acis-alliance] CentroidRobert, If the coordinates of the vertices of the given polygon are: (x1, y1, z1), (x2, y2, z2), (x3, y3, z3),..... , (xn, yn, zn) Then, the centroid is: (x1 + x2 + x3 +..... + xn)/n The same is the case for y and z coordinate. n = number of vertices of that given polygon. The conclusion is that the centroid is the average of the coordinate values. Please let me know if you have got different answers from others. Regards, Prashant Gupta -----Original Message-----
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -