- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Is there any way to create a SPAtransf from a 4x4 matrix?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-08-2010 04:35 PM
We have been unable to locate any such functions...
Re: Is there any way to create a SPAtransf from a 4x4 matrix?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-11-2010 09:27 AM
Hello Ben,
We will soon update this with our reply.
Regards,
Yogesh
Re: Is there any way to create a SPAtransf from a 4x4 matrix?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-12-2010 09:18 AM
Hello bheld,
ACIS does not currently provide a function to go directly from a 4x4 perspective projection matrix to a SPAtransf. If you are able to extract the affine matrix and translation mathematically, however, then you could use the function restore_transf (undocumented, but declared in transf.hxx). Its signature is as follows:
SPAtransf restore_transf( SPAmatrix const &affine, SPAvector const &translation, double scale, logical rotate, logical reflect, logical shear )
The three logicals specify whether the transform is rotational, reflecting, and/or shear. (This information is cached in order to improve performance.) It is important to set these correctly in order to avoid downstream problems (which is why we normally discourage the use of this particular function).
Best regards,
John
Re: Is there any way to create a SPAtransf from a 4x4 matrix?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-27-2010 06:15 AM
Hi, I have the same request about this. I hope Spatial will add this functionality in the future release.
Thanks.
MT.

