Package com.bulletphysics.collision.shapes

Examples of com.bulletphysics.collision.shapes.IndexedMesh


    for (int i = 0; i < this.getSlicePlanesY().getList().size(); i++) {
      SlicePlane plane = this.getSlicePlanesY().getList().get(i);
      plane.buildCoverPath();
      if (lastPlane != null) {
        IndexedMesh vertexArray = lastPlane.loftCollisonMeshBetween(
            lastPlane.coverPath, plane, plane.coverPath, 0.2f,
            offset);
        if (vertexArray != null) {
          triangleArray.addIndexedMesh(vertexArray);
          // System.out.println("got mesh");
View Full Code Here


    TriangleIndexVertexArray triangleArray = new TriangleIndexVertexArray();

    for (int i = 0; i < this.getSlicePlanesY().getList().size(); i++) {
      SlicePlane slicePlane = this.getSlicePlanesY().getList().get(i);
      IndexedMesh vertexArray = slicePlane.getIndexedMesh(offsetX,
          offsetY, offsetZ);
      if (vertexArray != null)
        triangleArray.addIndexedMesh(vertexArray);
      // slicePlane.getIndexedMesh();
    }

    for (int i = 0; i < this.slicePlanesSlatSlices.getList().size(); i++) {
      SlicePlane slicePlane = this.slicePlanesSlatSlices.getList().get(i);
      IndexedMesh vertexArray = slicePlane.getIndexedMesh(offsetX,
          offsetY, offsetZ);
      if (vertexArray != null) {
        triangleArray.addIndexedMesh(vertexArray);
      }
      // slicePlane.getIndexedMesh();
View Full Code Here

  }

  public IndexedMesh getIndexedMesh(float offsetX, float offsetY,
      float offsetZ) {

    IndexedMesh indexedMesh = new IndexedMesh();
    // Vec2D centre = this.sketchSpline.getCentreOfMass();

    this.getSketch().buildOutline();

    if (this.getSketch().getSketchShapes().sketchOutlines
View Full Code Here

  }

  public IndexedMesh loftCollisonMeshBetween(SketchPath coverPath,
      SlicePlane planeOther, SketchPath coverPathOther, float stepRes,
      Vec3D offset) {
    IndexedMesh vertexArray = new IndexedMesh();

    if (coverPath == null || coverPath.size() < 2 || coverPathOther == null
        || coverPathOther.size() < 2) {
      //System.out.println("cover wrong");
      return null;
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.shapes.IndexedMesh

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.