?? 2004-september.txt
字號:
From davidkou at hkusua.hku.hk Wed Sep 1 12:10:16 2004From: davidkou at hkusua.hku.hk (David)Date: Wed Sep 1 12:11:48 2004Subject: [Acis-alliance] SAT and SAB FileMessage-ID: <200409011610.i81GAFv7000881@hkusua.hku.hk>Dear acis-alliance,When I tried to use api_save_entity_list(f,TRUE,List) and api_restore_entity_list(f,FALSE,List);to save and read the SAT file, all runs OK, and I can render the 3D object well;However, when I try to replace "TRUE" with "FALSE" to generate a SAB file, an error called "Unexpected end of restore file <60003>" pops up.Because the SAT works well, I just couldn't know why this occurs to SAB file. The reason for me to use the binary form is because I want to derive my own class from class "BinaryFile" and use the "api_save_entity_list_file" and "api_restore_entity_list_file". I found the problem when I debug myprogram using these "api_restore_entity_list_file", and I found similar errors also occur to "api_restore_entity_list"Any help will be appreciated! Thanks!Best Regards,David2004-09-01From Nilesh.Joshi at asu.edu Wed Sep 1 20:48:10 2004From: Nilesh.Joshi at asu.edu (Nilesh Joshi)Date: Wed Sep 1 20:52:53 2004Subject: [Acis-alliance] plane ENTITYIn-Reply-To: <200409011610.i81GAFv7000881@hkusua.hku.hk>Message-ID: <IKEJINCPIFDAJOBCMLDKKEJDCHAA.Nilesh.Joshi@asu.edu>hi all,as per ACIS documentation, ENTITY 'plane' is a subclass of 'surface'.but, when tried to type cast from surface to plane...it gives compilererror.SURFACE* curr_surface=curr_face->geometry();const surface & curr_small_surface= curr_surface->equation();::vector plane_u_axis=((plane)(curr_small_surface)).u_axis();in this i get error at the third line saying "error C2440: 'type cast' :cannot convert from 'const class surface' to 'class plane' No constructor could take the source type, or constructor overloadresolution was ambiguous"can anyone explain whets happening?Thanks in advance.With Regards-Nilesh JoshiDesign Automation LaboratoryArizona State UniversityFrom emxmns at nottingham.ac.uk Thu Sep 2 13:01:42 2004From: emxmns at nottingham.ac.uk (Martin Sherburn)Date: Thu Sep 2 13:02:19 2004Subject: [Acis-alliance] Re: SAT and SAB FileMessage-ID: <s1376014.003@ccw0m1.nottingham.ac.uk>When you opened the file to pass to the ACIS function, did you open it as binary? If not, you need to.Martin.This message has been scanned but we cannot guarantee that it and anyattachments are free from viruses or other damaging content: you areadvised to perform your own checks. Email communications with theUniversity of Nottingham may be monitored as permitted by UK legislation.From guillaume.poirier at righthemisphere.com Mon Sep 6 01:48:18 2004From: guillaume.poirier at righthemisphere.com (Guillaume Poirier)Date: Mon Sep 6 01:48:53 2004Subject: [Acis-alliance] Trimmed NURB surfaces from facesMessage-ID: <7A977E70F2DA7446B6F631A8A66CF18F013FD3A9@deep.cadtech>In my last post I asked how to do that, and now that I've figured it outI was thinking of posting it here in case some newbies like me have thesame problem: api_initialize_spline (); convert entities using api_convert_to_spline(); the UV curves are obtained using coedge::geometry(), which returns thepcurves; it seems the external / internal attribute can be obtained usingapi_loop_external() whereas the orientation by coedge::sense(); On certain entities however it seems the api_convert_to_spline()generates some exceptions and just returns a NULL pointer... I had thisproblem when parsing dlv files and to a lesser extent with some entitiesin model files...-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20040906/24fa1e05/attachment.htmlFrom Samuel.Mazel at cedrat.com Mon Sep 6 10:10:02 2004From: Samuel.Mazel at cedrat.com (Samul Mazel)Date: Mon Sep 6 10:07:41 2004Subject: [Acis-alliance] Managed HISTORY_STREAM, Delta_State, bulletin_Board, BulletinMessage-ID: <020901c4941b$338aaa90$8201a8c0@cedratgrenoble.fr>Hello,I try to understand how managed the HISTORY_STREAM and their components butit's not easy, I haven't an simple example for understand.In my case I want to know the states of my entities before and after aboolean operation, if I understand a little, I must attach bulletin in myentities, bulletin must attach to bulletin board, bb to ds, ds to HS. Myprogram doesn't run, so if we have use HISTORY_STREAM and their components,and if we can help or send me an example of use, it's cool. I have AcisR13Thanks a lot for your replies :o)SamuelFrom asvaze at mtu.edu Mon Sep 6 12:29:35 2004From: asvaze at mtu.edu (Ajit Vaze)Date: Mon Sep 6 12:29:53 2004Subject: [Acis-alliance] Re: Managed HISTORY_STREAMIn-Reply-To: <E1C4Lua-0004uT-00@beast.cs.columbia.edu>References: <E1C4Lua-0004uT-00@beast.cs.columbia.edu>Message-ID: <1202.141.219.25.149.1094488175.squirrel@huskymail.mtu.edu>Hi,I have used delta states in one of my codes...I have two bodies...model and octant. The code computes volume of octbefore and after boolean intersection with model. Then both bodies arerestored to original state before boolean using delta states.Following is the sample#include "bulletin.hxx"void function(void){api_start_modeller(0);api_initialize_constructors();api_initialize_booleans();............DELTA_STATE *initial = NULL;DELTA_STATE *after_bool = NULL;DELTA_STATE *after_vcomp = NULL;.........double vol1,vol2;volume(oct,vol1);api_note_state(initial);api_intersect(model,oct);api_note_state(after_bool);volume(oct,vol2);api_note_state(after_vcomp);api_change_state(after_vcomp);api_change_state(after_bool);.......}api_change_state has to be used after every api function to return toprevious state.Hope this helps...Ajit-- Ajit VazeGraduate StudentMechanical Engineering - Engineering Mechanics DepartmentMichigan Technological University, Houghton MI 49931From alames at sandia.gov Tue Sep 7 12:59:16 2004From: alames at sandia.gov (Ames, Arlo)Date: Tue Sep 7 12:59:51 2004Subject: [Acis-alliance] Trimmed NURB surfaces from facesMessage-ID: <16F54D8E44BBEE4BBBDB5EFB3AEEB86D01C5230D@es06snlnt.sandia.gov>The issue of finding out whether a loop is "external" or not is not entirelywell-posed. ACIS doesn't REQUIRE that a given face has an "external" loop.For example, a simple cylinder, having 3 faces, two of which are planes andone of which is cylindrical, can be correctly modelled with as few as twoedges. The cylindrical face would have two loops, each of which would havea single coedge with a reference to one of the edges. Neither of the loopsis "external" to the other. Either could be considered as external. Youcould add a "prop" (ACIS terminology) which would connect the two edgesalong the cylinder, yielding a cylinder with a single "external" loop. Youcould add many props, and obtain many cylindrical faces, or a cylindricalface with many loops, each of which would be "external". ACIS would handleall of the above just fine, and doesn't guarantee one over the other, bothbecause you have direct access to constructors and because you could importgeometry from almost anywhere. Also, note that you can create a proper spherical object that has only 1face, no loops. Same for a torus. And you can put an arbitrary number ofholes in either and get only "interior" loops, each of which is just aslegitimately called "external". So, while you can ask about whether a loop is "external", I wouldn'tguarantee the results of the query, nor would I write code that depends onsuch a result. Arlo Amesalames@sandia.gov-----Original Message-----From: Guillaume Poirier [mailto:guillaume.poirier@righthemisphere.com] Sent: Sunday, September 05, 2004 11:48 PMTo: acis-alliance@cs.columbia.eduSubject: [Acis-alliance] Trimmed NURB surfaces from facesIn my last post I asked how to do that, and now that I've figured it out Iwas thinking of posting it here in case some newbies like me have the sameproblem: api_initialize_spline (); convert entities using api_convert_to_spline(); the UV curves are obtained using coedge::geometry(), which returns thepcurves; it seems the external / internal attribute can be obtained usingapi_loop_external() whereas the orientation by coedge::sense(); On certain entities however it seems the api_convert_to_spline() generatessome exceptions and just returns a NULL pointer... I had this problem whenparsing dlv files and to a lesser extent with some entities in modelfiles...-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20040907/da20a629/attachment.htmlFrom sp52 at buffalo.edu Wed Sep 8 22:28:09 2004From: sp52 at buffalo.edu (Sanjay Kumar)Date: Wed Sep 8 22:28:34 2004Subject: [Acis-alliance] how to set color or material information to an entityMessage-ID: <23278531.1094682489@cadcam2.eng.buffalo.edu>hi alliance grp members, i need to set color to various entities stored ina single SAT file. i'm not able to use the RH_MATERIAL or ATTRIB_COL components of ENTITY class (Rendering base component). Any comments or suggestions throwing light on how to set these properties to a part will be very useful. i'm using ACIS R13SP5 with visual c++ 6.0 thanks, sanjayFrom PG02104852 at ntu.edu.sg Mon Sep 13 09:11:16 2004From: PG02104852 at ntu.edu.sg (#TANG SHAOHUI#)Date: Mon Sep 13 09:11:37 2004Subject: [Acis-alliance] remove faces and repair bodyMessage-ID: <0C42D409AF10B1428A0B026FB160A5BE11B011@mail02.student.main.ntu.edu.sg>Hello,I want to remove some faces and repair the body. Has anyone ever succeeded in using api_remove_and_repair_body or api_remove_faces? I will be very much apprieciated if you can give me an example on how to use these functions.regardsshaohuiFrom PG02104852 at ntu.edu.sg Tue Sep 14 04:01:39 2004
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -