Rotated axis

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
Timo
Posts: 10
Joined: 14 Oct 2009, 14:01

Rotated axis

Post by Timo » 01 Dec 2023, 14:45

Hi

Can you help me with drawing using rotated axis?
I have closed IFC polyline for example. (0,0,0), (10,0,0), (10,10,0), (0,10,0)
Then I know that x-axis is rotated as (0.655, 0, 0). Should i use matrix or ucs coordinates?

So how I can draw this polyline correctly or calculate coordinates.

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Rotated axis

Post by support » 04 Dec 2023, 16:08

Timo wrote:
01 Dec 2023, 14:45
Hi

Can you help me with drawing using rotated axis?
I have closed IFC polyline for example. (0,0,0), (10,0,0), (10,10,0), (0,10,0)
Then I know that x-axis is rotated as (0.655, 0, 0). Should i use matrix or ucs coordinates?

So how I can draw this polyline correctly or calculate coordinates.
Hi,
You should get the matrix, multiply by your coordinates and "draw" the polyline.
Please, have a look at the sgFunction.BuildRotMatrix. In the sgFunction.pas module there are three overloaded functions BuildRotMatrix, and you could use any of them.

Best regards,
Catherine.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply