Package jmt.engine.jaba.Hull

Examples of jmt.engine.jaba.Hull.Vertex


      int b = (int) Math
          .round((serviceTimes[i][1][0] * prop * visits[i][1]));
      int c = (int) Math
          .round((serviceTimes[i][2][0] * prop * visits[i][2]));
      // System.out.println(i+": "+a+" "+b+" "+c);
      vertices.addElement(new Vertex(a, b, c));
    }
    return vertices;
  }
View Full Code Here


public class Beta3D {

  private double EPSYLON = 0.00001;

  public Sector3D BetaTriangle(newFace f) {
    Vertex v1 = f.getV0();
    int[] v1c = v1.getCoords();
    int v1x = v1c[0];
    int v1y = v1c[1];
    int v1z = v1c[2];

    Vertex v2 = f.getV1();
    int[] v2c = v2.getCoords();
    int v2x = v2c[0];
    int v2y = v2c[1];
    int v2z = v2c[2];

    Vertex v3 = f.getV2();
    int[] v3c = v3.getCoords();
    int v3x = v3c[0];
    int v3y = v3c[1];
    int v3z = v3c[2];

    double[][] arraya = { { 1, 1, 1, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 1, 1, 1, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 1, 1, 1 },
View Full Code Here

    // Se c'è una sola stazione oppure una sola è dominante finisce qui
    OneDominator od = new OneDominator();
    od.setVertices(vertices);
    if (od.IsOneDominator()) {
      Vertex dom = od.getDominator();
      // System.out.println(dom);
      sett1staz = b3d.OneDominator(od.getDominator());

      out.addElement(faces);
      out.addElement(original3D);
View Full Code Here

    // Se c'è una sola stazione oppure una sola è dominante finisce qui
    OneDominator od = new OneDominator();
    od.setVertices(vertices);
    if (od.IsOneDominator()) {
      Vertex dom = od.getDominator();
      // System.out.println(dom);
      sett1staz = b3d.OneDominator(od.getDominator());

      // out.addElement(faces);
      out.addElement(original3D);
View Full Code Here

    for (int i = 0; i < tri.size(); i++) {
      double[] abetas = ((Sector3D) tri.get(i)).getBetas(0);
      double[] bbetas = ((Sector3D) tri.get(i)).getBetas(1);
      double[] cbetas = ((Sector3D) tri.get(i)).getBetas(2);
      Vertex s0 = ((Sector3D) tri.get(i)).getS0();
      Vertex s1 = ((Sector3D) tri.get(i)).getS1();
      Vertex s2 = ((Sector3D) tri.get(i)).getS2();

      // Segmento S0-S1
      out.addElement(new Segment3D(abetas[0], abetas[1], abetas[2], bbetas[0], bbetas[1], bbetas[2], s0, s1));
      // Segmento S0-S2
      out.addElement(new Segment3D(abetas[0], abetas[1], abetas[2], cbetas[0], cbetas[1], cbetas[2], s0, s2));
View Full Code Here

  }

  public Vector<Object> FixLtFrom2Dxy(Vector<Sector2D> resxy) {
    Vector<Object> out = new Vector<Object>();
    for (int i = 0; i < resxy.size(); i++) {
      Vertex st1 = new Vertex((resxy.get(i).getP1()).x, (resxy.get(i).getP1()).y,
      // metto -1 per indicare che la coordinata originale si è persa
          -1);
      Vertex st2 = new Vertex((resxy.get(i).getP2()).x, (resxy.get(i).getP2()).y, -1);
      out.addElement(new Segment3D(resxy.get(i).getBeta1(), resxy.get(i).getBeta11(),
      // i punti che arrivano da xy hanno per definizione beta3=0
          0, resxy.get(i).getBeta2(), resxy.get(i).getBeta22(), 0, st1, st2));
    }
    return out;
View Full Code Here

  }

  public Vector<Object> FixLtFrom2Dxz(Vector<Sector2D> resxz) {
    Vector<Object> out = new Vector<Object>();
    for (int i = 0; i < resxz.size(); i++) {
      Vertex st1 = new Vertex((resxz.get(i).getP1()).x,
      // metto -1 per indicare che la coordinata originale si è persa
          -1, (resxz.get(i).getP1()).y);
      Vertex st2 = new Vertex((resxz.get(i).getP2()).x, -1, (resxz.get(i).getP2()).y);
      out.addElement(new Segment3D(resxz.get(i).getBeta1(),
      // i punti che arrivano da xz hanno per definizione beta2=0
          0.0, resxz.get(i).getBeta11(), resxz.get(i).getBeta2(), 0.0, resxz.get(i).getBeta22(), st1, st2));
    }
    return out;
View Full Code Here

  }

  public Vector<Object> FixLtFrom2Dyz(Vector<Sector2D> resyz) {
    Vector<Object> out = new Vector<Object>();
    for (int i = 0; i < resyz.size(); i++) {
      Vertex st1 = new Vertex(
      // metto -1 per indicare che la coordinata originale si è persa
          -1, (resyz.get(i).getP1()).x, (resyz.get(i).getP1()).y);
      Vertex st2 = new Vertex(-1, (resyz.get(i).getP2()).x, (resyz.get(i).getP2()).y);
      out.addElement(new Segment3D(
      // i punti che arrivano da yz hanno per definizione beta2=0
          0.0, resyz.get(i).getBeta1(), resyz.get(i).getBeta11(), 0, resyz.get(i).getBeta2(), resyz.get(i).getBeta22(), st1, st2));
    }
    return out;
View Full Code Here

    // Se c'è una sola stazione oppure una sola è dominante finisce qui
    OneDominator od = new OneDominator();
    od.setVertices(vertices);
    if (od.IsOneDominator()) {
      Vertex dom = od.getDominator();
      //System.out.println(dom);
      sett1staz = b3d.OneDominator(od.getDominator());

      out.addElement(faces);
      out.addElement(original3D);
View Full Code Here

    // Se c'è una sola stazione oppure una sola è dominante finisce qui
    OneDominator od = new OneDominator();
    od.setVertices(vertices);
    if (od.IsOneDominator()) {
      Vertex dom = od.getDominator();
      //System.out.println(dom);
      sett1staz = b3d.OneDominator(od.getDominator());

      //out.addElement(faces);
      out.addElement(original3D);
View Full Code Here

TOP

Related Classes of jmt.engine.jaba.Hull.Vertex

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.