Skip to content

Commit

Permalink
uncomment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Sep 18, 2023
1 parent 1b64473 commit 2e235e9
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,22 @@ protected Group build() {

final var rdg = new RDG(CUBE_EDGE_LENGTH, 1);
rdg.addAxes(view, 0.1f, 0.2f, 0.008f, 20);
// final var children = view.getChildren();
//
// final var radius = TET_EDGE_LENGTH / 2;
// children.add(populate(Colors.redMaterial, radius, rdg));
// final var cell = new Point3i();
// children.add(neighbors(cell, Colors.blueMaterial, radius, rdg));
//
// final var triangleMesh = RhombicDodecahedron.createRhombicDodecahedron(TET_EDGE_LENGTH);
// Transform p = rdg.postitionTransform(cell.x, cell.y, cell.z);
//
// var polyhedron = new MeshView(triangleMesh);
// polyhedron.setMaterial(Colors.greenMaterial);
// polyhedron.setCullFace(CullFace.BACK);
// polyhedron.getTransforms().clear();
// polyhedron.getTransforms().addAll(p);
// view.getChildren().add(polyhedron);
final var children = view.getChildren();

final var radius = TET_EDGE_LENGTH / 2;
children.add(populate(Colors.redMaterial, radius, rdg));
final var cell = new Point3i();
children.add(neighbors(cell, Colors.blueMaterial, radius, rdg));

final var triangleMesh = RhombicDodecahedron.createRhombicDodecahedron(TET_EDGE_LENGTH);
Transform p = rdg.postitionTransform(cell.x, cell.y, cell.z);

var polyhedron = new MeshView(triangleMesh);
polyhedron.setMaterial(Colors.greenMaterial);
polyhedron.setCullFace(CullFace.BACK);
polyhedron.getTransforms().clear();
polyhedron.getTransforms().addAll(p);
view.getChildren().add(polyhedron);
return view;
}

Expand Down

0 comments on commit 2e235e9

Please sign in to comment.