|
|
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
|
|
|
|
> 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 }
> }
>
Yes, that is a possibility. I do not need perfect fitting tough, it's even
better when the fit is not perfect. Finally I will need a triangulation but
there are also programs for CSG on meshes (Never used them though but I
strongly believe to have seen this to be claimed on some feature lists).
- Micha
--
Personal Page: http://www.povworld.de/michariser/en/
POV-Ray Objects Collection: http://objects.povworld.org
Post a reply to this message
|
|