final Box box = new Box(10,10,10,
Box.GENERATE_NORMALS |
Box.ENABLE_GEOMETRY_PICKING,
redLook);
this.edgeAppearanceTransformer = new ConstantTransformer(lightGrayLook);
this.edgeShapeTransformer = new Transformer<Context<Graph<V,E>,E>,Node>() {
public Node transform(Context<Graph<V,E>,E> ec) {
LineArray lineArray = new LineArray(2, LineArray.COORDINATES | LineArray.COLOR_3);
lineArray.setCoordinates(0, new Point3f[]{new Point3f(0,-.5f,0),new Point3f(0,.5f,0)});
lineArray.setColor(0, new Color3f(1,1,1));
lineArray.setColor(1, new Color3f(1,1,1));
Shape3D shape = new Shape3D();
shape.setGeometry(lineArray);
return shape;
// return new Cylinder(1, 1,
// Cylinder.GENERATE_NORMALS |
// Cylinder.ENABLE_GEOMETRY_PICKING,
// 26, 26, lightGrayLook);
}};
this.vertexAppearanceTransformer = new ConstantTransformer(redLook);
this.vertexShapeTransformer = new Transformer<V,Node>() {
public Node transform(V arg0) {
return new Sphere(10,
Sphere.GENERATE_NORMALS |