DiRose Fri, 03/12/2004 - 04:52 Forums: Other usage issuesHi, I am just wondering how can I convert the gp_Pnt2d type to gp_Pnt? Thanks! Rob Bachrach Fri, 03/12/2004 - 15:05 Assuming you want to put it in a particular Z plane (like Z=0), you simply create the 3D point using the 2D coords: gp_Pnt pnt3D(pnt2D.X(), pnt2D.Y(), 0.0); Log in to post comments DiRose Mon, 03/15/2004 - 04:49 Hi Rob, Thanks for your help!! I have done that already, but the coordance points doesn't seem to be right. any idea why that happened? thanks!! Log in to post comments Rob Bachrach Tue, 03/16/2004 - 14:44 What do you mean by it doesn't seem right. The gp_Pnt just stores the data you give it. Are you referring to the graphical display? If so, I am sorry that I cannot help. I am not using OpenCASCADE for graphical display at this time. Rob Log in to post comments
Fri, 03/12/2004 - 15:05
Assuming you want to put it in a particular Z plane (like Z=0), you simply create the 3D point using the 2D coords:
gp_Pnt pnt3D(pnt2D.X(), pnt2D.Y(), 0.0);
Mon, 03/15/2004 - 04:49
Hi Rob,
Thanks for your help!!
I have done that already, but the coordance points doesn't seem to be right. any idea why that happened?
thanks!!
Tue, 03/16/2004 - 14:44
What do you mean by it doesn't seem right. The gp_Pnt just stores the data you give it. Are you referring to the graphical display? If so, I am sorry that I cannot help. I am not using OpenCASCADE for graphical display at this time.
Rob