📄 2004-july.txt
字号:
Dear ACIS-Alliance,I too want to obtain a pcurve from the curve generatedby api_project_curve_to_surface(). I tried sg_add_pcurve_to_coedge(COEDGE*) as followed: API_BEGIN EDGE* projected_edge = funcReturnProjectEdge(); COEDGE *co = ACIS_NEW COEDGE(projected_edge,FORWARD, NULL, NULL); sg_add_pcurve_to_coedge(co); PCURVE* Pcurve_m = co->geometry(); if(Pcurve_m) //Pcurve_m is still NULL!!!!!!!!! pcurve* pcur =Pcurve_m->equation().deep_copy();API_END The PCURVE acquired from the COEDGE is still NULL. Thanks for your help, Kuo-Cheng >Alex,>sg_add_pcurve_to_coedge(COEDGE*) does it.>HariAt 12:43 PM -0500 11/12/03, Alexander Muthler wrote:>Dear ACIS-Alliance,>>when I project a curve to a surface via the>api_project_curve_to_surface(...) function, thereturned curve has no>pcurve.>Does anybody know, how to compute resp. add thepcurve to the curve or>coedge?>>Your help would be appreciated.>>Best Regards,>Alex __________________________________Do you Yahoo!?New and Improved Yahoo! Mail - Send 10MB messages!http://promotions.yahoo.com/new_mail From davidkou at hkusua.hku.hk Fri Jul 30 02:32:22 2004From: davidkou at hkusua.hku.hk (David)Date: Fri Jul 30 02:33:53 2004Subject: [Acis-alliance] strange access violation in a loopMessage-ID: <200407300632.i6U6WLpV024127@hkusua.hku.hk>Dear acis-alliance,I tried a very simple program with ACISR13 and Visual C++ 6.0, and I found a very strange access violation problem, and I couldn't figure out why, could you give some hints?The program pops an "access violation" message when it enters the loop the second time, i.e when i=0, the api_entity_point_distance runs, but when i=1, it crashes!!!//////////////////////////////////////////////////////////////////////////////for(int i=0;i<5;i++){ //Error here! when i=0, ok; when i=1, fail! outcome rtn1=api_entity_point_distance (pArc1, pt,closest_pos, distance); outcome rtn2=api_entity_point_distance (pArc2, pt,closest_pos, distance); }//////////////////////////////////////////////////////////////////////////////Detailed program source:int main(int argc, char* argv[]){ api_start_modeller(0); api_initialize_constructors(); api_initialize_covering (); api_initialize_intersectors (); ////////////////////////////////////////////////////////////////////////// EDGE* pArc1; EDGE* pArc2; SPAposition center(0,0,0); SPAposition pt1(10,0,0); SPAposition pt2(20,0,0); SPAunit_vector ArcNormal(0,0,1); api_curve_arc_center_edge (center,pt1,pt1,&ArcNormal,(EDGE *&)pArc1); api_curve_arc_center_edge (center,pt2,pt2,&ArcNormal,(EDGE *&)pArc2); ENTITY_LIST EdgeList,WasteList; EdgeList.add((EDGE *)pArc1); EdgeList.add((EDGE *)pArc2); BODY* pGeometry=NULL; outcome rtn=api_cover_planar_edges(EdgeList,(BODY *&)pGeometry,WasteList); SPAposition pt(0,0,0); SPAposition closest_pos; double distance; for(int i=0;i<5;i++) { outcome rtn1=api_entity_point_distance (pArc1, pt,closest_pos, distance); outcome rtn2=api_entity_point_distance (pArc2, pt,closest_pos, distance); } printf("Finished"); ////////////////////////////////////////////////////////////////////////// api_terminate_intersectors (); api_terminate_covering(); api_terminate_constructors(); api_stop_modeller(); return 0;}Looking forward hearing from you!Best Regards,David2004-07-30From emxmns at nottingham.ac.uk Fri Jul 30 06:46:47 2004From: emxmns at nottingham.ac.uk (Martin Sherburn)Date: Fri Jul 30 06:54:31 2004Subject: [Acis-alliance] Save file problemMessage-ID: <s10a3532.080@ccw0m1.nottingham.ac.uk>Hi,I'm new to ACIS and just got the software earlier this week. I am having some serious trouble trying to get a test program running. All i want to do is create a block and save it to a .SAT file. However, whenever i try to save to a file using the "api_save_entity_list" function, i get a "Access Violation" or "Operation Unsuccessful" error. I have spent all week trying to figure it out, and i just can't see what is wrong. I am using Windows XP, MSVC .NET (v7.1). Here is the code i use to try save to file:---------------------------------------------------FILE* pFile;pFile = fopen("test.sat", "w");if (pFile){ // fputs("Testing file stream is valid", pFile); - this line works when uncommented api_save_entity_list(pFile, TRUE, list); fclose(pFile);}---------------------------------------------------Does anybody have any ideas what could be causing this? Its driving me nuts, please help!Thank you,Martin Sherburn.This message has been scanned but we cannot guarantee that it and anyattachments are free from viruses or other damaging content: you areadvised to perform your own checks. Email communications with theUniversity of Nottingham may be monitored as permitted by UK legislation.From kkarkele at hotmail.com Fri Jul 30 09:21:52 2004From: kkarkele at hotmail.com (kapil karkele)Date: Fri Jul 30 09:22:12 2004Subject: [Acis-alliance] Save file problemMessage-ID: <BAY8-F113DR4tgM5pXZ00061bb1@hotmail.com>Hi Martin,There can be reasons like,1) Mismatch in the libraries you have included (mixing debug & release). Please check those are correct.2) The ENTITY_LIST you are trying to save is not valid.instead of fopen try using acis_fopen and same is for close. I hope that should help.-regards,kapil>From: "Martin Sherburn" <emxmns@nottingham.ac.uk>>To: <acis-alliance@cs.columbia.edu>>Subject: [Acis-alliance] Save file problem>Date: Fri, 30 Jul 2004 11:46:47 +0100>>Hi,>>I'm new to ACIS and just got the software earlier this week. I am having >some serious trouble trying to get a test program running. All i want to do >is create a block and save it to a .SAT file. However, whenever i try to >save to a file using the "api_save_entity_list" function, i get a "Access >Violation" or "Operation Unsuccessful" error. I have spent all week trying >to figure it out, and i just can't see what is wrong. I am using Windows >XP, MSVC .NET (v7.1). Here is the code i use to try save to file:>>--------------------------------------------------->FILE* pFile;>pFile = fopen("test.sat", "w");>if (pFile)>{> // fputs("Testing file stream is valid", pFile); - this line works when >uncommented> api_save_entity_list(pFile, TRUE, list);> fclose(pFile);>}>--------------------------------------------------->>Does anybody have any ideas what could be causing this? Its driving me >nuts, please help!>>Thank you,>>Martin Sherburn.>>>This message has been scanned but we cannot guarantee that it and any>attachments are free from viruses or other damaging content: you are>advised to perform your own checks. Email communications with the>University of Nottingham may be monitored as permitted by UK legislation.>>>_______________________________________________>Acis-alliance mailing list>Acis-alliance@cs.columbia.edu>http://lists.cs.columbia.edu/mailman/listinfo/acis-alliance_________________________________________________________________Arrange your love marriage. http://www.shaadi.com/ptnr.php?ptnr=hmltag On Shaadi.com.From emxmns at nottingham.ac.uk Fri Jul 30 09:32:30 2004From: emxmns at nottingham.ac.uk (Martin Sherburn)Date: Fri Jul 30 09:33:15 2004Subject: [Acis-alliance] Save file problemMessage-ID: <s10a5c10.027@ccw0m1.nottingham.ac.uk>Kapil,Thank you very much for your help, acis_fopen instead of fopen works! Thanks also to Anil, I had already done that though.Martin.>>> "kapil karkele" <kkarkele@hotmail.com> 30/07/2004 14:21:52 >>>Hi Martin,There can be reasons like,1) Mismatch in the libraries you have included (mixing debug & release). Please check those are correct.2) The ENTITY_LIST you are trying to save is not valid.instead of fopen try using acis_fopen and same is for close. I hope that should help.-regards,kapil>From: "Martin Sherburn" <emxmns@nottingham.ac.uk>>To: <acis-alliance@cs.columbia.edu>>Subject: [Acis-alliance] Save file problem>Date: Fri, 30 Jul 2004 11:46:47 +0100>>Hi,>>I'm new to ACIS and just got the software earlier this week. I am having >some serious trouble trying to get a test program running. All i want to do >is create a block and save it to a .SAT file. However, whenever i try to >save to a file using the "api_save_entity_list" function, i get a "Access >Violation" or "Operation Unsuccessful" error. I have spent all week trying >to figure it out, and i just can't see what is wrong. I am using Windows >XP, MSVC .NET (v7.1). Here is the code i use to try save to file:>>--------------------------------------------------->FILE* pFile;>pFile = fopen("test.sat", "w");>if (pFile)>{> // fputs("Testing file stream is valid", pFile); - this line works when >uncommented> api_save_entity_list(pFile, TRUE, list);> fclose(pFile);>}>--------------------------------------------------->>Does anybody have any ideas what could be causing this? Its driving me >nuts, please help!>>Thank you,>>Martin Sherburn.>>>This message has been scanned but we cannot guarantee that it and any>attachments are free from viruses or other damaging content: you are>advised to perform your own checks. Email communications with the>University of Nottingham may be monitored as permitted by UK legislation.>>>_______________________________________________>Acis-alliance mailing list>Acis-alliance@cs.columbia.edu >http://lists.cs.columbia.edu/mailman/listinfo/acis-alliance _________________________________________________________________Arrange your love marriage. http://www.shaadi.com/ptnr.php?ptnr=hmltag On Shaadi.com.This message has been scanned but we cannot guarantee that it and anyattachments are free from viruses or other damaging content: you areadvised to perform your own checks. Email communications with theUniversity of Nottingham may be monitored as permitted by UK legislation.From Markus.Herb at de.TRUMPF.com Fri Jul 30 09:43:24 2004From: Markus.Herb at de.TRUMPF.com (Markus.Herb@de.TRUMPF.com)Date: Fri Jul 30 09:44:24 2004Subject: [Acis-alliance] Using streams instead of file pointers with some API functionsMessage-ID: <71A23A253EBDD711933A00B0D0F0B13101351C33@srvmail2.corp.trumpf.com>Dear all,We are just reworking our software. All our file handling is needed to be changed to std::streams due toexternal reasons.Unfortunately there are some ACIS functions that only work with FILE* e.g."api_save_entity_list".How is it possible to still use these functionalities with iostreams?GreetingsMarkus
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -