46 vcIn.fViewer->renderer)
50 plane->SetOrigin(0, 0, 0);
51 plane->SetNormal(0, 1, 0);
53 vtkNew<vtkPlaneCollection> planes;
54 planes->AddItem(plane);
58 clipper->SetClippingPlanes(planes);
59 clipper->SetInputConnection(filter->GetOutputPort());
61 clipper->PassPointDataOn();
65 filterNormals->SetFeatureAngle(45);
66 filterNormals->SetInputConnection(clipper->GetOutputPort());
70 mapper->SetInputConnection(filterNormals->GetOutputPort());
71 mapper->SetColorModeToDirectScalars();
72 mapper->ScalarVisibilityOn();
73 mapper->SetResolveCoincidentTopologyToPolygonOffset();
74 mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(1, -
vc.
fDepth);
78 actor->SetMapper(mapper);
79 actor->SetVisibility(1);
83 actor->GetProperty()->SetOpacity(
vc.
alpha);
89 actor->GetProperty()->SetRepresentationToSurface();
92 actor->GetProperty()->SetRepresentationToSurface();
95 actor->GetProperty()->SetRepresentationToWireframe();
99 actor->GetProperty()->SetAmbient(0.2);
100 actor->GetProperty()->SetDiffuse(0.7);
101 actor->GetProperty()->SetSpecular(0.1);
102 actor->GetProperty()->SetSpecularPower(1);
void TransformPlane(G4double dx, G4double dy, G4double dz, G4double r00, G4double r01, G4double r02, G4double r10, G4double r11, G4double r12, G4double r20, G4double r21, G4double r22)
G4ViewParameters::DrawingStyle fDrawingStyle
const G4VtkViewer * fViewer