Examples of PointCloud


Examples of toxi.geom.PointCloud

  /**
   * Returns the stroke's bounding box
   * @return AABB - boundingBox
   */
  public AABB getBoundingBox() {
    PointCloud pointCloud = new PointCloud();
    pointCloud.addAll(points);
    return pointCloud.getBoundingBox();
  }
View Full Code Here

Examples of toxi.geom.PointCloud

   * Gets the bounding box of the Gml (including all strokes);
   * @return AABB
   */
  public AABB getBoundingBox() {

    PointCloud pointCloud = new PointCloud();
    ArrayList<Vec3D> list = new ArrayList<Vec3D>();

    // TODO choose what to return (0 or center) when there is no stroke
    for (GmlStroke stroke : getStrokes()) {
      AABB bounds = stroke.getBoundingBox();
      list.add(bounds.getMin());
      list.add(bounds.getMax());
    }

    pointCloud.addAll(list);
    return pointCloud.getBoundingBox();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.