Jump to content
Developer Wiki and Function Reference Links Read more... ×
Sign in to follow this  
Musisback

Get Screen Plan coordinates of a 3D point

Recommended Posts

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.

Share this post


Link to post

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...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×