Plotter.add_mesh#
- Plotter.add_mesh(
- mesh: PlottableType | _vtk.vtkAlgorithm | _vtk.vtkAlgorithmOutput,
- *,
- color: ColorLike | None = None,
- style: StyleOptions | None = None,
- scalars: str | NumpyArray[float] | None = None,
- clim: Sequence[float] | None = None,
- show_edges: bool | None = None,
- edge_color: ColorLike | None = None,
- point_size: float | None = None,
- line_width: float | None = None,
- line_style: LineStyle | None = None,
- opacity: float | OpacityOptions | str | VectorLike[float] | None = None,
- flip_scalars: bool = False,
- lighting: bool | None = None,
- n_colors: int = 256,
- interpolate_before_map: bool | None = None,
- cmap: ColormapOptions | LookupTable | None = None,
- label: str | None = None,
- reset_camera: bool | None = None,
- scalar_bar_args: ScalarBarArgs | None = None,
- show_scalar_bar: bool | None = None,
- multi_colors: bool = False,
- name: str | None = None,
- texture: Texture | NumpyArray[float] | None = None,
- render_points_as_spheres: bool | None = None,
- point_shape: PointSpriteShape | str | None = None,
- render_lines_as_tubes: bool | None = None,
- smooth_shading: bool | None = None,
- split_sharp_edges: bool | None = None,
- ambient: float | None = None,
- diffuse: float | None = None,
- specular: float | None = None,
- specular_power: float | None = None,
- nan_color: ColorLike | None = None,
- nan_opacity: float = 1.0,
- culling: CullingOptions | bool | None = None,
- rgb: bool | None = None,
- categories: bool | int = False,
- silhouette: SilhouetteArgs | bool | None = None,
- use_transparency: bool = False,
- below_color: ColorLike | None = None,
- above_color: ColorLike | None = None,
- annotations: dict[float, str] | None = None,
- pickable: bool = True,
- preference: PointLiteral | CellLiteral = 'point',
- log_scale: bool = False,
- pbr: bool | None = None,
- metallic: float | None = None,
- roughness: float | None = None,
- render: bool = True,
- static: bool = False,
- user_matrix: TransformLike | None = None,
- component: int | None = None,
- emissive: bool | None = None,
- copy_mesh: bool = False,
- backface_params: BackfaceArgs | Property | None = None,
- show_vertices: bool | None = None,
- edge_opacity: float | None = None,
- remove_existing_actor: bool | None = None,
- force_opaque: bool = False,
- **kwargs,
Add any PyVista/VTK mesh or dataset that PyVista can wrap to the scene.
This method is using a mesh representation to view the surfaces and/or geometry of datasets. For volume rendering, see
pyvista.Plotter.add_volume().To see the what most of the following parameters look like in action, please refer to
pyvista.Property.- Parameters:
- mesh
DataSet|MultiBlock| vtkAlgorithm |str|Path Any PyVista or VTK mesh is supported. Also, any dataset that
pyvista.wrap()can handle including NumPy arrays of XYZ points. Plotting also supports VTK algorithm objects (vtkAlgorithm and vtkAlgorithmOutput). When passing an algorithm, the rendering pipeline will be connected to the passed algorithm to dynamically update the scene (see Plotting With VTK Algorithms for examples).Added in version 0.47: Support adding a mesh directly from file.
- color
ColorLike, optional Use to make the entire mesh have a single solid color. Either a string, RGB list, or hex color string. For example:
color='white',color='w',color=[1.0, 1.0, 1.0], orcolor='#FFFFFF'. Color will be overridden if scalars are specified.Defaults to
pyvista.global_theme.color.- style
str, optional Visualization style of the mesh. One of the following:
style='surface',style='wireframe',style='points',style='points_gaussian'. Defaults to'surface'. Note that'wireframe'only shows a wireframe of the outer geometry.'points_gaussian'can be modified with theemissive,render_points_as_spheresoptions.- scalars
str|numpy.ndarray, optional Scalars used to “color” the mesh. Accepts a string name of an array that is present on the mesh or an array equal to the number of cells or the number of points in the mesh. Array should be sized as a single vector. If both
colorandscalarsareNone, then the active scalars are used.When a raw NumPy array is passed, it is attached to
meshunder a generated name (typicallypyvista.DEFAULT_SCALARS_NAMEorData-<n>if that name is taken). This makes the array visible to downstream pipeline stages (for example smooth-shading surface extraction) and lets callers later mutate it viamesh[name] = ...to update the render. Mutation is scoped to raw-NumPy inputs only. Passingscalars=<str>never modifies the mesh.- climsequence[
float], optional Two item color bar range for scalars. Defaults to minimum and maximum of scalars array. Example:
[-1, 2].rngis also an accepted alias for this.- show_edgesbool, optional
Shows the edges of a mesh. Does not apply to a wireframe representation.
- edge_color
ColorLike, optional The solid color to give the edges when
show_edges=True. Either a string, RGB list, or hex color string.Defaults to
pyvista.global_theme.edge_color.- point_size
float, optional Point size of any nodes in the dataset plotted. Also applicable when style=’points’, expressed in screen units. Default
5.0. Must be in the range[0.0, inf).- line_width
float, optional Thickness of lines. Only valid for wireframe and surface representations, expressed in screen units. Default
None. Must be in the range[0.0, inf).- line_style
str, optional Dash pattern drawn along the mesh’s line cells, one of
''(hidden),'-'(solid),'--',':','-.'or'-..'. The dashes are produced by the shader and keep a constant size on screen. Seepyvista.Actor.line_style.Any style but
'-'draws the mesh with a mapper that renderspyvista.PolyDatadirectly rather than the usualpyvista.DataSetMapper, extracting the surface of other dataset types first. Picking such a mesh with the'hardware'picker crashes on macOS when the scene is rendered in software.Added in version 0.50.
- opacity
float|str| array_like Opacity of the mesh. If a single float value is given, it will be the global opacity of the mesh and uniformly applied everywhere, and must be in the range
[0.0, 1.0], where1.0is totally opaque and0.0is completely transparent. A string can also be specified to map the scalars range to a predefined opacity transfer function (options include:'linear','linear_r','geom','geom_r'). A string could also be used to map a scalars array from the mesh to the opacity (must have the same number of elements as thescalarsargument, when scalars are given). Or you can pass a custom made transfer function that is an array eithern_colorsin length or shorter.- flip_scalarsbool, default:
False Flip direction of
cmap. Most colormaps allow*_rsuffix to do this as well.- lightingbool, optional
Enable or disable view direction lighting. Default
False.- n_colors
int, optional Number of colors to use when displaying scalars. Defaults to 256. The scalar bar will also have this many colors.
- interpolate_before_mapbool, optional
Enabling makes for a smoother scalars display. Default is
True. WhenFalse, OpenGL will interpolate the mapped colors which can result is showing colors that are not present in the color map.- cmap
str|list|LookupTable, default:pyvista.plotting.themes.Theme.cmap If a string, this is the name of the
matplotlibcolormap to use when mapping thescalars. See Named Colormaps for supported colormaps.Only applicable for when displaying
scalars.colormapis also an accepted alias for this. Ifcolorcetorcmoceanare installed, their colormaps can be specified by name.You can also specify a list of colors to override an existing colormap with a custom one. For example, to create a three color colormap you might specify
['green', 'red', 'blue'].This parameter also accepts a
pyvista.LookupTable. If this is set, all parameters controlling the color map liken_colorswill be ignored.- label
str, optional String label to use when adding a legend to the scene with
pyvista.Plotter.add_legend().- reset_camerabool, optional
Reset the camera after adding this mesh to the scene. The default setting is
None, where the camera is only reset if this plotter has already been shown. IfFalse, the camera is not reset regardless of the state of thePlotter. WhenTrue, the camera is always reset.- scalar_bar_args
dict, optional Dictionary of keyword arguments to pass when adding the scalar bar to the scene. For options, see
pyvista.Plotter.add_scalar_bar().- show_scalar_barbool, optional
If
False, a scalar bar will not be added to the scene.- multi_colorsbool |
str|cycler.Cycler| sequence[ColorLike], default:False If a
pyvista.MultiBlockdataset is given this will color each block by a solid color using a custom cycler.If
True, the default ‘matplotlib’ color cycler is used.See
set_color_cyclerfor usage of custom color cycles.- name
str, optional The name for the added mesh/actor so that it can be easily updated. If an actor of this name already exists in the rendering window, it will be replaced by the new actor.
- texture
pyvista.Textureornp.ndarray, optional A texture to apply if the input mesh has texture coordinates. This will not work with MultiBlock datasets.
- render_points_as_spheresbool, optional
Render points as spheres rather than dots.
- point_shape
PointSpriteShape|str, optional Render points as a custom sprite shape instead of squares. Accepts a
pyvista.plotting.opts.PointSpriteShapeenum value or a string. Must be one of'circle','triangle','hexagon','diamond','asterisk', or'star'. Backends with native point shapes apply the shape to vertex cells in all representation styles. Spheres and Gaussian splats retain their own silhouettes.On older backends, requires
style='points'and automatically disablesrender_points_as_sphereswith a warning.Added in version 0.48.
Changed in version 0.49: Native point shapes apply to vertices in all representations and preserve explicit sphere rendering.
- render_lines_as_tubesbool, optional
Show lines as thick tubes rather than flat lines. Control the width with
line_width.- smooth_shadingbool, optional
Enable smooth shading when
Trueusing the Phong shading algorithm. WhenFalse, use flat shading. Automatically enabled whenpbr=True. See Types of Shading.- split_sharp_edgesbool, optional
Split sharp edges exceeding 30 degrees when plotting with smooth shading. Control the angle with the optional keyword argument
feature_angle. By default this isFalseunless overridden by the global or plotter theme. Note that enabling this will create a copy of the input mesh within the plotter. See Types of Shading.- ambient
float, optional When lighting is enabled, this is the amount of light that reaches the actor when not directed at the light source emitted from the viewer. Default 0.0. Must be in the range
[0.0, 1.0]. A value of0.0adds no ambient light and1.0lights every surface fully, regardless of where the light is.- diffuse
float, optional The diffuse lighting coefficient. Default 1.0. Must be in the range
[0.0, 1.0]. A value of0.0reflects no light from the light source and1.0reflects the full amount.- specular
float, optional The specular lighting coefficient. Default 0.0. Must be in the range
[0.0, 1.0]. A value of0.0has no highlight and1.0has a full-intensity one.- specular_power
float, optional The specular power. Must be in the range
[0.0, 128.0]. A value of0.0spreads the highlight over the whole surface and128.0concentrates it into a small, sharp spot.- nan_color
ColorLike, optional The color to use for all
NaNvalues in the plotted scalar array.- nan_opacity
float, optional Opacity of
NaNvalues. Should be between 0 and 1. Default 1.0.- culling
str, optional Does not render faces that are culled. Options are
'front'or'back'. This can be helpful for dense surface meshes, especially when edges are visible, but can cause flat meshes to be partially displayed. Defaults toFalse.- rgbbool, optional
If an 2 dimensional array is passed as the scalars, plot those values as RGB(A) colors.
rgbais also an accepted alias for this. Opacity (the A) is optional. If a scalars array ending with"_rgba"is passed, the default becomesTrue. This can be overridden by setting this parameter toFalse.- categoriesbool |
int, optional If
True, each unique value in the scalar array gets its own color and is labelled on the scalar bar, and values between them take the NaN color. An integer is used as then_colorsargument instead.Changed in version 0.50:
Truegives every unique value its own color instead of spreading the colormap evenly over the scalar range.- silhouette
dict, bool, optional If set to
True, plot a silhouette highlight for the mesh. This feature is only available for a triangulatedPolyData. As adict, it contains the properties of the silhouette to display:color:ColorLike, color of the silhouetteline_width:float, edge widthopacity:floatbetween 0 and 1, edge transparencyfeature_angle: If afloat, display sharp edges exceeding that angle in degrees.decimate:floatbetween 0 and 1, level of decimation
- use_transparencybool, optional
Invert the opacity mappings and make the values correspond to transparency.
- below_color
ColorLike, optional Solid color for values below the scalars range (
clim). This will automatically set the scalar barbelow_labelto'below'.- above_color
ColorLike, optional Solid color for values below the scalars range (
clim). This will automatically set the scalar barabove_labelto'above'.- annotations
dict, optional Pass a dictionary of annotations. Keys are the float values in the scalars range to annotate on the scalar bar and the values are the string annotations.
- pickablebool, optional
Set whether this actor is pickable.
- preference
str, default: “point” When
mesh.n_points == mesh.n_cellsand setting scalars, this parameter sets how the scalars will be mapped to the mesh. Default'point', causes the scalars will be associated with the mesh points. Can be either'point'or'cell'.- log_scalebool, default:
False Use log scale when mapping data to colors. Scalars less than zero are mapped to the smallest representable positive float.
- pbrbool, optional
Enable physics based rendering (PBR) if the mesh is
PolyData. Use thecolorargument to set the base color.- metallic
float, optional This parameter is only used by PBR interpolation. Must be in the range
[0.0, 1.0]. A value of0.0is a non-metal such as plastic and1.0is a bare metal; values in between are valid but uncommon for a real material.- roughness
float, optional A glossy material has reflections and a high specular part. This parameter is only used by PBR interpolation. Must be in the range
[0.0, 1.0]. A value of0.0is glossy and1.0is rough.- renderbool, default:
True Force a render when
True.- staticbool, default:
False If
True, the mapper assumes the input data is static and skips checking its input pipeline for updates when rendering. The mapper’s input may still be replaced explicitly. Keeping the topology unchanged between replacements may allow the rendering backend to reuse index buffers while updating vertex attributes.Added in version 0.49.
- user_matrix
TransformLike, default:np.eye(4) Matrix passed to the Actor class before rendering. This affects the actor/rendering only, not the input volume itself. The user matrix is the last transformation applied to the actor before rendering. Defaults to the identity matrix.
- component
int, optional Set component of vector valued scalars to plot. Must be nonnegative, if supplied. If
None, the magnitude of the vector is plotted. See Plot Vector Component for examples.- emissivebool, optional
Treat the points/splats as emissive light sources. Only valid for
style='points_gaussian'representation.- copy_meshbool, default:
False If
True, a copy of the mesh will be made before adding it to the plotter. This is useful if you would like to add the same mesh to a plotter multiple times and display different scalars. Settingcopy_meshtoFalseis necessary if you would like to update the mesh after adding it to the plotter and have these updates rendered, for example, by changing the active scalars or through an interactive widget. This should only be set toTruewith caution. Defaults toFalse. This is ignored if the input is a vtkAlgorithm subclass.- backface_params
dict|Property, optional A
pyvista.Propertyor a dict of parameters to use for backface rendering. This is useful for instance when the inside of oriented surfaces has a different color than the outside. When apyvista.Property, this is directly used for backface rendering. When a dict, valid keys arepyvista.Propertyattributes, and values are corresponding values to use for the given property. Omitted keys (or the default ofbackface_params=None) default to the corresponding frontface properties.- show_verticesbool, optional
When
styleis not'points', render the external surface vertices. The following optional keyword arguments may be used to control the style of the vertices:vertex_color- The color of the verticesvertex_style- Change style to'points_gaussian'vertex_opacity- Control the opacity of the vertices
See Visible Vertices for examples.
- edge_opacity
float, optional Edge opacity of the mesh. A single float value that will be applied globally edge opacity of the mesh and uniformly applied everywhere. Must be in the range
[0.0, 1.0]. A value of1.0is totally opaque and0.0is completely transparent.Note
edge_opacityusesSetEdgeOpacityas the underlying method which requires VTK version 9.3 or higher. IfSetEdgeOpacityis not available,edge_opacityis set to 1.- remove_existing_actorbool, optional
Remove any existing actor in the renderer with the same name before adding this actor. By default, this is
Truewhennameis provided, andFalsewhennameisNone. Set toFalseto improve performance when adding multiple named actors, particularly during initial scene setup where no actors exist yet.- force_opaquebool, default:
False Whether to force the returned actor to be opaque. Can be useful for web visualization with
culling = "front"andopacitysmaller than 1. See Kitware/trame-vtk#105 for more details.Added in version 0.48.
- **kwargs
dict, optional Optional keyword arguments.
- mesh
- Returns:
pyvista.ActorActor of the mesh.
Examples#
Download Python source code | Download Jupyter notebook
Add a sphere to the plotter and show it with a custom scalar bar title.
>>> import pyvista as pv
>>> sphere = pv.Sphere()
>>> sphere['Data'] = sphere.points[:, 2]
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(sphere, scalar_bar_args={'title': 'Z Position'})
>>> pl.show()
Plot using RGB on a single cell. Note that since the number of
points and the number of cells are identical, we have to pass
preference='cell'.
>>> import pyvista as pv
>>> import numpy as np
>>> vertices = np.array(
... [
... [0, 0, 0],
... [1, 0, 0],
... [0.5, 0.667, 0],
... [0.5, 0.33, 0.667],
... ]
... )
>>> faces = np.hstack([[3, 0, 1, 2], [3, 0, 3, 2], [3, 0, 1, 3], [3, 1, 2, 3]])
>>> mesh = pv.PolyData(vertices, faces)
>>> mesh.cell_data['colors'] = [
... [255, 255, 255],
... [0, 255, 0],
... [0, 0, 255],
... [255, 0, 0],
... ]
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(
... mesh,
... scalars='colors',
... lighting=False,
... rgb=True,
... preference='cell',
... )
>>> pl.camera_position = 'xy'
>>> pl.show()
Note how this varies from preference=='point'. This is
because each point is now being individually colored, versus
in preference=='point', each cell face is individually
colored.
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(
... mesh,
... scalars='colors',
... lighting=False,
... rgb=True,
... preference='point',
... )
>>> pl.camera_position = 'xy'
>>> pl.show()
Plot a plane with a constant color and vary its opacity by point.
>>> plane = pv.Plane()
>>> plane.plot(
... color='b',
... opacity=np.linspace(0, 1, plane.n_points),
... show_edges=True,
... )
Plot the points of a sphere with Gaussian smoothing while coloring by z position.
>>> mesh = pv.Sphere()
>>> mesh.plot(
... scalars=mesh.points[:, 2],
... style='points_gaussian',
... opacity=0.5,
... point_size=10,
... render_points_as_spheres=False,
... show_scalar_bar=False,
... )
Plot spheres using 'points_gaussian' style and scale them by radius.
>>> N_SPHERES = 1_000_000
>>> rng = np.random.default_rng(seed=0)
>>> pos = rng.random((N_SPHERES, 3))
>>> rad = rng.random(N_SPHERES) * 0.01
>>> pdata = pv.PolyData(pos)
>>> pdata['radius'] = rad
>>> pdata.plot(
... style='points_gaussian',
... emissive=False,
... render_points_as_spheres=True,
... )
Used In#
Guides
- What Is a Mesh? (5 uses)
- PyVista Data Model (4 uses)
- Basic API Usage (2 uses)
- Interactive Plotting (2 uses)
- Lights (2 uses)
- API Reference (1 use)
- Cameras (1 use)
- Transitioning From VTK to PyVista (1 use)
API Examples
Plotter.enable_camera_distortion(2 uses)compare_images(2 uses)Actor(1 use)Actor.add_shader_replacement(1 use)Actor.backface_prop(1 use)336 more
Actor.clear_point_sprite_shape(1 use)Actor.copy(1 use)Actor.dash_interval(1 use)Actor.disable_maximum_intensity_projection(1 use)Actor.enable_maximum_intensity_projection(1 use)Actor.force_opaque(1 use)Actor.line_style(1 use)Actor.pickable(1 use)Actor.prop(1 use)Actor.set_point_sprite_shape(1 use)Actor.texture(1 use)Actor.use_bounds(1 use)Actor.visibility(1 use)AffineWidget3D(1 use)AxesActor(1 use)AxesAssembly(1 use)AxesAssembly.scale(1 use)AxesAssembly.user_matrix(1 use)AxesAssemblySymmetric(1 use)Camera.reset_clipping_range(1 use)Camera.tight(1 use)Camera.zoom(1 use)CircularArc(1 use)CircularArcFromNormal(1 use)CubeAxesActor(1 use)CubeFacesSource(1 use)Cylinder(1 use)CylinderSource(1 use)DataObjectFilters.cell_centers(1 use)DataObjectFilters.cell_validator(1 use)DataObjectFilters.convex_hull(1 use)DataObjectFilters.flip_normal(1 use)DataObjectFilters.flip_x(1 use)DataObjectFilters.flip_y(1 use)DataObjectFilters.flip_z(1 use)DataObjectFilters.rotate(1 use)DataObjectFilters.rotate_vector(1 use)DataObjectFilters.rotate_x(1 use)DataObjectFilters.rotate_y(1 use)DataObjectFilters.rotate_z(1 use)DataObjectFilters.scale(1 use)DataObjectFilters.slice_along_line(1 use)DataSet.arrows(1 use)DataSet.bounding_sphere(1 use)DataSet.cell_neighbors(1 use)DataSet.cell_neighbors_levels(1 use)DataSet.point_cell_ids(1 use)DataSet.point_neighbors(1 use)DataSet.point_neighbors_levels(1 use)DataSetFilters.align(1 use)DataSetFilters.align_xyz(1 use)DataSetFilters.bounding_box(1 use)DataSetFilters.compute_boundary_mesh_quality(1 use)DataSetFilters.compute_implicit_distance(1 use)DataSetFilters.connectivity(1 use)DataSetFilters.extract_cells(1 use)DataSetFilters.extract_cells_by_type(1 use)DataSetFilters.extract_values(1 use)DataSetFilters.glyph(1 use)DataSetFilters.interpolate(1 use)DataSetFilters.oriented_bounding_box(1 use)DataSetFilters.sample_over_circular_arc(1 use)DataSetFilters.sample_over_circular_arc_normal(1 use)DataSetFilters.sample_over_line(1 use)DataSetFilters.sample_over_multiple_lines(1 use)DataSetFilters.select_interior_points(1 use)DataSetFilters.split_values(1 use)DataSetFilters.streamlines_evenly_spaced_2D(1 use)DataSetFilters.voxelize_binary_mask(1 use)DataSetFilters.voxelize_rectilinear(1 use)DataSetFilters.warp_by_vector(1 use)ExplicitStructuredGrid.neighbors(1 use)Follower(1 use)Icosphere(1 use)ImageData.origin(1 use)ImageDataFilters.label_connectivity(1 use)ImageDataFilters.resample(1 use)ImageDataFilters.reslice(1 use)ImageDataFilters.select_values(1 use)Label(1 use)Light.attenuation_values(1 use)Light.cone_angle(1 use)Light.exponent(1 use)Light.intensity(1 use)Light.show_actor(1 use)LookupTable.apply_opacity(1 use)MultipleLines(1 use)OrthogonalPlanesSource(1 use)PickingComponent.disable_picking(1 use)PickingComponent.enable_cell_picking(1 use)PickingComponent.enable_mesh_picking(1 use)PickingComponent.enable_point_picking(1 use)PickingComponent.enable_rectangle_picking(1 use)PickingComponent.enable_surface_point_picking(1 use)PlanesAssembly(1 use)Plotter(1 use)Plotter.add_affine_transform_widget(1 use)Plotter.add_axes(1 use)Plotter.add_axes_at_origin(1 use)Plotter.add_background_image(1 use)Plotter.add_blurring(1 use)Plotter.add_bounding_box(1 use)Plotter.add_box_axes(1 use)Plotter.add_box_widget(1 use)Plotter.add_camera3d_widget(1 use)Plotter.add_camera_orientation_widget(1 use)Plotter.add_checkbox_button_widget(1 use)Plotter.add_cursor(1 use)Plotter.add_floor(1 use)Plotter.add_legend(1 use)Plotter.add_legend_scale(1 use)Plotter.add_light(1 use)Plotter.add_line_widget(1 use)Plotter.add_logo_widget(1 use)Plotter.add_mesh_isovalue(1 use)Plotter.add_mesh_slice(1 use)Plotter.add_mesh_slice_orthogonal(1 use)Plotter.add_north_arrow_widget(1 use)Plotter.add_orientation_widget(1 use)Plotter.add_plane_widget(1 use)Plotter.add_point_scalar_labels(1 use)Plotter.add_ruler(1 use)Plotter.add_scalar_bar(1 use)Plotter.add_silhouette(1 use)Plotter.add_slider_widget(1 use)Plotter.add_timer_event(1 use)Plotter.background_color(1 use)Plotter.bounds(1 use)Plotter.camera_position(1 use)Plotter.center(1 use)Plotter.clear(1 use)Plotter.disable_anti_aliasing(1 use)Plotter.disable_picking(1 use)Plotter.disable_stereo_render(1 use)Plotter.enable_2d_style(1 use)Plotter.enable_anti_aliasing(1 use)Plotter.enable_cell_picking(1 use)Plotter.enable_custom_trackball_style(1 use)Plotter.enable_depth_of_field(1 use)Plotter.enable_hidden_line_removal(1 use)Plotter.enable_image_style(1 use)Plotter.enable_joystick_actor_style(1 use)Plotter.enable_joystick_style(1 use)Plotter.enable_lightkit(1 use)Plotter.enable_mesh_picking(1 use)Plotter.enable_point_picking(1 use)Plotter.enable_rectangle_picking(1 use)Plotter.enable_rubber_band_2d_style(1 use)Plotter.enable_rubber_band_style(1 use)Plotter.enable_shadows(1 use)Plotter.enable_ssao(1 use)Plotter.enable_stereo_render(1 use)Plotter.enable_surface_point_picking(1 use)Plotter.enable_terrain_style(1 use)Plotter.enable_trackball_actor_style(1 use)Plotter.enable_trackball_style(1 use)Plotter.enable_zoom_style(1 use)Plotter.export_gltf(1 use)Plotter.export_html(1 use)Plotter.export_obj(1 use)Plotter.export_vrml(1 use)Plotter.fly_to(1 use)Plotter.generate_orbital_path(1 use)Plotter.get_image_depth(1 use)Plotter.image(1 use)Plotter.image_scale(1 use)Plotter.increment_point_size_and_line_width(1 use)Plotter.link_views(1 use)Plotter.orbit_on_path(1 use)Plotter.pickable_actors(1 use)Plotter.remove_actor(1 use)Plotter.remove_all_lights(1 use)Plotter.remove_background_image(1 use)Plotter.remove_blurring(1 use)Plotter.remove_bounds_axes(1 use)Plotter.remove_environment_texture(1 use)Plotter.remove_floors(1 use)Plotter.remove_legend(1 use)Plotter.remove_scalar_bar(1 use)Plotter.render(1 use)Plotter.reset_camera(1 use)Plotter.reset_camera_clipping_range(1 use)Plotter.save_graphic(1 use)Plotter.screenshot(1 use)Plotter.set_background(1 use)Plotter.set_color_cycler(1 use)Plotter.set_environment_texture(1 use)Plotter.set_focus(1 use)Plotter.set_position(1 use)Plotter.set_scale(1 use)Plotter.show(1 use)Plotter.show_axes_all(1 use)Plotter.show_bounds(1 use)Plotter.show_grid(1 use)Plotter.subplot(1 use)Plotter.theme(1 use)Plotter.view_xy(1 use)Plotter.view_xz(1 use)Plotter.view_yx(1 use)Plotter.view_yz(1 use)Plotter.view_zx(1 use)Plotter.view_zy(1 use)Plotter.where_is(1 use)Plotter.window_size_context(1 use)Plotter.write_frame(1 use)PointGaussianMapper.scale_array(1 use)PointSet.reconstruct_surface(1 use)PolyData(1 use)PolyDataFilters.boolean_difference(1 use)PolyDataFilters.boolean_intersection(1 use)PolyDataFilters.boolean_union(1 use)PolyDataFilters.collision(1 use)PolyDataFilters.contour_banded(1 use)PolyDataFilters.decimate_polyline(1 use)PolyDataFilters.geodesic(1 use)PolyDataFilters.intersection(1 use)PolyDataFilters.project_points_to_plane(1 use)PolyDataFilters.reconstruct_surface(1 use)PolyDataFilters.ruled_surface(1 use)PolyDataFilters.triangulate_contours(1 use)Prop3D.bounds(1 use)Prop3D.center(1 use)Prop3D.length(1 use)Prop3D.orientation(1 use)Prop3D.position(1 use)Prop3D.rotate_x(1 use)Prop3D.rotate_y(1 use)Prop3D.rotate_z(1 use)Prop3D.rotation_from(1 use)Prop3D.scale(1 use)Prop3D.user_matrix(1 use)Property(1 use)RenderWindowInteractor.add_timer_event(1 use)RenderWindowInteractor.enable_2d_style(1 use)RenderWindowInteractor.enable_custom_trackball_style(1 use)RenderWindowInteractor.enable_image_style(1 use)RenderWindowInteractor.enable_joystick_actor_style(1 use)RenderWindowInteractor.enable_joystick_style(1 use)RenderWindowInteractor.enable_rubber_band_2d_style(1 use)RenderWindowInteractor.enable_rubber_band_style(1 use)RenderWindowInteractor.enable_terrain_style(1 use)RenderWindowInteractor.enable_trackball_actor_style(1 use)RenderWindowInteractor.enable_trackball_style(1 use)RenderWindowInteractor.enable_zoom_style(1 use)Renderer.add_axes(1 use)Renderer.add_axes_at_origin(1 use)Renderer.add_blurring(1 use)Renderer.add_bounding_box(1 use)Renderer.add_box_axes(1 use)Renderer.add_floor(1 use)Renderer.add_legend(1 use)Renderer.add_legend_scale(1 use)Renderer.add_north_arrow_widget(1 use)Renderer.add_orientation_widget(1 use)Renderer.add_ruler(1 use)Renderer.enable_depth_of_field(1 use)Renderer.enable_shadows(1 use)Renderer.enable_ssao(1 use)Renderer.remove_actor(1 use)Renderer.remove_blurring(1 use)Renderer.remove_bounds_axes(1 use)Renderer.remove_environment_texture(1 use)Renderer.remove_floors(1 use)Renderer.remove_legend(1 use)Renderer.reset_camera(1 use)Renderer.set_background(1 use)Renderer.set_color_cycler(1 use)Renderer.set_environment_texture(1 use)Renderer.set_focus(1 use)Renderer.set_position(1 use)Renderer.set_scale(1 use)Renderer.show_bounds(1 use)Renderer.show_grid(1 use)Renderer.view_xy(1 use)Renderer.view_xz(1 use)Renderer.view_yx(1 use)Renderer.view_yz(1 use)Renderer.view_zx(1 use)Renderer.view_zy(1 use)Renderer.viewport(1 use)Texture.repeat(1 use)Texture.wrap(1 use)Theme.allow_empty_mesh(1 use)Theme.color_cycler(1 use)Theme.interpolate_before_map(1 use)Theme.logo_file(1 use)Transform(1 use)UnstructuredGridFilters.clean(1 use)UnstructuredGridFilters.reconstruct_surface(1 use)WidgetComponent.add_affine_transform_widget(1 use)WidgetComponent.add_box_widget(1 use)WidgetComponent.add_camera3d_widget(1 use)WidgetComponent.add_camera_orientation_widget(1 use)WidgetComponent.add_checkbox_button_widget(1 use)WidgetComponent.add_line_widget(1 use)WidgetComponent.add_logo_widget(1 use)WidgetComponent.add_mesh_isovalue(1 use)WidgetComponent.add_mesh_slice(1 use)WidgetComponent.add_mesh_slice_orthogonal(1 use)WidgetComponent.add_plane_widget(1 use)WidgetComponent.add_slider_widget(1 use)_BaseDataSetMapper.resolve(1 use)_BaseMapper.array_name(1 use)_BaseMapper.lookup_table(1 use)_BaseMapper.scalar_range(1 use)_BaseMapper.scalar_visibility(1 use)_Prop3DMixin.bounds(1 use)_Prop3DMixin.center(1 use)_Prop3DMixin.length(1 use)_Prop3DMixin.orientation(1 use)_Prop3DMixin.position(1 use)_Prop3DMixin.scale(1 use)_Prop3DMixin.user_matrix(1 use)download_action_figure(1 use)download_caffeine(1 use)download_coil_magnetic_field(1 use)download_cubemap_park(1 use)download_cubemap_space_16k(1 use)download_cubemap_space_4k(1 use)download_dual_sphere_animation(1 use)download_electronics_cooling(1 use)download_fea_hertzian_contact_cylinder(1 use)download_louis_louvre(1 use)download_lucy(1 use)download_m4_total_density(1 use)download_openfoam_tubes(1 use)download_reservoir(1 use)download_single_sphere_animation(1 use)download_victorian_goblet_face_illusion(1 use)download_whole_body_ct_female(1 use)download_whole_body_ct_male(1 use)fit_line_to_points(1 use)fit_plane_to_points(1 use)orientation_cube(1 use)plot_ants_plane(1 use)principal_axes(1 use)
Gallery Examples
Create a GIF Movie of a Static Object With a Moving Colormap