Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1314 - in trunk/Model: Groups Primitives
- Date: Wed, 21 Mar 2007 17:06:55 -0700 (MST)
Author: bigler
Date: Wed Mar 21 17:06:55 2007
New Revision: 1314
Modified:
trunk/Model/Groups/DynBVH.h
trunk/Model/Primitives/WaldTriangle.h
Log:
Model/Groups/DynBVH.h
Model/Primitives/WaldTriangle.h
Bounding box should be extended and not over written.
Modified: trunk/Model/Groups/DynBVH.h
==============================================================================
--- trunk/Model/Groups/DynBVH.h (original)
+++ trunk/Model/Groups/DynBVH.h Wed Mar 21 17:06:55 2007
@@ -73,8 +73,8 @@
void computeBounds(const PreprocessContext&,
BBox& bbox) const
{
- if (num_nodes)
- bbox = nodes[0].bounds;
+ if (num_nodes)
+ bbox.extendByBox(nodes[0].bounds);
}
static Group* create(const vector<string>&)
Modified: trunk/Model/Primitives/WaldTriangle.h
==============================================================================
--- trunk/Model/Primitives/WaldTriangle.h (original)
+++ trunk/Model/Primitives/WaldTriangle.h Wed Mar 21 17:06:55 2007
@@ -22,7 +22,7 @@
void computeBounds(const PreprocessContext& context,
BBox& bbox) const
{
- bbox = box;
+ bbox.extendByBox( box );
}
void intersect(const RenderContext& context, RayPacket& rays) const;
- [MANTA] r1314 - in trunk/Model: Groups Primitives, bigler, 03/21/2007
Archive powered by MHonArc 2.6.16.