|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
It's easy to translate and rotate objects, but I'm looking for a method
to transform POINTS.
Ex. I declare a cube using the coordinates of its vertices, then I
transform all the vertices and I get a new object. I'm interested in the
coordinates of the new vertices. Is this possible in POVRay using a
matrix method?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Wed, 19 Mar 2003 18:24:17 +0100, HermanS <her### [at] pandorabeinvalid>
wrote:
> It's easy to translate and rotate objects, but I'm looking for a method
> to transform POINTS.
> Ex. I declare a cube using the coordinates of its vertices, then I
> transform all the vertices and I get a new object. I'm interested in the
> coordinates of the new vertices. Is this possible in POVRay using a
> matrix method?
vtransform from transforms.inc
http://www.povray.org/documentation/view/281/
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ABX wrote:..
> On Wed, 19 Mar 2003 18:24:17 +0100, HermanS <her### [at] pandorabeinvalid>
> wrote:
> > It's easy to translate and rotate objects, but I'm looking for a method
> > to transform POINTS.
> > Ex. I declare a cube using the coordinates of its vertices, then I
> > transform all the vertices and I get a new object. I'm interested in the
> > coordinates of the new vertices. Is this possible in POVRay using a
> > matrix method?
>
> vtransform from transforms.inc
> http://www.povray.org/documentation/view/281/
>
> ABX
>
Thank you, but clearly I don't use "vtransform" the right way.
I have declared a point q10 and then I use
#declare q1 = vtransform(q10, rotate<0,90,0>);
I get an error message "expected 2 parameters but only 1 found".
Herman
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 20 Mar 2003 09:53:43 +0100, HermanS <her### [at] pandorabeinvalid>
wrote:
> Thank you, but clearly I don't use "vtransform" the right way.
> I have declared a point q10 and then I use
> #declare q1 = vtransform(q10, rotate<0,90,0>);
> I get an error message "expected 2 parameters but only 1 found".
> Herman
rotate<0,90,0> is not transformation. You can't write:
#declare My_Rotation=rotate<0,90,0>;
You have to write
#declare My_Rotation=transform{rotate<0,90,0>};
So you have to write
#declare q1 = vtransform(q10, transform{rotate<0,90,0>});
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Thu, 20 Mar 2003 10:11:43 +0100, ABX <abx### [at] abxartpl> wrote:
> rotate<0,90,0> is not transformation. You can't write:
or rather it is but not in the meanining of left side of assignment to
transformation identifier
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ABX wrote:..
> On Thu, 20 Mar 2003 09:53:43 +0100, HermanS <her### [at] pandorabeinvalid>
> wrote:
> > Thank you, but clearly I don't use "vtransform" the right way.
> > I have declared a point q10 and then I use
> > #declare q1 = vtransform(q10, rotate<0,90,0>);
> > I get an error message "expected 2 parameters but only 1 found".
> > Herman
>
> rotate<0,90,0> is not transformation. You can't write:
>
> #declare My_Rotation=rotate<0,90,0>;
>
> You have to write
>
> #declare My_Rotation=transform{rotate<0,90,0>};
>
> So you have to write
>
> #declare q1 = vtransform(q10, transform{rotate<0,90,0>});
>
> ABX
>
Thank you for the help: it works.
Herman
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|