Jump to content
  • Advertisement
Sign in to follow this  
dgcoventry

Weired Acis transformation matrix

This topic is 2593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have queried an ACIS solid in AutoCAD using autolisp and have extracted what appears to be a transformation matrix:

transform $-1 0.965925826289068 -0.258819045102521 0 0.258819045102521 0.965925826289068 0 0 0 1 -1.63832380999416 3.11204436836534 0 1 rotate no_reflect no_shear # [/quote]

Dose anyone recognise this kind of entity?

It sort of looks like a 4x4 transformation matrix (regarding the 0 0 0 1 line in the middle), but the arguments only have fourteen reals.

Share this post


Link to post
Share on other sites
Advertisement
No documentation found, but a transform description can be anything (see e.g. the transform node of X3D).

transform $-1 0.965925826289068 -0.258819045102521 0 0.258819045102521 0.965925826289068 0 0 0 1 -1.63832380999416 3.11204436836534 0 1 rotate no_reflect no_shear # [/quote]
I'd say that
0.965925826289068 -0.258819045102521 0
0.258819045102521 0.965925826289068 0
0 0 1
is a 3D rotation by 15 degree around the z axis, given as a affine matrix. I'd further assume that the subsequent
1.63832380999416 3.11204436836534 0
defines a affine position. I have no clue what the leading -1 and trailing 1 mean. The latter one may perhaps be a scaling factor, but then for uniform scaling only. If you want to investigate this w/o having access to a documentation, try to apply well known transformations and look at the resulting numbers.

Share this post


Link to post
Share on other sites

No documentation found, but a transform description can be anything (see e.g. the transform node of X3D).

transform $-1 0.965925826289068 -0.258819045102521 0 0.258819045102521 0.965925826289068 0 0 0 1 -1.63832380999416 3.11204436836534 0 1 rotate no_reflect no_shear #

I'd say that
0.965925826289068 -0.258819045102521 0
0.258819045102521 0.965925826289068 0
0 0 1
is a 3D rotation by 15 degree around the z axis, given as a affine matrix. I'd further assume that the subsequent
1.63832380999416 3.11204436836534 0
defines a affine position. I have no clue what the leading -1 and trailing 1 mean. The latter one may perhaps be a scaling factor, but then for uniform scaling only. If you want to investigate this w/o having access to a documentation, try to apply well known transformations and look at the resulting numbers.
[/quote]

Thanks Haegarr,

That does sound very likely.

I have searched for documentation on this but have been unable to find any.

I'll do what you suggest and see if the numbers tally.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!