Beispiel #1
0
  public static void main(String[] args) {
    RectangularBox rb = new RectangularBox();

    System.out.println("Created: " + rb);

    Point3f p = new Point3f(95, 18f, 98);

    System.out.println("Moved: " + rb.getTranslatedRegion(new Vector3f(p)));
    System.out.println("Sphere around: " + RectangularBox.getEnclosingSphere(rb));

    SimpleCell cell = new SimpleCell("fff");
    Vector3f origLoc = new Vector3f(cell.getFirstSomaSegment().getStartPointPosition());
    origLoc.scale(-1);
    CellTopologyHelper.translateAllPositions(cell, origLoc);

    System.out.println("Cell: " + CellTopologyHelper.printShortDetails(cell));

    System.out.println("Is point: " + p + " in region: " + rb.isCellWithinRegion(p, cell, true));
  }
Beispiel #2
0
 public static void main(String[] args) {
   GolgiCell g = new GolgiCell("Test golgi");
   System.out.println(CellTopologyHelper.printDetails(g, null));
 }