⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2003-may.txt

📁 acis说明文档
💻 TXT
📖 第 1 页 / 共 2 页
字号:
From zhengshu.shen at asu.edu  Wed May  7 16:18:21 2003From: zhengshu.shen at asu.edu (shen)Date: Wed May  7 18:30:10 2003Subject: [Acis-alliance] projection problemMessage-ID: <3EB9862D.880EB4D5@asu.edu>Hello everybody,I have been combating a small problem for a while and have reachednowhere, andwould appreciate help.Essentially I have been trying to get the projected area of a body alonga certaindirection.  If anyone knows how please let me know.Essentially if I am looking at  body from a certain direction, what isthe area of theshadow cast by the body (parallel projection) or the area of thebounding box of theshadow, whichever is easier.I have tried a number of approaches, but cannot seem to get the answerThank you so much.--================================================Zhengshu Shen================================================Design Automation LabMechanical & Aerospace EngineeringMail code 6106, Arizona State University - MainTempe AZ 85287-6106Phone: 480-727-6002(office)   Fax: 480-965-2412Email: Zhengshu.Shen@asu.edu===============================================http://asudesign.eas.asu.edu/index.htmlFrom aparajit at mail.utexas.edu  Thu May  8 12:58:22 2003From: aparajit at mail.utexas.edu (Aparajit Pratap)Date: Thu May  8 12:58:52 2003Subject: [Acis-alliance] Grouping FACEsMessage-ID: <000001c31583$08bc40c0$d5550692@lffserv>Hi,  Is there anyway to group a number of FACEs on a BODY together andcombine them to form a new SHELL? Any help will be greatly appreciated. Sincerely,  Aparajit -------------- next part --------------An HTML attachment was scrubbed...URL: http://cs.columbia.edu/pipermail/acis-alliance/attachments/20030508/6cb85797/attachment.htmFrom alames at sandia.gov  Thu May  8 12:17:44 2003From: alames at sandia.gov (Ames, Arlo)Date: Thu May  8 13:18:10 2003Subject: [Acis-alliance] projection problemMessage-ID: <03781128C7B74B4DBC27C55859C9D738FDB6B1@es06snlnt.sandia.gov>I don't have the time to look up the function calls, but I'd approach thisbyfirst computing silhouette edges, and imprinting them into the body.  ThenI'd take eachface and project it's edges onto a plane, getting a (maybeself-intersecting) region foreach face of the model.  Skip any faces that are everywhere perpendicular tothe projectiondirection (unless your projection is perspective, in which case things areworse).Unite all the faces of the projections.  ACIS doesn't necessarily do great2D booleans,so you might want to extrude the faces and do solid intersections of 2-1/2 Dobjects (again,with a perspective transformation things are a bit more interesting).  Likeas not you'll end up with a lot of grazing cases that can complicate things.  You might find a more direct approach involving just projecting each edgeonto the plane, imprintingall those (I doubt api_imprint will work well, though, as this will be justlike imprinting a bunchof wires), maybe with direct calls to curve-curve intersectors.  Just splitall the edges where theycross/come in close contact.  You want to know all the edges that touch, andfrom each touching, knowall the edges that emit from it.  (Pointing back from VERTEX to all theincident EDGEs might be betterdone with an attribute, but VERTEX just might have a sufficiently richbackpointing capability.  The usualfunctionality in backpointing from VERTEX to EDGE only allows onebackpointer.)  Once the imprint graph isdone, it's rather like writing a convex huller.  Find the vertex of absoluteminimum 2D (really, decide onan X direction in your 2D projection), then walk the edges, each time takingthe maximum right turn, andif you're lucky you get all the way back to the starting point.  Any edge orvertex not encountered in thewalk is to be deleted.  You should get the face you're after.Arlo Amesalames@sandia.gov-----Original Message-----From: shen [mailto:zhengshu.shen@asu.edu]Sent: Wednesday, May 07, 2003 4:18 PMTo: ACIS ALLIANCESubject: [Acis-alliance] projection problemHello everybody,I have been combating a small problem for a while and have reachednowhere, andwould appreciate help.Essentially I have been trying to get the projected area of a body alonga certaindirection.  If anyone knows how please let me know.Essentially if I am looking at  body from a certain direction, what isthe area of theshadow cast by the body (parallel projection) or the area of thebounding box of theshadow, whichever is easier.I have tried a number of approaches, but cannot seem to get the answerThank you so much.--================================================Zhengshu Shen================================================Design Automation LabMechanical & Aerospace EngineeringMail code 6106, Arizona State University - MainTempe AZ 85287-6106Phone: 480-727-6002(office)   Fax: 480-965-2412Email: Zhengshu.Shen@asu.edu===============================================http://asudesign.eas.asu.edu/index.html_______________________________________________Acis-alliance mailing listAcis-alliance@cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom alames at sandia.gov  Thu May  8 12:25:56 2003From: alames at sandia.gov (Ames, Arlo)Date: Thu May  8 13:26:18 2003Subject: [Acis-alliance] Grouping FACEsMessage-ID: <03781128C7B74B4DBC27C55859C9D738FDB6B3@es06snlnt.sandia.gov>Shell has a member function, set_face, which tells the shell which face isfirst.  Each face has a next pointer, which is the next FACE in the group offaces.You simply arrange that the FACEs in question form a list through their nextpointer, and tell the SHELL about the first one. If your problem involves grouping ADJACENT faces into a shell, you make alist of all possible faces.  Start from one, and write a classic brushfirealgorithm to find all the adjacent faces via the face's loops' coedges'edge's coedge's loop's face.  Take the FACEs thus found, put them in a shellas per prior paragraph (insure that their SHELL pointers refer back to theshell), and continue through all the faces, starting a new brushfire eachtime you find a face that doesn't belong to a shell. If you're looking for something more sophisticated, I need more informationabout your problem.-----Original Message-----From: Aparajit Pratap [mailto:aparajit@mail.utexas.edu]Sent: Thursday, May 08, 2003 10:58 AMTo: acis-alliance@cs.columbia.eduSubject: [Acis-alliance] Grouping FACEsHi,  Is there anyway to group a number of FACEs on a BODY together and combinethem to form a new SHELL? Any help will be greatly appreciated. Sincerely,  Aparajit -------------- next part --------------An HTML attachment was scrubbed...URL: http://cs.columbia.edu/pipermail/acis-alliance/attachments/20030508/a1c4f215/attachment.htmFrom lzguo2001 at cmmail.com  Sat May 10 21:04:25 2003From: lzguo2001 at cmmail.com (lzguo)Date: Sat May 10 08:08:22 2003Subject: [Acis-alliance] How to save ACIS file in ACIS 8.0Message-ID: <000c01c316ec$4d4b2890$af501e0a@t6>Dear acis-alliance members,

  I have forgot how to save sat file. My ACIS version is ACIS 8.0SP5.My program can not save sat file now. Who can help me?
-----------------------------------------This is my program
#include <stdio.h>
#include "kernel/acis.hxx"  
#include "kernel/kernapi/api/api.hxx"  
#include "constrct/kernapi/api/cstrapi.hxx"
#include "kernel/kernapi/api/kernapi.hxx"
#include "kernel/kerndata/top/alltop.hxx"
#include "kernel/kerndata/lists/lists.hxx"
#include "kernel/kerndata/savres/fileinfo.hxx"

logical process(outcome result)
{

  if (!result.ok())  
  {
 print_warnerr_mess("API", result.error_number(), stdout); 
    return FALSE;
  } 
  return TRUE;
}

void save_ent(char *, ENTITY*);

void main()
{
 outcome rc = api_start_modeller(0);
 rc = api_initialize_constructors();
 BODY *cone;
 rc = api_make_frustum(50,20,30,10,cone);
 process(rc);
 save_ent("save_entity.sat",cone);
 ENTITY_LIST list;
 list.add(cone);
 list.init();
 for(int c=0;c>=0;c++)
 {
  ENTITY * an_entity=list.next();
  if(an_entity!=NULL)
  {
   an_entity->copy_scan(list);
  }
  else
   break;
 }
 int number_of_entities=list.count();
 printf("List Length =%d\n",number_of_entities);
 for(c=0;c<number_of_entities;c++)
  printf("ENTITY Number %d is a %s \n",c,list[c]->type_name());
 
// BODY *pris =NULL;
// rc=api_make_prism(100,150,200,7,pris);
// process(rc);
// save_ent("save_entity1.sat",pris);
 rc=api_terminate_constructors();
 rc=api_stop_modeller();
}

void save_ent(char *filename,ENTITY *ent)
{
 logical worked=FALSE;
 FileInfo info;
 info = *save_info;
 info.set_units( info.units());
 worked = process( api_set_file_info( FileUnits, info));

// FileInfo info;
// info.set_product_id("HW_University");
// info.set_units(1.0);
// outcome rc = api_set_file_info(FileId|FileUnits,info);
// process(rc);
 FILE *fp=fopen(filename,"w");
 if(fp!=NULL)
 {
  ENTITY_LIST *savelist=new ENTITY_LIST;
  savelist->add(ent);
  process(api_save_entity_list(fp,TRUE,*savelist));
  delete savelist;
  printf("Save Successful!\n");
 }
 else
  printf("Unable to open file!\n");

 fclose(fp);

----------------------------------------------- -------------- next part --------------An HTML attachment was scrubbed...URL: http://cs.columbia.edu/pipermail/acis-alliance/attachments/20030510/52d74130/attachment.htmFrom leoung99 at hotmail.com  Tue May 13 14:12:35 2003From: leoung99 at hotmail.com (leoung99@hotmail.com)Date: Tue May 13 01:13:26 2003Subject: [Acis-alliance] 	Difficulty in using 3D InterOp Translator(ParaSolid Translator)Message-ID: <BAY8-DAV47pLkTgbLYl00003409@hotmail.com>Hi Sir,

  Recently I learned 3D InterOp Translator,and met some pbs.I tried to find the reason,but not.
As you know,the encapsulation of codes has hiden some important key technology,which,in some way,reduces the chance that I can find the answer to my questions.Why do I say this to you,just wish your help.Here is my questions.

1)outcome api_xparasolid_read( ENTITY_LIST& list, const char* psFileName, const char* logFileName=NULL, logical healFlag = TRUE)
I used this function to read a ParaSolid file(CS_CONROD.X_T).This error appears,"CS_CONROD.X_T  ERROR in api_xparasolid_read".

2)outcome api_xparasolid_write( ENTITY_LIST& list, const char* outFileName, const char* logFileName = NULL)
I used this function to create a ParaSolid file(ps1023.x_t) from a Acis file(ps1023.sat).The run is well,but the parasolid file created is empty.

Now I really need your help.

Thank you
-------------- next part --------------An HTML attachment was scrubbed...URL: http://cs.columbia.edu/pipermail/acis-alliance/attachments/20030513/8954c2f2/attachment.htmFrom leoung99 at hotmail.com  Tue May 13 14:12:46 2003From: leoung99 at hotmail.com (leoung99@hotmail.com)Date: Tue May 13 01:13:57 2003Subject: [Acis-alliance] 	Difficulty in using 3D InterOp Translator(ParaSolid Translator)Message-ID: <BAY8-DAV30jWHXvolBK00003465@hotmail.com>Hi Sir,

  Recently I learned 3D InterOp Translator,and met some pbs.I tried to find the reason,but not.
As you know,the encapsulation of codes has hiden some important key technology,which,in some way,reduces the chance that I can find the answer to my questions.Why do I say this to you,just wish your help.Here is my questions.

1)outcome api_xparasolid_read( ENTITY_LIST& list, const char* psFileName, const char* logFileName=NULL, logical healFlag = TRUE)
I used this function to read a ParaSolid file(CS_CONROD.X_T).This error appears,"CS_CONROD.X_T  ERROR in api_xparasolid_read".

2)outcome api_xparasolid_write( ENTITY_LIST& list, const char* outFileName, const char* logFileName = NULL)
I used this function to create a ParaSolid file(ps1023.x_t) from a Acis file(ps1023.sat).The run is well,but the parasolid file created is empty.

Now I really need your help.

Thank you
-------------- next part --------------An HTML attachment was scrubbed...URL: http://cs.columbia.edu/pipermail/acis-alliance/attachments/20030513/24a8015d/attachment.htmFrom kys at rnd.zuken.co.kr  Mon May 19 12:04:17 2003From: kys at rnd.zuken.co.kr (Kim Yeongsoo)Date: Mon May 19 15:08:35 2003Subject: [Acis-alliance] question about unite operationMessage-ID: <010101c31daa$f4be1690$c4cf24d3@zuken.co.kr>Hello,I am trying to unite a series of bodies and get 2D outline data.But when unite some bodies, it comes out acis error message as following "inconsistent containment of intersection curve" or "conincident face_face_ints with different body edges"... etcDoes anybody know why these messages come out?and How can I avoid this error?Thanks for your help in advance,Kim.****************************************************** ZUKEN KOREA INC. 3F,Dongnam Petrochemical B/D 1001-10, Daechi-dong, Kangnam-ku,Seoul,135-280,KOREA   Name:Kim Yeongsoo     mailto:kys@zuken.co.kr     TEL :02-564-8031        ******************************************************-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030519/76d26f95/attachment.htmFrom pgao at cad.zju.edu.cn  Tue May 20 15:16:27 2003From: pgao at cad.zju.edu.cn (Gao,Peng)Date: Tue May 20 02:15:39 2003Subject: [Acis-alliance] Functions about hiding entityMessage-ID: <200305200615.h4K6FMiN004601@cs.columbia.edu>Dear, all   I am a new user of ACIS. Our group is developing a software for product modeling. In the software, I want to hide a enitity, then display it through menu. I find two fucntions in help, i.e. api_gi_erase_entity() and api_gi_display_entity(). When I invoke  api_gi_erase_entity(), the entity is hided. But when i invoke api_gi_display_entity(), it doesn't work and the entity is still hidden!  Can anybody tell me the right steps of doing it?   Any idea will be greatly appreciated!    				              Gao,Peng              pgao@cad.zju.edu.cn                 2003-05-20

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -