1#include <vtkIdTypeArray.h>
2#include <vtkInformation.h>
4#include <vtkPolyData.h>
12 SetNumberOfInputPorts(0);
13 SetNumberOfOutputPorts(1);
17 vtkInformation *info) {
19 info->Set(vtkDataObject::DATA_TYPE_NAME(),
"vtkPolyData");
27 vtkInformationVector **
ttkNotUsed(inputVector),
28 vtkInformationVector *outputVector) {
30 auto domain = vtkPolyData::GetData(outputVector);
32 vtkNew<vtkPoints> points{};
33 points->SetNumberOfPoints(NumberOfSamples);
35 if(points->GetDataType() == VTK_FLOAT) {
36 this->generate<float>(
37 Dimension, NumberOfSamples, RandomSeed,
39 }
else if(points->GetDataType() == VTK_DOUBLE) {
40 this->generate<double>(
41 Dimension, NumberOfSamples, RandomSeed,
#define ttkNotUsed(x)
Mark function/method parameters that are not used in the function body at all.
TTK VTK-filter that generates a 1D, 2D or 3D point cloud by randomly casting samples from a Gaussian ...
int FillOutputPortInformation(int port, vtkInformation *info) override
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
static void * GetVoidPointer(vtkDataArray *array, vtkIdType start=0)
static int CellVertexFromPoints(vtkDataSet *const dataSet, vtkPoints *const points)
vtkStandardNewMacro(ttkGaussianPointCloud)