message: templated xfmBounds over vector type, so can now use it with box vec3f and vec3fa
diff: @@ -109,17 +109,21 @@ namespace ospcommon {
  template<typename L> inline const VectorT xfmVector(const AffineSpaceT<L>& m, const VectorT& v) { return xfmVector(m.l,v); }
  template<typename L> inline const VectorT xfmNormal(const AffineSpaceT<L>& m, const VectorT& n) { return xfmNormal(m.l,n); }
  - inline const box3fa xfmBounds(const AffineSpaceT<LinearSpace3<vec3fa> >& m, const box3fa& b)
  +
  + template<typename S, bool A=false>
  + inline const box_t<S,3,A>
  + xfmBounds(const AffineSpaceT<LinearSpace3<vec_t<S,3,A>>> &m,
  + const box_t<S,3,A> &b)
  {
  - box3fa dst = empty;
  - const vec3fa p0(b.lower.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p0));
  - const vec3fa p1(b.lower.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p1));
  - const vec3fa p2(b.lower.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p2));
  - const vec3fa p3(b.lower.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p3));
  - const vec3fa p4(b.upper.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p4));
  - const vec3fa p5(b.upper.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p5));
  - const vec3fa p6(b.upper.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p6));
  - const vec3fa p7(b.upper.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p7));
  + box_t<S,3,A> dst = empty;
  + const vec_t<S,3,A> p0(b.lower.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p0));
  + const vec_t<S,3,A> p1(b.lower.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p1));
  + const vec_t<S,3,A> p2(b.lower.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p2));
  + const vec_t<S,3,A> p3(b.lower.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p3));
  + const vec_t<S,3,A> p4(b.upper.x,b.lower.y,b.lower.z); dst.extend(xfmPoint(m,p4));
  + const vec_t<S,3,A> p5(b.upper.x,b.lower.y,b.upper.z); dst.extend(xfmPoint(m,p5));
  + const vec_t<S,3,A> p6(b.upper.x,b.upper.y,b.lower.z); dst.extend(xfmPoint(m,p6));
  + const vec_t<S,3,A> p7(b.upper.x,b.upper.y,b.upper.z); dst.extend(xfmPoint(m,p7));
  return dst;
  }
  