Aron Bierbaum wrote:That's why the
> One last question, at the bottom of the method do we have to update
> the parent volumes when any of the following change:
> 
> TypesFieldMask | LengthsFieldMask | PropIndicesFieldMask
> 
> I could see where it wouldn't matter because as long as the positions
> don't change the volume doesn't need to be updated. I just wanted to
> validate this.

Hm, yes and no. If you have shared vertices (i.e. a giant vertex property that 
is used by a lot of little objects) changing the indices can have an impact on 
the BBox. That's why the Geometry::adjustVolume doesn't go over the whole 
property but only over the ones that are used in the Primitives.

So I think LengthsFieldMask and PropIndicesFieldMask need to stay. Types should 
be ok.

I can't think of many situations where you would change lengths and indices but 
not change the vertices anyway, I don't think it's going to be critical 
performancewise.

Yours

        Dirk

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to