Since there have been some posts on reorganization, would it be
possible or smart to commonalize some of the Math classes/routines, or
anything else used by both Producer and OSG into a cmomon utility
library. Another class that comes to mind is ref_ptr.

For what its worth, I've developed templated versions of the Matrix
and Vec classes (based on OSG/Producer) with template parameters for
both type and dimension. Code bloat due to template inlining however
is avoided by using explicit template instantiation for the common
uses, i.e. Vec2f, Vec2d, Vec3f, Vec3d, Vec4f, Vec4d, Matrixd, and
Matrixf. Typedefs also make the code backwards compatible.

Chris
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to