Package toxi.geom

Examples of toxi.geom.Spline3D


    // place zenith at mid point in XZ plane
    Vec3D zenith = a.interpolateTo(b, 0.5f);
    // set Y axis to half distance
    zenith.y = a.distanceTo(b) / 20;
    // put points into spline
    Spline3D s = new Spline3D();
    s.add(a);
    s.add(zenith);
    s.add(b);
    // sample curve
    return s.computeVertices(20);
  }
View Full Code Here


            List<Vec3D> points = new ArrayList<Vec3D>();
            points.add(new Vec3D());
            points.add(new Vec3D());
            points.add(new Vec3D());
            points.add(new Vec3D());
            test.spline3d = new Spline3D(points);
            JAXBContext context = JAXBContext.newInstance(JAXBGeomTest.class);
            File file = new File(XML_FILE);
            context.createMarshaller().marshal(test, file);
        } catch (JAXBException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of toxi.geom.Spline3D

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.