vtkLineSource creates a line segment from point1 to point2; The resolution can be specified, which determines the number of points along the line. Following a vtkLineSource by a vtkTubeFilter is a convenient way to create a cylinder based on endpoints.
/** * Set the starting point of the line. * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. */ setPoint1(x: number, y: number, z: number): boolean;
/** * Set the starting point of the line. * @param {Vector3} point1 The starting point's coordinates. */ setPoint1(point1: Vector3): boolean;
/** * Set the starting point of the line. * @param {Vector3} point1 The starting point's coordinates. */ setPoint1From(point1: Vector3): boolean;
/** * Set the ending point of the line. * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. */ setPoint2(x: number, y: number, z: number): boolean;
/** * Set the ending point of the line. * @param {Vector3} point2 The ending point's coordinates. */ setPoint2From(point2: Vector3): boolean;
/** * Set the number of segments used to represent the line. * @param {Number} resolution The number of segments. */ setResolution(resolution: number): boolean; }
/** * Method used to decorate a given object (publicAPI+model) with vtkLineSource characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {ILineSourceInitialValues} [initialValues] (default: {}) */ exportfunctionextend( publicAPI: object, model: object, initialValues?: ILineSourceInitialValues ): void;
/** * Method used to create a new instance of vtkLineSource. * @param {ILineSourceInitialValues} [initialValues] for pre-setting some of its content */ exportfunctionnewInstance( initialValues?: ILineSourceInitialValues ): vtkLineSource;
/** * vtkLineSource creates a line segment from point1 to point2; * The resolution can be specified, which determines the number of points along the line. * Following a vtkLineSource by a vtkTubeFilter is a convenient way to create a cylinder based on endpoints. * * @example * ```js * import vtkLineSource from '@kitware/vtk.js/Filters/Sources/LineSource'; * * const line = vtkLineSource.newInstance({ resolution: 10 }); * const polydata = line.getOutputData(); * ``` */ export declare constvtkLineSource: { newInstance: typeof newInstance; extend: typeof extend; }; exportdefault vtkLineSource;