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

📄 2003-november.txt

📁 acis说明文档
💻 TXT
📖 第 1 页 / 共 5 页
字号:
                                          fangzhihua______________________________________===================================================================??????????????????????????????(http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)_______________________________________________Acis-alliance mailing listAcis-alliance@cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom alames at sandia.gov  Tue Nov 25 14:04:54 2003From: alames at sandia.gov (Ames, Arlo)Date: Tue Nov 25 16:05:25 2003Subject: [Acis-alliance] Close gap between EdgesMessage-ID: <03781128C7B74B4DBC27C55859C9D7381139466C@es06snlnt.sandia.gov>Closing gaps is a genuine pain in the neck to get right.  This is one of theprincipal reasons you buy the healing husk.  You don't have to trim a curve, as the vertices limit the edge anyway.  Ihaven't used api_trim_curve, but I suspect it changes the length of theunderlying curve (which is useful for efficiency), but doesn't really affectyour problem.What's really going on is that the edges are either too short, or they areskew in space.  If the curves happen to be straight (which are infinite),they are unlikely to be too short.  More likely is the skew condition.If I were fixing this, I would look at the curve definitions.  If they canbe intersected to provide posiitons near your original vertex positions, theintersection positions can be substituted.  If not, you might be able tomodify the curve equations to provide curves that intersect the vertices.For example, if I had a straight line that was supposed to go through twopositions, I might redefine the straight so that its position was one of thevertex positions, and the vector was the difference of the two vertexpositions.If you're dealing with a complete solid, and have to get all thevertex/edge/surface coincidences right, you might seriously start with thehealing husk, as getting all the changes to be consistent is difficult.Now, if you're not doing a lot of difficult geometric operations (e.g.booleans), you might just ignore the error if it's sufficiently small.  Youcan, for example, facet parts that have really large positional errors andit works OK.  Just be aware that some of your geometric operations may failif you have such errors.Of course, there is a cheap hack.  If the positional errors aresignificantly smaller than the smallest feature of the part (e.g. smallestradius of a circle, etc), you can sometimes get away with scaling the objectdown.  do api_apply_transf(scale_transf(0.1)); api_change_body_trans(NULL);api_apply_transf(scale_transf(10.0);.  The geometry of the part is now 10times smaller, so the gaps are smaller.  The part has a transf on it toscale it up 10 times larger.  DON'T do api_change_body_trans again, oryou're back where you started.  This will close up some gaps.Good luckArlo Ames-----Original Message-----From: Alexander Muthler [mailto:muthler@bv.tum.de]Sent: Tuesday, November 25, 2003 12:04 PMTo: Acis-AllianceSubject: [Acis-alliance] Close gap between EdgesHello ACIS-Alliance,I want to construct a loop of several edges. Adjacent edges should sharethe same VERTEX. But some of of the edges have small gaps (>SPAresabs).Does anybody have an idea how to close these gaps?Can I use api_trim_curve(...)?If yes, do you know how to construct the entity_with_ray, which is usedin this function?Your help would be appreciated.Best Regards,Alex_______________________________________________Acis-alliance mailing listAcis-alliance@cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom fangzhihua422 at sina.com  Fri Nov 28 19:36:56 2003From: fangzhihua422 at sina.com (fangzhihua422)Date: Fri Nov 28 06:37:15 2003Subject: [Acis-alliance]Message-ID: <20031128113656.15633.qmail@sina.com>HI,everybody:
      in the following program,api_loop_external can not run correctly.the warning message is "Access violation".i don't know why.how can we use this function?
void CAcis4Doc::OnFaceSolid() 
{
  int depth = 0;
  api_part_start_state(depth);
  API_BEGIN
 
  BODY* block1=NULL;
  BODY* slot=NULL;
api_solid_block(position(0,0,0),position (40,20,20),block1,NULL); 
api_solid_block(position(10,5,15),position (25,15,20),slot,NULL);
 api_subtract(slot,block1);
 FACE* face;
 LOOP* lp;
 int loopc=0;
 api_find_face(block1,unit_vector(0,0,1),face);
 for(lp=face->loop();lp!=NULL;lp=lp->next())
 {
  loopc++;
  logical* a;
  outcome r2=api_loop_external(lp,a);
  if(!r2.ok())
  {
	err_mess_type err_number=r2.error_number();
	AfxMessageBox(find_err_mess(err_number));//a message box "Access violation"
  }
 }
 m_pAcisDoc->AddEntity(block1);

 API_END
 api_part_note_state( result, depth );
 m_pAcisDoc->InvalidateViews();		
}
______________________________________
===================================================================体验即拍即打,享受佳能影像之旅 (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)From fangzhihua422 at sina.com  Fri Nov 28 19:57:12 2003From: fangzhihua422 at sina.com (fangzhihua422)Date: Fri Nov 28 06:57:28 2003Subject: [Acis-alliance]Message-ID: <20031128115712.7568.qmail@sina.com>HI,everybody:
      in the following program,api_loop_external can not run correctly.the warning message is "Access violation".i don't know why.how can we use this function?
void CAcis4Doc::OnFaceSolid() 
{
  int depth = 0;
  api_part_start_state(depth);
  API_BEGIN
 
  BODY* block1=NULL;
  BODY* slot=NULL;
api_solid_block(position(0,0,0),position (40,20,20),block1,NULL); 
api_solid_block(position(10,5,15),position (25,15,20),slot,NULL);
 api_subtract(slot,block1);
 FACE* face;
 LOOP* lp;
 int loopc=0;
 api_find_face(block1,unit_vector(0,0,1),face);
 for(lp=face->loop();lp!=NULL;lp=lp->next())
 {
  loopc++;
  logical* a;
  outcome r2=api_loop_external(lp,a);
  if(!r2.ok())
  {
	err_mess_type err_number=r2.error_number();
	AfxMessageBox(find_err_mess(err_number));//a message box "Access violation"
  }
 }
 m_pAcisDoc->AddEntity(block1);

 API_END
 api_part_note_state( result, depth );
 m_pAcisDoc->InvalidateViews();		
}
______________________________________
===================================================================体验即拍即打,享受佳能影像之旅 (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)From muthler at bv.tum.de  Fri Nov 28 13:16:15 2003From: muthler at bv.tum.de (Alexander Muthler)Date: Fri Nov 28 07:16:32 2003Subject: [Acis-alliance]In-Reply-To: <20031128115712.7568.qmail@sina.com>Message-ID: <000001c3b5a9$6b592290$a22cbb81@inf.bauwesen.tumuenchen.de>Hi,try: [...]  logical a(FALSE);  outcome r2=api_loop_external(lp, &a);[...]Regards,Alex > -----Original Message-----> From: acis-alliance-bounces@cs.columbia.edu > [mailto:acis-alliance-bounces@cs.columbia.edu] On Behalf Of > fangzhihua422> Sent: Friday, November 28, 2003 12:57 PM> To: acis-alliance@cs.columbia.edu> Subject: [Acis-alliance]> > > HI,everybody:>       in the following program,api_loop_external can not run > correctly.the warning message is "Access violation".i don't > know why.how can we use this function?> void CAcis4Doc::OnFaceSolid() > {>   int depth = 0;>   api_part_start_state(depth);>   API_BEGIN>  >   BODY* block1=NULL;>   BODY* slot=NULL;> api_solid_block(position(0,0,0),position (40,20,20),block1,NULL); > api_solid_block(position(10,5,15),position (25,15,20),slot,NULL);>  api_subtract(slot,block1);>  FACE* face;>  LOOP* lp;>  int loopc=0;>  api_find_face(block1,unit_vector(0,0,1),face);>  for(lp=face->loop();lp!=NULL;lp=lp->next())>  {>   loopc++;>   logical* a;>   outcome r2=api_loop_external(lp,a);>   if(!r2.ok())>   {> 	err_mess_type err_number=r2.error_number();> 	AfxMessageBox(find_err_mess(err_number));//a message > box "Access violation">   }>  }>  m_pAcisDoc->AddEntity(block1);> >  API_END>  api_part_note_state( result, depth );>  m_pAcisDoc->InvalidateViews();		> }> > ______________________________________> > ===================================================================> ?????????????????????????????? > (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.h> tml)> > _______________________________________________> > Acis-alliance mailing list> Acis-alliance@cs.columbia.edu> http://lists.cs.columbia.edu/mailman/listinfo/acis-alliance> From muthler at bv.tum.de  Fri Nov 28 14:25:17 2003From: muthler at bv.tum.de (Alexander Muthler)Date: Fri Nov 28 08:25:24 2003Subject: [Acis-alliance] share geometry of entitiesMessage-ID: <000001c3b5b3$105168d0$a22cbb81@inf.bauwesen.tumuenchen.de>Dear Acis-Alliance,I have several BODYs (spline sheets) which are adjacent, but eachentitiy has ist own geometry. Is there a  method or function whichidentifies the coincident CURVES or APOINTS and shares one of these withone or more adjacent EDGES resp. VERTEXes.Your help would be appreciated.Best Regards,AlexFrom manoj_acis at yahoo.com  Sun Nov 30 11:22:17 2003From: manoj_acis at yahoo.com (manoj j)Date: Sun Nov 30 14:22:24 2003Subject: [Acis-alliance] 	How do I create ACIS object dynamically (using new operator)??Message-ID: <20031130192217.31952.qmail@web12905.mail.yahoo.com>Hi AllHow do I create ACIS object dynamically (using new operator)??I tried following:position *p = new position;which I think should work, but it gives an error saying, "error C2661: 'new' : no overloaded function takes 3 parameters"Thanks in advance for your help.Manoj.---------------------------------Do you Yahoo!?Free Pop-Up Blocker - Get it now-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031130/e2640ed1/attachment.htmFrom manoj_acis at yahoo.com  Sun Nov 30 11:26:30 2003From: manoj_acis at yahoo.com (manoj j)Date: Sun Nov 30 14:26:40 2003Subject: [Acis-alliance] URGENT: How to display "bs3_surface" in VC++.In-Reply-To: <03781128C7B74B4DBC27C55859C9D73811394647@es06snlnt.sandia.gov>Message-ID: <20031130192630.25211.qmail@web12902.mail.yahoo.com> Hi Ames, Arlo and All,As per your (Ames, Arlo)  explanaion to my previous query "How to display a bs3_surface", I try to create a object of "spline" with bs3_surface that I have.  Now the next question is to use this "spline" object to display the surface. For that I tried using "api_make_spline", but it gives an error. IF I check 'outcome' object returned by this api call, its "error_number" method has returned error number "6015".  I will be very much thankful to you if you could guide me further to display this surface.Thanks and RegardsManoj."Ames, Arlo" <alames@sandia.gov> wrote:If you are trying to display the surface using builtin ACIS rendering commands, you might be failing because you aren't feeding it the right entity types.  The ACIS topology entities (BODY, LUMP, SHELL, FACE, LOOP, COEDGE, EDGE, VERTEX) are used to define solids.  Underlying FACE, we find SURFACE, and under SURFACE we find surface, of which bs3_surface is a subtype.  If you want to draw using builtin routines,you need to build a FACE, maybe even a BODY containing a LUMP, containing a SHELL, containing a FACE.  The face will have a SURFACE which has your bs3_surface, and will require a LOOP, which consists of a ring of COEDGES, each of which has an EDGE, and adjacent EDGES in the ring of coedges share VERTEX entities.  THe EDGEs will have to have CURVEs, which correspond to the edges of your bs3_surface, and the VERTEXs will have APOINTS, whose coordinates are the same as the corners of your bs3_surface. I leave it to you to find the functions to construct the topology.  There are a number of such functions, and which are appropriate depends on what you are doing.  I personally find that direct construction isn't a bad way to go, but there are a lot of api functions that result in shorter code that you might understand better. A different approach is to find an api function that constructs the surface you need within the context of a FACE or a BODY.  Again, it's yours to search the documentation.  Arlo Amesalames@sandia.gov-----Original Message-----From: manoj j [mailto:manoj_acis@yahoo.com]Sent: Wednesday, November 12, 2003 6:57 PMTo: Acis-alliance@cs.columbia.eduSubject: [Acis-alliance] URGENT: How to display "bs3_surface" in VC++.Hi All,I am a new to this ACIS & VC++ environment.  I am using "bs3_surface" function in my code and want to display it. But I am finding it difficult. I am urgently required the help. I will appreciate your valuable help. If possible you could mail me some useful code that would enhance my knowledge.Thanks,Manoj---------------------------------Do you Yahoo!?Protect your identity with Yahoo! Mail AddressGuard---------------------------------Do you Yahoo!?Free Pop-Up Blocker - Get it now-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031130/7a026722/attachment.htmFrom sbrooks2 at kc.rr.com  Sun Nov 30 14:45:32 2003From: sbrooks2 at kc.rr.com (Steve Brooks)Date: Sun Nov 30 15:45:50 2003Subject: [Acis-alliance]	How do I create A

⌨️ 快捷键说明

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