POV-Ray : Newsgroups : povray.general : Empty object Server Time
5 Aug 2024 10:18:14 EDT (-0400)
  Empty object (Message 11 to 14 of 14)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Christopher James Huff
Subject: Re: Empty object
Date: 21 Nov 2002 10:59:58
Message: <chrishuff-0FCA8C.10581821112002@netplex.aussie.org>
In article <3DDCFF73.C06ACF8C@frege.mathematik.uni-freiburg.de>,
 Mark Weyer <wey### [at] fregemathematikuni-freiburgde> wrote:

> You are right. But I still prefer the empty-object-method for
> some applications, because it is more elegant to my taste.

It is in no way "elegant". It needlessly slows things down, takes 
memory, and is just an ugly hack. The array method looks like the best 
way to do it: simple, flexible, doesn't waste processing power or do 
other odd things that could cause trouble. You don't need a "nothing" 
object.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Warp
Subject: Re: Empty object
Date: 21 Nov 2002 12:29:41
Message: <3ddd1805@news.povray.org>
Mark Weyer <wey### [at] fregemathematikuni-freiburgde> wrote:
> What is your suggestion for maximum speed?

  Don't use an object at all. That achieves maximum speed.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Empty object
Date: 21 Nov 2002 12:32:39
Message: <Xns92CDBC0F1D0BBraf256com@204.213.191.226>
Mark Weyer <wey### [at] fregemathematikuni-freiburgde> wrote in 
news:3DDCF201.8E1826C9@frege.mathematik.uni-freiburg.de

> Any suggestions?

maybe :

isosurface { function { 1 } gradient 0.01 accuracy 100000 
contained_by { box { -1e5,+1e5 } }


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Jellby
Subject: Re: Empty object
Date: 21 Nov 2002 16:15:02
Message: <3ddd4cd6@news.povray.org>
Mark Weyer wrote:

> I occasionally (usually to feed parameters to CSG macros where) need an
> empty object.
>
> [...]
>
> Any suggestions?

sphere { 0, 0 clipped_by { sphere { 1, 0 } }

-- 
Ignacio Fernández Galván
Linux User #289967 (counter.li.org)
PGP Pub Key ID: 0x01A95F99 (pgp.escomplinux.org)


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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