Package jpbrt.core

Examples of jpbrt.core.BBox


    }

    @Override
    public BBox objectBound()
    {
        BBox bbox = new BBox();
        for (Point pt : p)
            bbox.unionLocal( worldToObject.transform(pt) );
        return bbox;
    }
View Full Code Here


    }
   
    @Override
    public BBox worldBound()
    {
        BBox bbox = new BBox();
        for (Point pt : p)
            bbox.unionLocal(pt);
        return bbox;
    }
View Full Code Here

    }

    @Override
    public BBox objectBound()
    {
        return new BBox( new Point(-radius, -radius, zmin),
                         new Point(radius, radius, zmax) );
    }
View Full Code Here

    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) );
    }
View Full Code Here

    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);
    }
View Full Code Here

TOP

Related Classes of jpbrt.core.BBox

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.