POV-Ray : Newsgroups : povray.advanced-users : how can a square mesh be changed to a rhomboid : Re: how can a square mesh be changed to a rhomboid Server Time
29 Jun 2024 01:50:00 EDT (-0400)
  Re: how can a square mesh be changed to a rhomboid  
From: davidafisher
Date: 9 Aug 2010 15:55:00
Message: <web.4c605924a72b83ae6175cda10@news.povray.org>
Basically, as I think about it at a more lucid time, what I'm needing to do is a
Helmert transformation

New                       current
x   |tx|   |1+s, -rz, ry|   |x|
y = |ty| + |rz, 1+s, -rx| * |y|
z   |tz|   |-ry, rx, 1+s|   |z|

and in my case the variables are

tx(m)    ty(m)    tz(m)   s(ppm)  rx(sec)  ry(sec) rz(sec)
-446.448 125.157 -542.06 20.4894  -0.1502  -0.247  -0.8421

or

New                                                   current
x   |-446.448|   | 1+20.4894,  0.8421,    -0.247    |   |x|
y = | 125.157| + |-0.8421,     1+20.4894,  0.1502   | * |y|
z   |-542.06 |   | 0.247,     -0.1502,     1+20.4894|   |z|

but I don't know how the matrix command works within POV-Ray and whether it can
be used in this manner. My mind has stopped working and I'm stuck on thinking I
have to build a separate routine to parse and convert every triangle coordinate
within the mesh


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.