import vtk.vtkHexahedron;
import vtk.vtkPoints;
import vtk.vtkUnstructuredGrid;


public class Hexagone {

	
    public Hexagone() {

    	
    	vtkUnstructuredGrid usgrid = new vtkUnstructuredGrid();
    	vtkPoints points = new vtkPoints();
    	int nbpoints = 12;
    	
        points.InsertNextPoint(-1, 0, -10);
        points.InsertNextPoint(-0.5, Math.sqrt(3)/2, -10);
        points.InsertNextPoint(0.5, Math.sqrt(3)/2, -10);
        points.InsertNextPoint(1, 0, -10);
        points.InsertNextPoint(0.5, -Math.sqrt(3)/2, -10);
        points.InsertNextPoint(-0.5, -Math.sqrt(3)/2, -10);

        points.InsertNextPoint(0, 0, -10);
        
        points.InsertNextPoint(-1, 0, 10);
        points.InsertNextPoint(-0.5, Math.sqrt(3)/2, 10);
        points.InsertNextPoint(0.5, Math.sqrt(3)/2, 10);
        points.InsertNextPoint(1, 0, 10);
        points.InsertNextPoint(0.5, -Math.sqrt(3)/2, 10);
        points.InsertNextPoint(-0.5, -Math.sqrt(3)/2, 10);
        
        points.InsertNextPoint(0, 0, 10);        
        
        
        usgrid.SetPoints(points);
        


    }
	
	public static void main(String[] args) {


	}

}
