POV-Ray : Newsgroups : povray.general : Looking for interesting "docking" shape : Re: Looking for interesting "docking" shape Server Time
2 Aug 2024 22:18:22 EDT (-0400)
  Re: Looking for interesting "docking" shape  
From:
Date: 25 Jun 2004 14:29:08
Message: <40dc6ef4$1@news.povray.org>
Hi Micha,

if triangulation isn't absolutely neccessary, you
might try this general method:

#declare DockingShape1 = /* a CSG-able object */
#declare AuxiliaryShape = /* a different CSG-able object */

#declare DockingShape2 = difference {
  object { AuxiliaryShape }
  object { DockingShape1 }
  }

Obviously the two DockingShapes fit perfectly,
because the DockingShape1 carves a hole for
itself into the AuxiliaryShape, giving the
DockingShape2.
To make this work, the intersection of the
DockingShape1 and the AuxiliaryShape must
be non-empty.
This will work with meshes, but POV-Ray can't
give you the DockingShape2 as a single mesh
object.

   Sputnik


Post a reply to this message

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