PrimePlotter#

class ansys.meshing.prime.graphics.PrimePlotter(use_trame=None, allow_picking=True)#

Create a plotter for PyPrimeMesh models.

This plotter is a wrapper around the PyAnsys generic plotter with additional functionality for PyPrimeMesh.

Parameters:
use_trameOptional[bool], default: None

Whether to use the Trame visualizer.

allow_pickingOptional[bool], default: True.

Whether to allow picking.

Methods

PrimePlotter.add_model(model[, scope, update])

Add a Prime model to the plotter.

PrimePlotter.add_model_pd(model_pd)

Add a model to the plotter.

PrimePlotter.add_scope(model, scope[, update])

Add a scope to the plotter.

PrimePlotter.get_scalar_colors(mesh_info)

Get the scalar colors for the mesh.

PrimePlotter.plot(plottable_object[, scope, ...])

Add an object to the plotter.

PrimePlotter.plot_iter(plotting_list[, ...])

Add a list of any type of object to the scene.

PrimePlotter.show([plottable_object, ...])

Show the plotted objects.

Attributes

PrimePlotter.backend

Return the base plotter object.

PrimePlotter.info_actor_map

Get the information actor map for the selected information widget.

Examples using PrimePlotter#

Convert data when importing and exporting mesh and CAD formats

Convert data when importing and exporting mesh and CAD formats

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mixing elbow for a flow analysis

Mesh a mixing elbow for a flow analysis

Mesh a pipe T-section for structural thermal and fluid flow analysis

Mesh a pipe T-section for structural thermal and fluid flow analysis

Wrap a toy car for a flow analysis

Wrap a toy car for a flow analysis

Mesh a PCB for structural thermal analysis

Mesh a PCB for structural thermal analysis

Morph a hexahedral mesh of a turbine blade to a new shape

Morph a hexahedral mesh of a turbine blade to a new shape

Mesh a saddle bracket for a structural analysis

Mesh a saddle bracket for a structural analysis

Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic PCB geometry with multiple hexa layers

Mesh a generic PCB geometry with multiple hexa layers

Create a contact patch for wrapping between a wheel and ground interface

Create a contact patch for wrapping between a wheel and ground interface

Mesh a set of solder balls (beta)

Mesh a set of solder balls (beta)

Add a new example

Add a new example