POV-Ray : Newsgroups : povray.general : Status of Moray? : Re: New SDL for POVRay Server Time
13 Jul 2025 14:16:32 EDT (-0400)
  Re: New SDL for POVRay  
From: Nicolas George
Date: 6 Oct 2007 04:35:18
Message: <470748c6@news.povray.org>
andrel  wrote in message <470### [at] hotmailcom>:
> new Sphere s;
> s.Position=[1,1,10];
> s.Radius=.7;
> s.Texture.Pigment=[0,1,0];
> s.Scale(1,2,1);
> s.Rotate(30,0,0);
> 
> That is all very clear coding, but *not* what most of the group here 
> wants.

This code is a little bit verbose, but not much. Consider the current SDL
equivalent:

#declare s = sphere {
  <1,1,10>, .7
  texture { pigment { rgb <0,1,0> } }
  scale <1,2,1>
  rotate <30,0,0>
}

Roughly the same number of lines and characters, and the same
self-documented readability.

I think that "most of the group here" wants the second only because they
already have the habit of knowing it, not because it has inherent qualities.

Which is a point to take into consideration, of course.


Post a reply to this message

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