6970717273747576777879
@Override public BBox objectBound() { BBox bbox = new BBox(); for (Point pt : p) bbox.unionLocal( worldToObject.transform(pt) ); return bbox; } @Override public BBox worldBound()
7879808182838485868788
@Override public BBox worldBound() { BBox bbox = new BBox(); for (Point pt : p) bbox.unionLocal(pt); return bbox; } @Override public boolean canIntersect()
3132333435363738394041
{ 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) ); } @Override public BBox worldBound() {
4142434445464748495051
{ 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); } @Override public Intersection intersect(Ray ray) {