POV-Ray : Newsgroups : povray.advanced-users : Bounding Box issue : Re: Bounding Box issue Server Time
28 Jul 2024 10:28:23 EDT (-0400)
  Re: Bounding Box issue  
From: Mike Williams
Date: 6 May 2006 05:36:59
Message: <5xl9DAA34GXEFw3A@econym.demon.co.uk>
Wasn't it McHannemann who wrote:
>ok,
>here are the nominees ;-)
>
>first the object to drop on is a mesh heightfield, I used a simple version
>of a rectangle to define the area...:
>#declare OBCollision = mesh2 {
> vertex_vectors
>{4,<1,4.80723e-007,1>,<-1,2.14342e-007,1>,<-1,1.82865e-007,-1>,<1,3.50524e-
>007,-1>
>}
> normal_vectors
>{4,<-1.3319e-007,1,-1.57385e-008>,<-1.3319e-007,1,-1.57385e-008>,<-1.3319e-
>007,1,-1.57385e-008>,<-1.3319e-007,1,-1.5738
>5e-008>
>}
> texture_list { 1, texture{blender_default_tex}}
> face_indices { 2,<0,1,2>,0,<2,3,0>,0}
> normal_indices {0}
> matrix <18.9097,0,0,0,18.9097,0,0,0,22.1856,-2.29326,-1.36449,9.97583>}
>
>and then I defined the function to drop on:
>#declare Object = object{OBCollision};
>#declare MinBox = min_extent(Object);
>#declare MaxBox = max_extent(Object);
>
>and this is the result of the drop on function I use:
>http://img69.imageshack.us/img69/5162/bug0015cw.jpg
>
>I hope you guyz are able to help me,
>by the way the object(Mesh Heightfield) is properly recognized by
>makesnow.inc

It's easy to show that the object is inside its bounding box. Just do
this:

#declare BBox = box {MinBox,MaxBox pigment {rgb x}}

difference {
  object {OBCollision}
  object {BBox}
}

This displays all the parts of the object that are outside the bounding
box, and the resulting render is completely blank. The object is
completely inside the bounding box.

Whatever's going wrong with your later processing can't be blamed on
min_extent and max_extent problems.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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