📄 2003-september.txt
字号:
From: Boehne, Robert [ mailto:Robert.Boehne@ricardo.com] Sent: Saturday, September 13, 2003 2:16 AM To: acis-alliance@cs.columbia.edu Subject: [Acis-alliance] Centroid 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 Boehne Software Engineer Ricardo Software Chicago Technical Center -------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030915/f212a0e7/attachment.htmFrom ywenbo at tom.com Tue Sep 16 12:03:14 2003From: ywenbo at tom.com (ywenbo@tom.com)Date: Mon Sep 15 23:04:11 2003Subject: [Acis-alliance] Whether the acisR10 support chineseMessage-ID: <3F667D72.00000C.17406@bjapp4>Hello everybody,Whether the acisR10 support chinese, I used chinese in the menu and status bar, but it display in chaos.I used MSVC++ to create a acis application. At step 1, what language would you like your resource in? There is only APPWZENU.DLL.what shoud I do if I want to use chinese.Any help is appreciated.-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030916/e6783dd8/attachment.htmFrom alames at sandia.gov Tue Sep 16 09:51:52 2003From: alames at sandia.gov (Arlo L. Ames)Date: Tue Sep 16 10:52:20 2003Subject: [Acis-alliance] tangential planeIn-Reply-To: <3F66CFE1.21F4883D@ims.tuwien.ac.at>References: <03781128C7B74B4DBC27C55859C9D73811394598@es06snlnt.sandia.gov> <3F66CFE1.21F4883D@ims.tuwien.ac.at>Message-ID: <3F672388.90206@sandia.gov>Wait a minute --what about api_silhouette edges? It computes the edges you'd see from a given point in space. It's used for computing line drawings (including hidden line drawings). Points along the silhouette edges are points where a vector from the viewing direction (or viewing point, for a perspective transformation) is tangent to the surface. Note, though, that the silhouette edges aren't everything, as your FACE might go tangent at the surface boundaries, or along already-existing edges of the face. So, you should check those edges as well.ArloHannes Kaufmann wrote:>Dear Ames,>thank you very much for your response.>> >>>api_entity_entity_distance will find the closest point on the surface.>>After that, look at the SURFACE routines to determine how to find the plane>>tangent at the point.>> >>>>Thanks, I already did that and also found a very convenient method to do>it. sg_get_face_normal(FACE* face, SPAposition p) (not documented in the>ACIS 11 help but it is in the headers and not deprecated)> > >>>If, instead, you are looking for a plane through the point that is tangent>>to the surface, I don't offhand know of a method in ACIS to do it. I'd be>>digging through differential geometry books and curve and surface literature>>at that point.>> >>>>Yes, that's exactly what I wanted. I looked through all ACIS methods but>could not find one doing exactly that.>I thought through some ideas.. ranging from converting the problem into>dual space - this would allow very easy handling of developable surfaces>(which become curves in dual space) which I only have to intersect with>a plane (which is the point in dual space). I do not know how to do it>for general surfaces though. >Another idea was to exploit the ACIS api_shadow_taper_faces method to>get curves on the surface (= the isophotes if lighted from the given>point) where possible tangent planes touch. I do not think that this>would work either, it does not look like the acis methods would do what>I need. There does not seem to be an ACIS method which returns isophotes>on surfaces.>The last idea that I have is some approximate approach - trying to get>near possible touching points on the surface by calculating tangential>planes in various points on the surface.>>I did not come much closer to the solution yet.>>Best wishes and thank you for your response,>Hannes>>> >From zhengshu.shen at asu.edu Tue Sep 16 10:58:48 2003From: zhengshu.shen at asu.edu (shen)Date: Tue Sep 16 12:58:43 2003Subject: [Acis-alliance] are there loft and revolve APIs?Message-ID: <3F674148.53DF46D1@asu.edu>Hello!Does anyone know how to create a BODY like this?[Image]The cross sections are bounded by circular and spline curves. It wouldbe easy to define the spline and then "revolve" it around the axis. Butit seems that ACIS does NOT offer such "revolve" functionality, or icannot find it. Or does ACIS have "loft" APIs?Can anyone offer some kind help? Thanks a lot!Shen-------------- next part --------------Skipped content of type multipart/relatedFrom lzguo at mail.com Wed Sep 17 21:07:35 2003From: lzguo at mail.com (liu zhiguo)Date: Wed Sep 17 21:08:18 2003Subject: [Acis-alliance] some questions on acisMessage-ID: <20030918010735.19877.qmail@mail.com>Hi everyone of acis-alliance, I have import some data of surface. There should be no gaps between them, but the data will not be perfect because of different tolerances of data formats. I want to find the gaps and replace it by changing the boundary of some surface. And there are lots of work after step. Now I have some questions of ACIS on this task: Suppose I have the array of surfaces and edges : surf[M], Edge[N] and Surf_Edge[M,N] will contain the relation between each surface and edge. 1. Does ACIS have any function to determine if two edge are superposition? How to use it? If not, how can I confirm if two surfaces has a gap between them?2. About box, which function can get the box of a edge? Maybe the edge is NURBS or spline. Should I use different functions on different kind of edge?3.How to judge if an edge and a box are intersecting. Or two boxes are intersecting? Any help will be apprecaited.Thanks a lot.Best regards,Liu zhiguo2003-9-16-- __________________________________________________________Sign-up for your own personalized E-mail at Mail.comhttp://www.mail.com/?sr=signupCareerBuilder.com has over 400,000 jobs. Be smarter about your job searchhttp://corp.mail.com/careersFrom lzguo at mail.com Thu Sep 18 10:34:31 2003From: lzguo at mail.com (liu zhiguo)Date: Wed Sep 17 21:34:43 2003Subject: [Acis-alliance] error LNK2001: unresolved external symbolMessage-ID: <7764C15911BA.AAA4395@mail.jlu.edu.cn> Hi ywenbo, Your Link error maybe is caused by your VC project setting. Please check your project settting(ALT + F7) about the following items:1 . C/C++ --- code generation : Debug Multithreaded Dll2 . C/C++ --- preprocessor --- additional include directory:,$(A3DT)\abl,$(A3DT)\adm,$(A3DT)\admgi,$(A3DT)\agm,$(A3DT)\amain,$(A3DT)\amfc,$(A3DT)\base,$(A3DT)\blnd,$(A3DT)\bool,$(A3DT)\br,$(A3DT)\clr,$(A3DT)\covr,$(A3DT)\cstr,$(A3DT)\ct,$(A3DT)\ds,$(A3DT)\eulr,$(A3DT)\examples,$(A3DT)\fct,$(A3DT)\ga,$(A3DT)\gi,$(A3DT)\gl,$(A3DT)\heal,$(A3DT)\igl,$(A3DT)\ihl,$(A3DT)\intr,$(A3DT)\kern,$(A3DT)\law,$(A3DT)\lop,$(A3DT)\lopt,$(A3DT)\ofst,$(A3DT)\oper,$(A3DT)\part,$(A3DT)\phl,$(A3DT)\pid,$(A3DT)\rbase,$(A3DT)\rbi,$(A3DT)\rem,$(A3DT)\sbool,$(A3DT)\shl,$(A3DT)\skin,$(A3DT)\step,$(A3DT)\stitch,$(A3DT)\swp,$(A3DT)\tb,$(A3DT)\tkmain,$(A3DT)\warp,$(A3DT)\vm,$(A3DT)\ha_bridge3. Link --- input --- additional libary path: $(A3DT)\lib\$(ARCH)4. C/C++ --preprocessor--- preprocessor definitions: NT,ACIS_DLLYou should set your enviroment variable frist: A3DT = ACIS R10 directory path ARCH = path to the dlld library path = acis install directoryI have compiled your program, it passed and ran well.Hope this can help you.Lzguo2003-9-16 From ywenbo at tom.com Thu Sep 18 12:53:38 2003From: ywenbo at tom.com (ywenbo@tom.com)Date: Wed Sep 17 23:53:57 2003Subject: [Acis-alliance] how to display the splineMessage-ID: <3F692C42.00001D.21109@bjapp12>Hello everybody,I am using acisR10, I have the following code in a project to create a spline:int degree=4;int rational=FALSE;int closed=FALSE;int periodic=FALSE;int num_ctrlpts=6;SPAposition ctrlpts[6]={SPAposition(10,15,0),SPAposition(20,25,0),SPAposition(40,25,0),SPAposition(60,5,0),SPAposition(80,15,0),SPAposition(80,30,0),};double weights[1];weights[0]=(double)NULL;double point_tol=SPAresabs;int num_knots=9;double knots[9]={0,0,0,0,0.5,1,1,1,1};double knot_tol=SPAresabs;EDGE* spline=NULL;api_mk_ed_int_ctrlptsdegree,rational,closed,periodic,num_ctrlpts,ctrlpts,weights,point_tol,num_knots,knots,knot_tol,spline);how to display the spline? what should be prepared? which function should be used?Any help is appreciated.-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030918/b509dc50/attachment.htmFrom alames at sandia.gov Thu Sep 18 09:52:28 2003From: alames at sandia.gov (Arlo L. Ames)Date: Thu Sep 18 10:53:10 2003Subject: [Acis-alliance] some questions on acisIn-Reply-To: <20030918010735.19877.qmail@mail.com>References: <20030918010735.19877.qmail@mail.com>Message-ID: <3F69C6AC.4010900@sandia.gov>liu zhiguo wrote:>Hi everyone of acis-alliance,>> I have import some data of surface. There should be no gaps between them, but the data will not be perfect because of different tolerances of data formats. I want to find the gaps and replace it by changing the boundary of some surface. And there are lots of work after step.> Now I have some questions of ACIS on this task:> Suppose I have the array of surfaces and edges : surf[M], Edge[N] and Surf_Edge[M,N] will contain the relation between each surface and edge. >1. Does ACIS have any function to determine if two edge are superposition? How to use it? If not, how can I confirm if two surfaces has a gap between them?>Every face has a pointer to a LOOP (which can point to other LOOPS). Each LOOP as a pointer to a COEDGE (which can point to other COEDGEs). Each COEDGE has an EDGE. Each COEDGE has a member called partner, which points to another COEDGE. Two FACES, face1 and face2, are adjacent if a face1->loop()[->next()...]->start()[->next()...]->partner()->loop->face(). The next().. items refer to the possibility of having to look at a potentially large number of next pointers. If you find such relationship, you the ask the FACE for it's SURFACE and the COEDGE for it's EDGE's CURVE (you can look up the appropriate member functions) and you have the requisite information.>2. About box, which function can get the box of a edge? Maybe the edge is NURBS or spline. Should I use different functions on different kind of edge?>try get_edge_box(). There may be a more modern thing that does this, but get_edge_box is adequate. Note that the box will be in the local coordinate frame of the containing BODY (if there is one) -- you might need, in some applications, to ask the EDGE if it has a COEDGE which has a LOOP which has a FACE which has a SHELL which has a LUMP which has a BODY which has a TRANSFORM which you would want to apply to the box. (or if you'd rather do api_change_body_trans(BODY, NULL) to push the transform through the body and then work in global coordinates, with the caveat that the transformation can open up the gaps you're trying so hard to close, but with the advantage of tighter boxes.>3.How to judge if an edge and a box are intersecting. Or two boxes are intersecting? > >box&&box will tell you if two boxes intersect. To really know whether the edge and the box intersect is significantly more work, requiring constructing plane entities for each of the box boundaries and doing a curve-surface intersection.>Any help will be apprecaited.>>Thanks a lot.>>Best regards,>>Liu zhiguo>2003-9-16>> >From lzguo at mail.com Fri Sep 19 16:05:08 2003From: lzguo at mail.com (liu zhiguo)Date: Fri Sep 19 03:05:07 2003Subject: [Acis-alliance] question on stitch and healingMessage-ID: <7764C1C364E.AAA3036@mail.jlu.edu.cn>Hi everyone of aics-alliance, I want to use healing of acis. But I do not know how to use it correctly. This is my codes :void CACISR10Doc::OnHealData() { // TODO: Add your command handler code here PART *pCurPart = m_pAcisDoc->Part() ; ENTITY_LIST all_faces; pCurPart->get_entities(all_faces); all_faces.init(); BODY * stitch_body; API_BEGIN api_initialize_healing(); api_initialize_stitching(); api_stitch(stitch_body,all_faces,EXACT_STITCH_TYPE,NULL); api_terminate_stitching(); api_hh_auto_heal(stitch_body,NULL); api_terminate_healing(); API_END}When I compiled it , the error is:E:\lzgprogram\ACISR10\ACISR10Doc.cpp(694) : error C2665: 'api_stitch' : none of the 2 overloads can convert parameter 2 from type 'class ENTITY_LIST'Who can tell me how to use healing, and should I stitch the part before healing? Any help will be apprecaited. Liu zhiguo2003-9-19From zhengshu.shen at asu.edu Tue Sep 23 21:29:01 2003From: zhengshu.shen at asu.edu (shen)Date: Tue Sep 23 23:44:37 2003Subject: [Acis-alliance] index acis-allianceMessage-ID: <3F710F7D.DB150B80@asu.edu>index acis-allianceFrom zhengshu.shen at asu.edu Tue Sep 23 23:18:31 2003From: zhengshu.shen at asu.edu (shen)Date: Wed Sep 24 01:21:14 2003Subject: [Acis-alliance] output to postcript format and picking issuesMessage-ID: <3F712927.D753E0BC@asu.edu>Hello!Can anyone help me regarding the following two things, please?1). how to dump 3D views (ACIS View) to a postscript file?2). to prove my research ideas, i need to build my implementaion upon aninteractive 2D sketcher. Anybody has experience with building a sketcherusing ACIS? i can i make a auto-snap and focus work for mouse pickingand filter? Are there any doc for this aspect?Thanks you so much for any kind help and suggestions you can give me.Best regards,Shen--================================================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 huangyb at hustcad.com Sat Sep 27 13:04:14 2003From: huangyb at hustcad.com (=?gb2312?B?u8bUy7Gj?=)Date: Fri Sep 26 23:58:35 2003Subject: [Acis-alliance] Re: Acis-alliance Digest, Vol 6, Issue 12Message-ID: <200309270358.h8R3wAKc029923@ober.cs.columbia.edu>acis-alliance-request,
I open two sat files and add openning entity to ha_part. when colsing one of doc, the entity in other doc disappeared.Can anyone helpe me to explaine this ?
huangyb@hustcad.com
2003-09-27
-------------- next part --------------A non-text attachment was scrubbed...Name: fox.gifType: image/gifSize: 9519 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030927/fe4fb41c/fox.gifFrom lzguo at mail.com Sat Sep 27 02:43:13 2003From: lzguo at mail.com (liu zhiguo)Date: Sat Sep 27 02:43:24 2003Subject: [Acis-alliance] some questions on acisMessage-ID: <20030927064313.31906.qmail@mail.com>Thank you, Arlo L.Ames. I am a new comer of ACIS, so i still have the following detailed questions to ask acis-alliance members.1. On how to get the adjacent face of face1: If there are maybe a gap between two faces, can your method still get the rigth result? Additionally, can you write a sample to tell me how to use face1->loop()[->next()...]->start()[->next()...]->partner()->loop->face() ? My former plan is to judge if two boxes of two faces are intersecting, if so, I consider the two faces are adjacent. 2. If a have a entity_list of several faces, how can I establish a new entity_list of edge to save all the edges of these faces? can you give me an example code?Best regards,Liu zhiguo2003-9-27--
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -