POV-Ray : Newsgroups : povray.programming : Array pointers : Re: amalloc() (long post) Server Time
27 Sep 2024 03:18:32 EDT (-0400)
  Re: amalloc() (long post)  
From: Warp
Date: 18 Jan 2003 07:37:45
Message: <3e294a99@news.povray.org>
Vadim Sytnikov <syt### [at] rucom> wrote:
> Well, as to the code... it works for me perfectly.

  Do you know what is the problem with the code?
  It does not explain *how* it does it. A clear explanation of how it is
done and the possible advantages and disadvantages would be good. It may
be done in such a way that it's not suitable for the original application
(eg. because of memory usage inefficiency).

  As for translating it to C++, I would certainly not use malloc()
(you certainly know what's the main difference between the new operator
and the malloc() function, besides syntax, don't you?)

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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