Skip to main content

DPF Framework 2026 R1

mesh:mesh_to_graphics

Last update: 31.07.2026

Version: 0.0.0

Description

Generate tessellation for input mesh

Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.

Pin number Name Status Expected type(s)
1 mesh_scoping scoping
2 node_normals bool
7 mesh Required abstract_meshed_region

mesh_scoping (Pin 1)

  • Required: No
  • Expected type(s): scoping

node_normals (Pin 2)

  • Required: No
  • Expected type(s): bool

average element normals for node normals (default no, use element normals for node normals)

mesh (Pin 7)

Outputs

This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.

Pin number Name Expected type(s)
0 nodes field
1 normals field
2 connectivity property_field

nodes (Pin 0)

  • Expected type(s): field

node coordinates

normals (Pin 1)

  • Expected type(s): field

node normals

connectivity (Pin 2)

Configurations

This operator supports configuration options that modify its behavior.

mutex

  • Expected type(s): bool
  • Default value: false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

This operator can be accessed through scripting interfaces using these identifiers.

Category: mesh

Plugin: core

Scripting name: mesh_to_graphics

Full name: mesh.mesh_to_graphics

Internal name: mesh_to_graphics

License: None

Examples

These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

C++
#include "dpf_api.h"

ansys::dpf::Operator op("mesh_to_graphics"); // operator instantiation
op.connect(1, my_mesh_scoping);
op.connect(2, my_node_normals);
op.connect(7, my_mesh);
ansys::dpf::Field my_nodes = op.getOutput<ansys::dpf::Field>(0);
ansys::dpf::Field my_normals = op.getOutput<ansys::dpf::Field>(1);
ansys::dpf::PropertyField my_connectivity = op.getOutput<ansys::dpf::PropertyField>(2);
CPython
import ansys.dpf.core as dpf

op = dpf.operators.mesh.mesh_to_graphics() # operator instantiation
op.inputs.mesh_scoping.connect(my_mesh_scoping)
op.inputs.node_normals.connect(my_node_normals)
op.inputs.mesh.connect(my_mesh)
my_nodes = op.outputs.nodes()
my_normals = op.outputs.normals()
my_connectivity = op.outputs.connectivity()
IPython
import mech_dpf
import Ans.DataProcessing as dpf

op = dpf.operators.mesh.mesh_to_graphics() # operator instantiation
op.inputs.mesh_scoping.Connect(my_mesh_scoping)
op.inputs.node_normals.Connect(my_node_normals)
op.inputs.mesh.Connect(my_mesh)
my_nodes = op.outputs.nodes.GetData()
my_normals = op.outputs.normals.GetData()
my_connectivity = op.outputs.connectivity.GetData()

Changelog

  • Version 0.0.0: Initial release.

Connect with Ansys