wireframe#

class ansys.dpf.core.operators.mesh.wireframe.wireframe(mesh=None, threshold=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

Take a mesh and extracts its sharp edges, using pin 1 value as a threshold angle.

Parameters:
  • mesh (MeshedRegion)

  • threshold (float) – Angle threshold in radian that will trigger an edge detection.

Returns:

wireframe

Return type:

MeshedRegion

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.mesh.wireframe()
>>> # Make input connections
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_threshold = float()
>>> op.inputs.threshold.connect(my_threshold)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.mesh.wireframe(
...     mesh=my_mesh,
...     threshold=my_threshold,
... )
>>> # Get output data
>>> result_wireframe = op.outputs.wireframe()

Overview#

inputs

Enables to connect inputs to the operator

outputs

Enables to get outputs of the operator by evaluating it

default_config

Returns the default config of the operator.

Import detail#

from ansys.dpf.core.operators.mesh.wireframe import wireframe

Property detail#

property wireframe.inputs#

Enables to connect inputs to the operator

Returns:

inputs

Return type:

InputsWireframe

property wireframe.outputs#

Enables to get outputs of the operator by evaluating it

Returns:

outputs

Return type:

OutputsWireframe

Method detail#

static wireframe.default_config(server=None)#

Returns the default config of the operator.

This config can then be changed to the user needs and be used to instantiate the operator. The Configuration allows to customize how the operation will be processed by the operator.

Parameters:

server (server.DPFServer, optional) – Server with channel connected to the remote or local instance. When None, attempts to use the global server.