POV-Ray : Newsgroups : povray.general : scaling unions : Re: scaling unions Server Time
24 Apr 2024 06:51:45 EDT (-0400)
  Re: scaling unions  
From: jr
Date: 25 May 2020 05:50:01
Message: <web.5ecb949fd63014244d00143e0@news.povray.org>
hi,

"Hexhall" <n/a> wrote:
> I have a union object that is made up of a cylinder with two spheres, one sphere
> on each end of the cylinder. (This has to be the case, because it is output from
> another program).  I would like to scale this object, stretching it in the
> direction of the axis of the cylinder, but I would like to prevent the
> dimensions of the spheres being affected.  Is there any easy way to do this with
> this union?

other than manually elongating the cylinder and moving one sphere by hand, no,
to the best of my knowledge.

>  Right now, the only option I think is viable is to write a program
> (I would use c++) and read such unions from an .inc file and write three
> separate objects in place of the union.  Is there any keyword that prevents
> dimensions of objects being affected in unions, but allows their positions to
> change when a scale is being applied?

not aware of such a keyword/function, sorry.  if you can conceive of a solution
in SDL, it would be interesting if you posted.


regards, jr.


Post a reply to this message

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