POV-Ray : Newsgroups : povray.programming : Pass a POV object to a class : Re: Pass a POV object to a class Server Time
28 Jul 2024 12:37:20 EDT (-0400)
  Re: Pass a POV object to a class  
From: Mael
Date: 14 Mar 2001 09:13:13
Message: <3aaf7c79@news.povray.org>
> I've only spent
> about five days with c++ but I've already fallen in love with it.

yes, c++ is really cool, i can t wait for pov 4 :)

> 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?

you can use an OBJECT* and call Inside_Object :
Inside_Object (VECTOR IPoint, OBJECT *Object)

M

PS: what will do your patch ?


Post a reply to this message

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