POV-Ray : Newsgroups : povray.newusers : How to change union or merge object's "center" ? : Re: How to change union or merge object's "center" ? Server Time
2 Nov 2024 05:22:25 EDT (-0400)
  Re: How to change union or merge object's "center" ?  
From: Hughes, B 
Date: 29 Aug 2004 02:14:58
Message: <41317462$1@news.povray.org>
Don't forget min_extent and max_extent to find corners of bounding boxes for 
objects. I think this might be what was being sought after. Just be sure to 
read the help about those not being accurate for all instances.

A file called transforms.inc exists, located in POV\Includes, which could be 
used. The macro Center_Trans() will align to an axis or axes (says x or x+y, 
x+y+z is also possible).

Declare your CSG first, then use:

#include "transforms.inc"

object {
    CSG
 Center_Trans(CSG, x+y+z)
}


Post a reply to this message

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