vtkPointSource is a source object that creates a user-specified number of points within a specified radius about a specified center point. By default location of the points is random within the sphere. It is also possible to generate random points only on the surface of the sphere. The output PolyData has the specified number of points and 1 cell - a vtkPolyVertex containing all of the points.
/** * Set the center of the point cloud. * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. */ setCenter(x: number, y: number, z: number): boolean;
/** * Set the center of the point cloud. * @param {Vector3} center The center point's coordinates. */ setCenter(center: Vector3): boolean;
/** * Set the center of the point cloud. * @param {Vector3} center The center point's coordinates. */ setCenterFrom(center: Vector3): boolean;
/** * Set the number of points to generate. * @param {Number} numberOfPoints The number of points to generate. */ setNumberOfPoints(numberOfPoints: number): boolean;
/** * Set the radius of the point cloud. If you are generating a Gaussian * distribution, then this is the standard deviation for each of x, y, and * z. * @param {Number} radius The radius value. */ setRadius(radius: number): boolean; }
/** * Method used to decorate a given object (publicAPI+model) with vtkPointSource characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IPointSourceInitialValues} [initialValues] (default: {}) */ exportfunctionextend( publicAPI: object, model: object, initialValues?: IPointSourceInitialValues ): void;
/** * Method used to create a new instance of vtkPointSource. * @param {IPointSourceInitialValues} [initialValues] for pre-setting some of its content */ exportfunctionnewInstance( initialValues?: IPointSourceInitialValues ): vtkPointSource;
/** * vtkPointSource is a source object that creates a user-specified number of * points within a specified radius about a specified center point. By default * location of the points is random within the sphere. It is also possible to * generate random points only on the surface of the sphere. The output PolyData * has the specified number of points and 1 cell - a vtkPolyVertex containing * all of the points. * * @example * ```js * import vtkPointSource from '@kitware/vtk.js/Filters/Sources/PointSource'; * * const point = vtkPointSource.newInstance({ numberOfPoints: 10 }); * const polydata = point.getOutputData(); * ``` */ export declare constvtkPointSource: { newInstance: typeof newInstance; extend: typeof extend; }; exportdefault vtkPointSource;