67686970717273747576
} @Override public BBox objectBound() { BBox bbox = new BBox(); for (Point pt : p) bbox.unionLocal( worldToObject.transform(pt) ); return bbox; }
76777879808182838485
} @Override public BBox worldBound() { BBox bbox = new BBox(); for (Point pt : p) bbox.unionLocal(pt); return bbox; }
3233343536373839
} @Override public BBox objectBound() { return new BBox( new Point(-radius, -radius, zmin), new Point(radius, radius, zmax) ); }
3031323334353637
public BBox objectBound() { Point p1 = mesh.p[v1]; Point p2 = mesh.p[v2]; Point p3 = mesh.p[v3]; BBox bbox = new BBox( worldToObject.transform(p1), worldToObject.transform(p2) ); return bbox.unionLocal( worldToObject.transform(p3) ); }
4041424344454647
public BBox worldBound() { Point p1 = mesh.p[v1]; Point p2 = mesh.p[v2]; Point p3 = mesh.p[v3]; BBox bbox = new BBox(p1, p2); return bbox.unionLocal(p3); }