POV-Ray : Newsgroups : povray.general : viewing the inside of csg_box.pov example : Re: viewing the inside of csg_box.pov example Server Time
2 Jun 2024 19:11:19 EDT (-0400)
  Re: viewing the inside of csg_box.pov example  
From: Tim Nikias
Date: 13 Sep 2004 10:36:52
Message: <4145b084$1@news.povray.org>
> I am using the difference function. Does this function use the stencil
> buffer? Is there a way to get the vertices back after I cut a chuck out of
> the box?

POV-Ray doesn't make use of the stencil buffer, or any other part of a
graphics acceleration hardware. It is entirely run by the CPU, the
memory/harddisk and the OS.

Additionally, POV-Ray uses raytracing techniques to do CSG. In effect, when
it tries to render the mesh2-box after you've difference the sphere, it will
check the surface if it is lying inside the sphere. If it is, it is
discarded and the ray is traced further into the scene. Otherwise, the
surface is kept and recursive rays will be shot to generate
reflections/refractions/transparency etc.

As such, there is no special feature to re-incorporate triangles that have
been cut away using CSG.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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