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

📄 2003-february.txt

📁 acis说明文档
💻 TXT
📖 第 1 页 / 共 3 页
字号:
From hong-jun@cae.wisc.edu  Sat Feb  1 19:19:37 2003From: hong-jun@cae.wisc.edu (hong-jun@cae.wisc.edu)Date: Sat,  1 Feb 2003 13:19:37 -0600Subject: [Acis-alliance] question about using BinaryFileMessage-ID: <1044127176.3e3c1dc91b9cf@www.cae.wisc.edu>Hi! allI made a derived class 'FileSizeComputer' from 'BinaryFile' and tried touse it as the first argument for 'save_entity_list_on_file(FileInterface*,ENTITY_LIST const&)' function like follows.-----------------------------------------------------------FileSizeCompute file_size_computer;save_entity_list_on_file(&file_size_computer, entity_list);-----------------------------------------------------------However, I got an error sign when I execute the code as follows. -----------------------------------------------------------*** Error (kernel/kerndata/savres:BAD_UNITS)    could not save, the units in Fileinfo must be valid    Aborting program-----------------------------------------------------------I think I have to give a valid FileInfo object to my 'FileSizeComputer' but Idon't know how to.Is there anybody to know about this?Thank you.Hong-Jun KimFrom Joe.Biegelsen@computer.org  Mon Feb  3 06:58:36 2003From: Joe.Biegelsen@computer.org (Joe Biegelsen)Date: Sun, 2 Feb 2003 23:58:36 -0700Subject: [Acis-alliance] question about using BinaryFileIn-Reply-To: <1044127176.3e3c1dc91b9cf@www.cae.wisc.edu>Message-ID: <EIENINOJKCCIHNGKAACFGEOBCBAA.Joe.Biegelsen@Computer.Org>First, I notice you are calling an internal functionsave_entity_list_on_file instead of an api functionapi_save_entity_list_on_file.  This accounts for the system aborting yourprogram instead of catching the exception and returning an error code.There are techniques for avoiding this, but generally it is best to stickwith api's where possible.Second, there is a pair of api's, api_set_file_info and api_get_file_info.This is likely the source of your BAD_UNITS problem.  The defaults should begood, but you may want to look into explicitly setting this stuff.Joe Biegelsen-----Original Message-----From: acis-alliance-admin@cosmos.cs.columbia.edu[mailto:acis-alliance-admin@cosmos.cs.columbia.edu]On Behalf Ofhong-jun@cae.wisc.eduSent: Saturday, February 01, 2003 12:20 PMTo: acis-alliance@cs.columbia.eduCc: hong-jun@cae.wisc.eduSubject: [Acis-alliance] question about using BinaryFileHi! allI made a derived class 'FileSizeComputer' from 'BinaryFile' and tried touse it as the first argument for 'save_entity_list_on_file(FileInterface*,ENTITY_LIST const&)' function like follows.-----------------------------------------------------------FileSizeCompute file_size_computer;save_entity_list_on_file(&file_size_computer, entity_list);-----------------------------------------------------------However, I got an error sign when I execute the code as follows.-----------------------------------------------------------*** Error (kernel/kerndata/savres:BAD_UNITS)    could not save, the units in Fileinfo must be valid    Aborting program-----------------------------------------------------------I think I have to give a valid FileInfo object to my 'FileSizeComputer' butIdon't know how to.Is there anybody to know about this?Thank you.Hong-Jun Kim_______________________________________________Acis-alliance mailing listAcis-alliance@lists.cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom wang@cae.uwm.edu  Mon Feb  3 07:16:01 2003From: wang@cae.uwm.edu (Eric Wang)Date: Mon, 3 Feb 2003 16:16:01 +0900Subject: [Acis-alliance] question about using BinaryFileReferences: <1044127176.3e3c1dc91b9cf@www.cae.wisc.edu>Message-ID: <001a01c2cb54$1c3dd1a0$883afccb@ewang2>From: <hong-jun@cae.wisc.edu>> *** Error ... could not save, the units in Fileinfo must be valid> I think I have to give a valid FileInfo object ...    1. Declare a FileInfo local var.        a) Call FileInfo::set_product_id().        b) Call FileInfo::set_units().    2. Call api_set_file_info(), and pass your FileInfo.    Then your api_save_*() will work.    Alternatively, if you just read a file, and you want to write to    the file using its same FileInfo data, call api_get_file_info()    to get the current FileInfo, and pass that to api_set_file_info().--Eric WangCAD Lab, Sungkyunkwan UniversityFrom akcrawford@gscad.com  Mon Feb  3 19:00:30 2003From: akcrawford@gscad.com (Crawford, Alan)Date: Mon, 3 Feb 2003 14:00:30 -0500Subject: [Acis-alliance] Splitting an EDGE on a bodyMessage-ID: <9BC689DBCB969642B931BF1D87B3E16E2C7C6A@postman.grad>This message is in MIME format. Since your mail reader does not understandthis format, some or all of this message may not be legible.------_=_NextPart_000_01C2CBB6.85C43530Content-Type: text/plain;	charset="iso-8859-1"I am trying to split an edge on a BODY (a sheet BODY in this case).  I donot want to change the geometry of the BODY, but I want a connected VERTEXat the split position.  I have tried:api_split_curve - returns an error because it is not prepared to split anEDGE owned by a BODY.create a point BODY (degenerate wire body with one vertex) and imprint it onthe sheet BODY.  This apparently fails because imprint is not prepared todeal with a degenerate wire.I am planning to try using an imprint with a disk (api_make_planar_disk) andthen clean up the body, but this seems more complicated than it needs to be.Is there something else obvious that I am missing?Thank you for any assistance,Alan  ------_=_NextPart_000_01C2CBB6.85C43530Content-Type: application/ms-tnefContent-Transfer-Encoding: base64eJ8+IiITAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNyb3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0wcCAAMADgAAAB4AAQAMAQEggAMADgAAANMHAgADAA4AAAAhAAEADwEBCYABACEAAAAxMTVBQzVDMkJGOTRGOTQ2QjQ5ODQzQkM2ODVERTMwNgA7BwEEgAEAHAAAAFNwbGl0dGluZyBhbiBFREdFIG9uIGEgYm9keQAuCQENgAQAAgAAAAIAAgABA5AGAJgHAAAuAAAAAwAJWQMAAAACAXEAAQAAABYAAAABwsu2m6xQZBCJEBFIj4G5v+AYefq3AAADAN4/r28AAAMAAW4AAAAAAwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAUoUAAH1uAQAeAAGACCAGAAAAAADAAAAAAAAARgAAAABUhQAAAQAAAAQAAAA5LjAACwACgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAAOACCAGAAAAAADAAAAAAAAARgAAAAABhQAAAAAAAAsABIAIIAYAAAAAAMAAAAAAAABGAAAAAAOFAAAAAAAACwAFgAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADAAaACCAGAAAAAADAAAAAAAAARgAAAAAQhQA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zY4OURCQ0I5Njk2NDJCOTMxQkYxRDg3QjNFMTZFMkM3QzZBQHBvc3RtYW4uZ3JhZD4AAAA5rg==------_=_NextPart_000_01C2CBB6.85C43530--From zhengshu.shen@asu.edu  Mon Feb  3 23:40:48 2003From: zhengshu.shen@asu.edu (shen)Date: Mon, 03 Feb 2003 16:40:48 -0700Subject: [Acis-alliance] copy of a surfaceMessage-ID: <3E3EFE00.8ACC39FD@asu.edu>Hello!Does anybody know any functions in ACIS that can make a copy of asurface (FACE)?In my application, i first built a BODY and pick some of the FACEs ofthe BODY; then i want to make a FACE that has the same shape andlocation of each of the FACEs i picked (basically, i need to make a copyof each of the FACEs.) And finally i delete the BODY.Could anybody out there help? Thanks a lot.ShenFrom wang@cae.uwm.edu  Tue Feb  4 15:42:01 2003From: wang@cae.uwm.edu (Eric Wang)Date: Wed, 5 Feb 2003 00:42:01 +0900Subject: [Acis-alliance] question about using BinaryFileReferences: <1044127176.3e3c1dc91b9cf@www.cae.wisc.edu> <001a01c2cb54$1c3dd1a0$883afccb@ewang2> <1044296987.3e3eb51b6a0bb@www.cae.wisc.edu>Message-ID: <03c001c2cc63$f62ba800$883afccb@ewang2>From: <hong-jun@cae.wisc.edu>> ... what values I should put for 'product_id' and 'units'.    product_id:    - Use any text string.       Usually, you write the name and version of your own application,       so that you can identify your own .sat files later.       But any string is OK.    units:    - This is the scale factor from your internal numbers to mm.       1.0 means your 1 = 1mm.        You generally want to keep your dimension numbers in the        "good" floating-point range of roughly [1E0, 1E5], for best        numerical accuracy.  (See past posts by Arlo Ames for the        details.)  If you're modeling physical parts, 1mm is a reasonable        size.  If you're modeling huge things like a bridge or a submarine,        then units of 1000 (= 1m) would be more appropriate.  So it        depends on your application domain.--Eric WangCAD Lab, Sungkyunkwan UniversityFrom wang@cae.uwm.edu  Tue Feb  4 15:48:54 2003From: wang@cae.uwm.edu (Eric Wang)Date: Wed, 5 Feb 2003 00:48:54 +0900Subject: [Acis-alliance] copy of a surfaceReferences: <3E3EFE00.8ACC39FD@asu.edu>Message-ID: <03c801c2cc64$ec402d60$883afccb@ewang2>From: "shen" <zhengshu.shen@asu.edu>> Does anybody know any functions in ACIS that can make a copy of a> surface (FACE)?    api_sheet_from_ff().    This copies 1 FACE, then inserts it into a new BODY, and returns    that.  The result is a "sheet body", which consists of only this 1 FACE.    That's usually more useful than having a copy of a FACE, since most    ACIS operations expect a BODY as input, not a dangling FACE.--Eric WangCAD Lab, Sungkyunkwan UniversityFrom muthler@bv.tum.de  Thu Feb  6 11:02:31 2003From: muthler@bv.tum.de (Alexander Muthler)Date: Thu, 6 Feb 2003 12:02:31 +0100Subject: [Acis-alliance] EDGE-FACE intersectionMessage-ID: <OIEEJLMIJOEBJHANNPMHIEKJCEAA.muthler@bv.tum.de>Hello Acis-Alliance,I have a problem:I want to intersect an EDGE (geometry is a straight line) with a FACE(geometry is a spline surface).Here is a part of the code for generating the EDGE and the intersection withthe existing spline FACE:		EDGE *cutedge;		api_curve_line(start, end, cutedge);		savelist->add(cutedge);		api_make_edge_from_curve(cutvector->equation, cutedge);		// intersect edge with face to findvertex...................................................		ENTITY_LIST* cutvert;		// usually one entity, the vertex		ENTITY *po_face; 		// the vertex on the face (as ENTITY)		VERTEX *vo_face;		// the vertex on the face (as VERTEX)		outcome res = api_edfa_int(cutedge, splineface, cutvert);		outcome_check(res, "Error in API call");		// check the outcome		cout << "PAMFACE: " << i << endl;		if (cutvert->count() !=1)		{			if (cutvert->count() > 1)			{				cout << "Error in quad " << i << ": more than 1 cutvertex found.\n";			}			else if (cutvert->count() < 1)			{				cout << "Error in quad " << i << ": no cutvertex found.\n";			}		}		cutvert->init();		po_face = cutvert->next();		if (is_VERTEX(po_face))		{			vo_face = (VERTEX*) po_face;		}		else if (!is_VERTEX(po_face))		{			cout << "Error in quad "<< i << ": ENTITY found is not a VERTEX.\n";		}In the debugger it throws an error for the call of 'api_edfa_int(...' asfollows:Program received signal SIGSEGV, Segmentation fault.LIST_HEADER::add (this=0xffffffff, item=0x97ef208) at/build2/acisr10/NTS/base/baseutil/lists/list_header.cxx:235235     /build2/acisr10/NTS/base/baseutil/lists/list_header.cxx: No such

⌨️ 快捷键说明

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