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

📄 2004-december.txt

📁 acis说明文档
💻 TXT
📖 第 1 页 / 共 2 页
字号:
 Additional information is that there are differences for the two casesin the mmgr.log file. The first several lines of mmgr.log from theworking project are as follows. *** Beginning Leak Dump ***D:\build\acisr10\NTS\kern\kernel\spline\agspline\bs3_crv\c3curve.cxx(182) : {0000000526} at 0x01DFFF30 32 Bytes Type: 1 Call: 27D:\build\acisr10\NTS\kern\kernel\spline\agspline\bs3_crv\c3curve.cxx(182) : {0000000525} at 0x01DFFF80 32 Bytes Type: 1 Call: 27D:\build\acisr10\NTS\kern\kernel\spline\agspline\bs3_crv\c3curve.cxx(182) : {0000000524} at 0x01DFFFD0 32 Bytes Type: 1 Call: 27  While the first several lines of the mmgr.log from the dll are asfollows. *** Beginning Leak Dump ***unknown(0) : {0000000115} at 0x01376240 9600 Bytes Type: 1 Call: 15unknown(0) : {0000000114} at 0x01373C88 9600 Bytes Type: 1 Call: 15unknown(0) : {0000000113} at 0x013716D0 9600 Bytes Type: 1 Call: 15D:\build\acisr10\NTS\kern\kernel\spline\aglib\aglib_thread_ctx.c(121) :{0000000046} at 0x013280A0 296448 Bytes Type: 1 Call: 2 Does anybody know what the problem could be? Any setting I need to makefor my C++ project? Does anybody know what the unknown(0) mean? I will appreciate any help. Thanks. Zhao Dong  ZHAO, Dong ------------------------------------------------- Computational Biomechanics Lab.                  Department of Mechanical & Aerospace EngineeringUniversity of Florida-------------------------------------------------  -------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041220/28375cf9/attachment-0001.htmlFrom Nilesh.Joshi at asu.edu  Tue Dec 21 16:44:19 2004From: Nilesh.Joshi at asu.edu (Nilesh Joshi)Date: Tue Dec 21 16:49:01 2004Subject: [Acis-alliance] ACIS BUG (most likely)In-Reply-To: <000901c4e6af$78254430$a82ae30a@mae.ufl.edu>Message-ID: <IKEJINCPIFDAJOBCMLDKKENJCKAA.Nilesh.Joshi@asu.edu>Hi guys,There are problems with ACIS to 203 translators with units.interesting test case:1. one has a model in ACIS running. (lets say a point P1(10,10,10))    Note that ACIS is in CM units.2. Convert the ACIS entity list to STEP AP 203.    BY default ACIS converts to MM. (so the points goes to P2(100,100,100)but in MM so its equivalent)3. Convert this 203 file to some other entity list in ACIS in the sameprogram.    since ACIS is still in CM, ideally it should change all values to beconsistent in CM.    but it takes only the values from AP 203 file and assumes that the unitsare CM.    i.e. the point now becomes P3(100,100,100) in CM    i.e. the object gets scaled 10 times.I ran multiple test cases and here is the point result:POINTS COMPARISONORIGINAL POINT                AFTER CONVERSION0 0 25                                   0 0 2500 -50 25                                0 -500 250100 -50 25                            1000 -500 250100 0 25                               1000 0 25065 -30 25                               650 -300 25065 -30 0                                 650 -300 00 -50 0                                   0 -500 00 0 0                                      0 0 0100 -50 0                               1000 -500 0100 0 0                                  1000 0 0Since while creating this output, whichever units ACIS is working in, beingthe same point, shouldn't it give me consistent values.Please let me know if I am missing something.Thank you.With Regards-Nilesh JoshiDesign Automation LaboratoryArizona State University*Engineering problems are under-defined, there are many solutions, good, badand indifferent. The art is to arrive at a good solution. This is a creativeactivity, involving imagination, intuition and deliberate choice. - Ove Arup-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041221/084ae6b0/attachment.htmlFrom zz_zxc123 at 163.com  Mon Dec 27 03:56:03 2004From: zz_zxc123 at 163.com (=?gb2312?B?1cXRp7L9?=)Date: Mon Dec 27 03:57:38 2004Subject: [Acis-alliance] Help about Acis Ray-testMessage-ID: <41CFCE23.00016F.00355@m248.163.com>Hello,everybody.
 
    Happy new year!!!!
 
   I met a question about ray-test in acis.
    I open a solid block and set a position(23,25,25) inside the block. Then use the function of api_ray_test_body() to test the hit-wanted. By the way, the ray direction is the block face normal and direct to outside of the block. I think that all faces shoud be hitted,but the result is that a face is not hitted.
     When I change the loop variant L from 0 to 4 and  from 4 to 6, all face were hitted.But why L is from 0 to gl(6), there is the face not hitted. Is it a bug of api_ray_test_body() or ...
  

  
    any answer is welcome.
 
 
zhang xuechang
 
 
void CHoop3View::OXXX() 
{
  int eclass;
  ENTITY* entity;
  outcome o;
  ENTITY_LIST ray_face;
  ENTITY_LIST Result;
  ENTITY_LIST entity_list;
  
  SPAposition* m_rootpoint;
  SPAunit_vector* m_normaldir;
 
  BODY* body;
 
  if(!(GetDocument()->GetAHDoc()->GetPart()->is_empty()))
  {
   
   GetDocument()->GetAHDoc()->GetPart()->get_entities(entity_list,NULL);
   int num=entity_list.iteration_count();
   for(int i=0;i<num;i++)
   {
   entity=entity_list[i];
   eclass=entity->identity();
   body=(BODY*)entity;
   if(eclass == BODY_TYPE )
   {
    int numshells = 0;
    ENTITY_LIST shells;
    o = api_get_shells( entity, shells);
    numshells = shells.count();
    for (int shellnum=0;shellnum<numshells;shellnum++)
    {
    int numfaces;
    ENTITY_LIST faces;
    o = api_get_faces( entity, faces);
    numfaces = faces.count();
    ENTITY* m_Face;
    for(int i=0;i<numfaces;i++)
    {   m_Face=faces[i];
     Face_List.add(m_Face);
    }
    }
   }
   }
 
  int gl=Face_List.iteration_count();

  m_normaldir=new SPAunit_vector[gl];
  BOOL flag;
  FACE* entity1;
  for(int l=0; l<gl;l++)
  {
   entity1=(FACE*)Face_List[l];
   if(entity1->sense()==1) flag=TRUE;
   else
    flag=FALSE;
   SURFACE* fs=entity1->geometry();
  
   if(fs->identity()==PLANE_TYPE){
    if(flag) m_normaldir[l]=-((PLANE*)fs)->normal();
      else
       m_normaldir[l]=((PLANE*)fs)->normal();
   }
 
  m_rootpoint[l].x()=23.0;
  m_rootpoint[l].y()=25.0;
  m_rootpoint[l].z()=25.0;
 
  double* param;
  API_BEGIN
  ray_face.clear();
  o=api_ray_test_body(m_rootpoint[l],m_normaldir[l],0.8,1,body,ray_face,param);
  GetDocument()->GetAHDoc()->GetAHBaseModel()->Highlight(ray_face[0],true);
  check_outcome(o);
  API_END 

   }
         
  }
 
}-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041227/f95168e2/attachment.htmlFrom zz_zxc123 at sjtu.edu.cn  Mon Dec 27 02:08:57 2004From: zz_zxc123 at sjtu.edu.cn (zhangxuechang)Date: Mon Dec 27 09:57:36 2004Subject: [Acis-alliance] Help about ACIS Ray testMessage-ID: <001001c4ebe2$ef2b38e0$6500a8c0@zxc>Skipped content of type multipart/alternative-------------- next part --------------A non-text attachment was scrubbed...Name: not availableType: image/jpegSize: 9717 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041227/3811780d/attachment-0003.jpe-------------- next part --------------A non-text attachment was scrubbed...Name: not availableType: image/jpegSize: 7867 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041227/3811780d/attachment-0004.jpe-------------- next part --------------A non-text attachment was scrubbed...Name: not availableType: image/jpegSize: 7862 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041227/3811780d/attachment-0005.jpeFrom zz_zxc123 at sjtu.edu.cn  Mon Dec 27 03:27:37 2004From: zz_zxc123 at sjtu.edu.cn (zhangxuechang)Date: Mon Dec 27 09:57:43 2004Subject: [Acis-alliance] help about Acis Ray-testMessage-ID: <001701c4ebed$ebffc180$6500a8c0@zxc>Hello,xie.

    Happy new year!!!!

    I met a question about ray-test in acis.
    I open a solid block and set a position(23,25,25) inside the block. Then use the function of api_ray_test_body() to test the hit-wanted. By the way, the ray direction is the block face normal and direct to outside of the block. I think that all faces shoud be hitted,but the result is that a face is not hitted.
     When I change the loop variant L from 0 to 4 and  from 4 to 6, all face were hitted.But why L is from 0 to gl(6), there is the face not hitted. Is it a bug of api_ray_test_body() or ...
  
    any answer is welcome.


zhang xuechang


void CHoop3View::OXXX() 
{
  int eclass;
  ENTITY* entity;
  outcome o;
  ENTITY_LIST ray_face;
  ENTITY_LIST Result;
  ENTITY_LIST entity_list;
  
  SPAposition* m_rootpoint;
  SPAunit_vector* m_normaldir;

  BODY* body;
 
  if(!(GetDocument()->GetAHDoc()->GetPart()->is_empty()))
  {
   
   GetDocument()->GetAHDoc()->GetPart()->get_entities(entity_list,NULL);
   int num=entity_list.iteration_count();
   for(int i=0;i<num;i++)
   {
   entity=entity_list[i];
   eclass=entity->identity();
   body=(BODY*)entity;
   if(eclass == BODY_TYPE )
   {
    int numshells = 0;
    ENTITY_LIST shells;
    o = api_get_shells( entity, shells);
    numshells = shells.count();
    for (int shellnum=0;shellnum<numshells;shellnum++)
    {
    int numfaces;
    ENTITY_LIST faces;
    o = api_get_faces( entity, faces);
    numfaces = faces.count();
    ENTITY* m_Face;
    for(int i=0;i<numfaces;i++)
    {   m_Face=faces[i];
     Face_List.add(m_Face);
    }
    }
   }
   }
 
  int gl=Face_List.iteration_count();

  m_normaldir=new SPAunit_vector[gl];
  BOOL flag;
  FACE* entity1;
  for(int l=0; l<gl;l++)
  {
   entity1=(FACE*)Face_List[l];
   if(entity1->sense()==1) flag=TRUE;
   else
    flag=FALSE;
   SURFACE* fs=entity1->geometry();
  
   if(fs->identity()==PLANE_TYPE){
    if(flag) m_normaldir[l]=-((PLANE*)fs)->normal();
      else
       m_normaldir[l]=((PLANE*)fs)->normal();
   }

  m_rootpoint[l].x()=23.0;
  m_rootpoint[l].y()=25.0;
  m_rootpoint[l].z()=25.0;

  double* param;
  API_BEGIN
  ray_face.clear();
  o=api_ray_test_body(m_rootpoint[l],m_normaldir[l],0.8,1,body,ray_face,param);
  GetDocument()->GetAHDoc()->GetAHBaseModel()->Highlight(ray_face[0],true);
  check_outcome(o);
  API_END 

   }
         
  }

}-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041227/1da99485/attachment.htmlFrom Nilesh.Joshi at asu.edu  Wed Dec 29 03:20:05 2004From: Nilesh.Joshi at asu.edu (Nilesh Joshi)Date: Wed Dec 29 03:22:40 2004Subject: [Acis-alliance] comparing ACIS facesIn-Reply-To: <001701c4ebed$ebffc180$6500a8c0@zxc>Message-ID: <IKEJINCPIFDAJOBCMLDKKEPNCKAA.Nilesh.Joshi@asu.edu>Hi,My task is compare 2 sets of ACIS faces.1 set if before merge_faces command is executed and one is after that.I am struggling to map the two sets of ACIS faces with each other.I have tried1. take a point on the face before conversion and check if the pointdistance from a face is less than 1e-4. But this gives me invalid mapping.Dont know why!!    a. using test_point_tol    b. api_entity_point_distance :: it gives absurd distances    c. api_ptent_rel    :: says the point is always OFF the face.2. I can not compare vertices since some vertices vanish due to merge.BTW, I am taking the point using the function: par_box.mid()Does anyone have any suggestion?With Regards-Nilesh JoshiDesign Automation LaboratoryArizona State University*Engineering problems are under-defined, there are many solutions, good, badand indifferent. The art is to arrive at a good solution. This is a creativeactivity, involving imagination, intuition and deliberate choice. - Ove Arup-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041229/5058dc3a/attachment.htmlFrom xlr_yzy at 163.com  Thu Dec 30 02:43:28 2004From: xlr_yzy at 163.com (=?gb2312?B?eGxyX3l6eQ==?=)Date: Thu Dec 30 02:44:02 2004Subject: [Acis-alliance] how to create a wcs?Message-ID: <41D3B1A0.00012F.17759@m185.163.com>hello acis-alliance!
I want to create a wcs using api_wcs_create ,
but it can't work ,i don't know why.
(Is the api-function that i choose wrong ?)
here is the code :
...
WCS *pWcs;
position origin(0,0,0);
position xpt(1,0,0);
position ypt(0,1,0);	
api_wcs_create(origin,xpt,ypt,pWcs);
...
thank you,any help will be appreciated!

Liru-Xu

-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20041230/d4692c5a/attachment.html

⌨️ 快捷键说明

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