63 :
64 G4VVtkPipeline(nameIn,
"G4VtkUnstructuredPipeline", vcIn,
false, vcIn.fViewer->renderer) {
65
67
70 pointColourValues->SetNumberOfComponents(4);
71 cellColourValues->SetNumberOfComponents(4);
72
75 pointColourIndices->SetNumberOfComponents(1);
76 cellColourIndices->SetNumberOfComponents(1);
77
79 colourLUT->DiscretizeOn();
80
82 unstructuredGrid->SetPoints(points);
83 unstructuredGrid->GetPointData()->SetScalars(pointColourValues);
84 unstructuredGrid->GetCellData()->SetScalars(cellColourValues);
85
86
87#if 0
89 clean->SetInputData(unstructuredGrid);
90 clean->ToleranceIsAbsoluteOff();
91 clean->SetTolerance(1e-6);
92#endif
93
94
96 vtkNew<vtkPlane> plane;
97 clip->SetClipFunction(plane);
98 clip->SetInputData(unstructuredGrid);
99
100
102 tri->SetInputData(unstructuredGrid);
103
104
106 mapper->SetScalarModeToUseCellData();
107 mapper->SetColorModeToDirectScalars();
108 mapper->SetInputData(unstructuredGrid);
109
110
111
112
114 volumeMapper->SetScalarModeToUseCellData();
115 volumeMapper->SetInputConnection(tri->GetOutputPort());
116
117
119 volumeProp->SetColor(colourLUT);
120
121
123 actor->SetMapper(mapper);
124 actor->SetVisibility(1);
125
126
128 volume->SetMapper(volumeMapper);
129
130 volume->SetVisibility(1);
131
132
134
135}
vtkNew< vtkRenderer > renderer
const G4VtkViewer * fViewer