Page 1 of 1

Rotated axis

Posted: 01 Dec 2023, 14:45
by Timo
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.

Re: Rotated axis

Posted: 04 Dec 2023, 16:08
by support
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.