Hello I tried to add the outline on my vtk bezier hexahedron
vtkActor actor= new vtkActor();
vtkActor actorBorder= new vtkActor();
vtkUnstructuredGrid ugrid= new vtkUnstructuredGrid();
ugrid.SetPoints(points);
ugrid.GetPointData().SetRationalWeights(rationalWeights);
ugrid.InsertNextCell(new vtkBezierHexahedron().GetCellType()/*
* VTK_BEZIER_HEXAHEDRON
*/, pointIds);
vtkDataSetMapper mapper= new vtkDataSetMapper();
vtkPolyDataMapper mapper1= new vtkPolyDataMapper();
vtkTessellatorFilter tessellator= new vtkTessellatorFilter();
tessellator.SetInputData(ugrid);
tessellator.SetChordError(0.005);
tessellator.SetMaximumNumberOfSubdivisions(5);
tessellator.Update();
vtkOutlineFilter outlineFilter= new vtkOutlineFilter();
outlineFilter.SetInputConnection(tessellator.GetOutputPort());
vtkPolyDataNormals normalsFilter= new vtkPolyDataNormals();
normalsFilter.SetInputConnection(outlineFilter.GetOutputPort());
normalsFilter.SplittingOff();
mapper1.SetInputConnection(normalsFilter.GetOutputPort());
mapper.SetInputConnection(tessellator.GetOutputPort());
actor.SetMapper(mapper);
actorBorder.SetMapper(mapper1);
actor.GetProperty().SetColor(0, 1, 0);
actorBorder.GetProperty().SetColor(1.0, 0, 0);
ren.AddActor(actor);
ren.AddActor(actorBorder);
ren.SetGradientBackground(true);
ren.SetBackground(Bgcolor);
ren.SetBackground2(Bgcolor2);
Thank you for your feedback.