Musisback Posted January 24, 2014 Share Posted January 24, 2014 Do you know how to convert 3D coordinate into screen coordinate? Thanks; Quote Link to comment
JBenghiat Posted January 24, 2014 Share Posted January 24, 2014 ModelPt2DToScreenPt http://developer.vectorworks.net/index.php/VS:ModelPt2DToScreenPt Quote Link to comment
Musisback Posted January 27, 2014 Author Share Posted January 27, 2014 Thanks but it seems to be for 2D points not 3D... I'd like to get the screen coordinates of 3D points, whatever the 3D view is. Quote Link to comment
Musisback Posted February 14, 2014 Author Share Posted February 14, 2014 Here is how I did it : BeginPoly3D; Add3DPt(TopPt.X,TopPt.Y,TopPt.Z); Add3DPt(TopPt.X,TopPt.Y,TopPt.Z -1 ); EndPoly3D; getBBox(lnewobj,pt2D.X,pt2D.Y,pt2DBis.X,pt2DBis.Y); DelObject(lnewobj); Its pretty ugly but it works. If someone has better, I'd be glad to read it... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.