Mesh Operations

Mesh Operations#

These functions build a mesh from arrays or operate on a dataset as a whole. Most operations on a mesh are available as filter methods; see Filters.

Mesh Creation#

These functions build a mesh from existing points and faces, or from other datasets.

create_grid(dataset[, dimensions])

Create a uniform grid surrounding the given dataset.

line_segments_from_points(points)

Generate non-connected line segments from points.

lines_from_points(points[, close])

Make a connected line set given an array of points.

make_tri_mesh(points, faces)

Construct a pyvista.PolyData mesh using points and faces arrays.

merge(datasets[, merge_points, ...])

Merge several datasets.

vector_poly_data(orig, vec)

Create a pyvista.PolyData object composed of vectors.

See also

Creating a Spline

Build a spline from an array of points.

merge()

Merge datasets as a method on the dataset.

Points#

These functions operate on arrays of points.

fit_line_to_points(points, *[, resolution, ...])

Fit a line to points using its principal_axes().

fit_plane_to_points(points[, return_meta, ...])

Fit a plane to points using its principal_axes().

core.utilities.is_inside_bounds(point, bounds)

Check if a point is inside a set of bounds.

principal_axes(...)

Compute the principal axes of a set of points.

See also

Analyze the Orientation of a Point Cloud

Fit a plane and a line to a point cloud using its principal axes.

Implicit Functions#

An implicit function defines a scalar value at every point in space, such as the signed distance from a plane. sample_function() evaluates one over a grid to produce a ImageData.

generate_plane(normal, origin)

Return a vtkPlane.

perlin_noise(amplitude, freq, phase)

Return the implicit function that implements Perlin noise.

sample_function(function, bounds, dim, ...)

Sample an implicit function over a structured point set.

See also

Sample Function: Perlin Noise in 2D

Sample Perlin noise in 2D.

Sample Function: Perlin Noise in 3D

Sample Perlin noise in 3D.

Fast Fourier Transform With Perlin Noise

Filter sampled noise with a fast Fourier transform.