📄 2003-december.txt
字号:
From fangzhihua422 at sina.com Tue Dec 2 12:25:06 2003From: fangzhihua422 at sina.com (fangzhihua422)Date: Mon Dec 1 23:25:42 2003Subject: [Acis-alliance]Message-ID: <20031202042506.7515.qmail@sina.com>Hi,every one.
i make a solid block in MFC,and use the method m_pAcisDoc->AddEntity(entity*) to display it ,then i want to delete the block,and add a new body in the document.how can i do this.
fangzhihua______________________________________
===================================================================From jr8b8 at umr.edu Mon Dec 1 22:30:02 2003From: jr8b8 at umr.edu (Ramesh, Jayant (UMR-Student))Date: Mon Dec 1 23:31:01 2003Subject: [Acis-alliance] hollow cylinderMessage-ID: <B6548610C5020A47AB0E19DB8F80252B18B8D3@umr-mail1.umr.edu>I need to make a" T " shaped object. But I need to make them using twohollow intersecting cylinders. How do I do it ?Thanks *******************************************Jayant RameshGraduate Research AssitantSmart Structures Lab, Intelligent Systems CenterDepartment of Mechanical EngineeringUniversity of Missouri - Rolla573-368-4251(R) 573-341-6558(O)www.umr.edu/~jr8b8 -------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031201/767e56bb/attachment.htmFrom paulin at mip.sdu.dk Tue Dec 2 10:06:32 2003From: paulin at mip.sdu.dk (Mads Paulin)Date: Tue Dec 2 04:07:45 2003Subject: [Acis-alliance] NURBS surface dataMessage-ID: <1070355992.2104.5.camel@M2400N>Hi,I have loaded some objects into an ENTITY_LIST, and now I need to getthe control points, knot vectors, weights and param intervals for theNURB representation of each face in this list, in order to constructOpenGL nurb-objects for rendering.Does anyone know an easy method for extracting this data from the list??Thanks in advance,Mads PaulinFrom Robert.Boehne at ricardo.com Tue Dec 2 10:15:03 2003From: Robert.Boehne at ricardo.com (Boehne, Robert)Date: Tue Dec 2 11:15:42 2003Subject: [Acis-alliance] hollow cylinderMessage-ID: <1FDD58CAB1E3B4418D821B678F5AA8183FF048@ctc-ex2k.dtc.ricplc.com>The most straightforward way is to create four cylinders, two for the inside, two for the outside. Boolean Union each pair, then subtract the inside from the outside. HTH, Robert-----Original Message-----From: Ramesh, Jayant (UMR-Student) [mailto:jr8b8@umr.edu]Sent: Monday, December 01, 2003 10:30 PMTo: acis-alliance@cs.columbia.eduSubject: [Acis-alliance] hollow cylinderI need to make a" T " shaped object. But I need to make them using two hollow intersecting cylinders. How do I do it ?Thanks *******************************************Jayant RameshGraduate Research AssitantSmart Structures Lab, Intelligent Systems CenterDepartment of Mechanical EngineeringUniversity of Missouri - Rolla573-368-4251(R) 573-341-6558(O)www.umr.edu/~jr8b8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.If you have received this e-mail in error please notify the sender immediately and delete this e-mail from your system.Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Ricardo (save for reports and other documentation formally approved and signed for release to the intended recipient).Only Directors or Duly Authorised Officers are authorised to enter into legally binding obligations on behalf of Ricardo unless the obligation is contained within a Ricardo Purchase Order. Ricardo may monitor outgoing and incoming e-mails and other telecommunications on its e-mail and telecommunications systems. By replying to this e-mail you give consent to such monitoring.The recipient should check this e-mail and any attachments for the presence of viruses. Ricardo accepts no liability for any damage caused by any virus transmitted by this e-mail. "Ricardo" means Ricardo plc and its subsidiary companies.Ricardo plc is a public limited company registered in England with registered number 00222915.The registered office of Ricardo plc is Bridge Works, Shoreham-by Sea, West Sussex, BN43 5FG.- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031202/ccf9bbb2/attachment.htmFrom T.Mwinuka at postgrad.umist.ac.uk Wed Dec 3 10:54:16 2003From: T.Mwinuka at postgrad.umist.ac.uk (Tito Mwinuka)Date: Wed Dec 3 05:54:24 2003Subject: [Acis-alliance] Highlighting faces of a body.Message-ID: <1070448856.3fcdc0d866bf7@webmail1.umist.ac.uk>Dear acis-allianceI have been able to retrieve and highlight the body using the following code.FILE* pfile=fopen("c:/documents and settings/tmwinuka/adapter_counterbore_1.sat","r");ENTITY_LIST elist;outcome result=api_restore_entity_list(pfile,TRUE, elist);m_pAcisDoc->InvalidateViews(); for (int i=0; i<elist.count(); i++) { ENTITY* ent=elist[i]; m_pAcisDoc->AddEntity(ent); api_gi_highlight_entity(ent,TRUE); }HOWEVER I have not been able to highlight face by face by going down the entity hierarchy. I tried this and it failed.FILE* pfile=fopen("c:/documents and settings/tmwinuka/adapter_counterbore_1.sat","r"); ENTITY_LIST elist; outcome result=api_restore_entity_list(pfile,TRUE, elist); m_pAcisDoc->InvalidateViews(); for (int i=0; i<elist.count(); i++) { ENTITY* ent=elist[i]; m_pAcisDoc->AddEntity(ent); } BODY* ent1=(BODY*)elist[0]; LUMP* lump1=ent1->lump(); SHELL* shell1=lump1->shell(); FACE* face1=shell1->face(); api_gi_highlight_entity(face1,TRUE);I used a sat file with only a single body, with a single lump and a single shell. I will be grateful if anyone can help me to sort out the problem. Of course I expected one face to be highlighted after body retrieval.Tito MwinukaFrom Nilesh.Joshi at asu.edu Thu Dec 4 17:08:50 2003From: Nilesh.Joshi at asu.edu (Nilesh Joshi)Date: Thu Dec 4 19:10:30 2003Subject: [Acis-alliance] step TRANSLATORIn-Reply-To: <03781128C7B74B4DBC27C55859C9D7381139461F@es06snlnt.sandia.gov>Message-ID: <IKEJINCPIFDAJOBCMLDKGEOHCAAA.Nilesh.Joshi@asu.edu>HI GUYSCAN YOU PLEASE LET ME KNOW WHICH TRANSLATOR DOES ACIS USES FOR ACIS TO STEPCONVERSION??i.e. who is the vendor??From fangzhihua422 at sina.com Fri Dec 5 19:46:47 2003From: fangzhihua422 at sina.com (fangzhihua422)Date: Fri Dec 5 06:47:05 2003Subject: [Acis-alliance] Memory leakMessage-ID: <20031205114647.1783.qmail@sina.com>
HI,every one!
when i use function:api_separate_body and separate
the given body into a list of bodies ,Memory leaks.for example:
void CAcis4Doc::OnSeparate()
{
int depth = 0;
outcome r2=api_part_start_state(depth);
API_BEGIN
BODY *block1=NULL;
BODY *block2=NULL;
api_solid_block(position(0,0,0),position(50,50,50),block1);
api_solid_block(position(10,0,0),position(40,50,50),block2);
api_subtract(block2,block1);
int nbody;
BODY **bodylist;
api_separate_body(block1,nbody,bodylist);
m_pAcisDoc->AddEntity(bodylist[0]);
API_END
api_part_note_state(result,depth);
m_pAcisDoc->InvalidateViews();
}
what's wrong with this and how are the memory leaks generated?
in mmgr.log
*** Beginning Leak Dump ***
d:\acis8x\eulr\euler\kernbool\bodylump\bodylump.cxx(145) : {0000004157} at 0x04679F70 8 Bytes Type: 1 Call: 8
*** Statistics ***
Leaks: 8 Bytes
5442 allocations for 729571 Bytes
5441 deletes for 729563 Bytes
High-water-mark: 405473 Bytes
Bad delete pointers: 0
Stack high-water-mark: 11908 Bytes
Elapsed seconds: 17.825______________________________________
===================================================================From paulin at mip.sdu.dk Fri Dec 5 12:51:50 2003From: paulin at mip.sdu.dk (Mads Paulin)Date: Fri Dec 5 06:54:26 2003Subject: [Acis-alliance] Facetting, normals and polygonsMessage-ID: <1070625110.22790.5.camel@skinnerup.mip.sdu.dk>Hi,I would like to facet entities in an ENTITY_LIST.I need a set of polygons, where each polygon contains a normal + threevertices. I also need the surface normal at each vertex.Does anyone know how to do this ?P.S I am using ACIS R12. I have done this in earlier versions of ACISusing facet_unfacetted_entity() and setting the proper VERTEX_TEMPLATEwith set_default_vertex_template.Since the latter function is now obsolete, I need to use somemesh_manger etc. It is at this point I am lost...Thanks,Mads PaulinFrom kraftche at cae.wisc.edu Fri Dec 5 17:50:41 2003From: kraftche at cae.wisc.edu (Jason Kraftcheck)Date: Fri Dec 5 18:51:06 2003Subject: [Acis-alliance] Facetting, normals and polygonsIn-Reply-To: <1070625110.22790.5.camel@skinnerup.mip.sdu.dk>References: <1070625110.22790.5.camel@skinnerup.mip.sdu.dk>Message-ID: <3FD119D1.8030505@cae.wisc.edu>Mads Paulin wrote:> Hi,> > I would like to facet entities in an ENTITY_LIST.> > I need a set of polygons, where each polygon contains a normal + three> vertices. I also need the surface normal at each vertex.> > Does anyone know how to do this ?> > P.S I am using ACIS R12. I have done this in earlier versions of ACIS> using facet_unfacetted_entity() and setting the proper VERTEX_TEMPLATE> with set_default_vertex_template.> > Since the latter function is now obsolete, I need to use some> mesh_manger etc. It is at this point I am lost...> You might start by looking at the documentation for the SIMPLE_INDEXED_MESH class, api_set_mesh_manager, and api_facet_entityonline/refman/generated/refman/SPAfct/class_simple_indexed_mesh.htmonline/refman/generated/refman/SPAfct/function_api_facet_entity.htmonline/refman/generated/refman/SPAfct/function_api_set_mesh_manager.htmFrom paulin at mip.sdu.dk Sat Dec 6 13:47:16 2003From: paulin at mip.sdu.dk (Mads Paulin)Date: Sat Dec 6 07:47:19 2003Subject: [Acis-alliance] Facetting, normals and polygonsIn-Reply-To: <3FD119D1.8030505@cae.wisc.edu>References: <1070625110.22790.5.camel@skinnerup.mip.sdu.dk> <3FD119D1.8030505@cae.wisc.edu>Message-ID: <1070714836.2106.6.camel@M2400N>Thanks for your help.I have taken a look at the suggested documentation, but still have acouple of questions.How do I set the VERTEX_TEMPLATE when facetting, now that allapi_set_xxx_vertex_template functions seem to be obsolete.If, for instance, I use a POLYGON_POINT_MESH_MANAGER and activates iswith api_set_mesh_manager, where are the generated meshes stored ??I can see in the docs for polygon_point_mesh_manager, the the generatedmesh is pointed to by a pointer called current_mesh. How do I get thispointer ?? It is protected, and the docs say never to derive thisclass... Yet it also states that this mesh_manager class is intended tobe a base class of other mesh_manger classes... Weird ??Mads
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -