|
![](/i/fill.gif) |
I am writing a patch and I am writing it in C++. I chose C++ because
it's easier to use once the base classes are implemented (and also
because I could overload vector operators so I could copy & paste
working code directly from my POV test scenes :) ). I've only spent
about five days with c++ but I've already fallen in love with it.
Anyway, the base classes are now ready and have been tested thoroughly
(or so I hope). I can do some more work before I start integrating it
in POV, but eventually I will have to do it. The question is, how do I
proceed? I remember Chris Huff wrote a patch-HOWTO some time ago, some
up-to-date advice along the same lines would be very appreciated.
Now, there are some specific problems I have. I need to pass a POV
object (sphere, csg, whatever) struct, or a pointer to one, to a
method in a class I have made, and that method should be able to call
the insideness test of that object. Correct me if I am wrong but I
don't think that in POV this has been implemented in a polymorphic
way. How should I proceed?
Also, I will need a method to create an idat3d array of floats. How
would I go about this?
Lastly, a side question. Are there license-free, public-domain,
cross-platform examples of polymorphic sorted lists, binary, quad- and
oct-trees or should I make them myself? Granted, I will eventually do
so since this is my final year project and I want to have done as much
as possible myself when I defend it, but until then, it can save me
some brain cells.
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vip bg
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |