InputsMeshToGraphics#
- class ansys.dpf.core.operators.mesh.mesh_to_graphics.InputsMeshToGraphics(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to mesh_to_graphics operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.mesh.mesh_to_graphics() >>> my_mesh_scoping = dpf.Scoping() >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) >>> my_node_normals = bool() >>> op.inputs.node_normals.connect(my_node_normals) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect mesh_scoping input to the operator. |
|
Allows to connect node_normals input to the operator. |
|
Allows to connect mesh input to the operator. |
Import detail#
from ansys.dpf.core.operators.mesh.mesh_to_graphics import InputsMeshToGraphics
Property detail#
- property InputsMeshToGraphics.mesh_scoping: ansys.dpf.core.inputs.Input[ansys.dpf.core.scoping.Scoping]#
Allows to connect mesh_scoping input to the operator.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.mesh.mesh_to_graphics() >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) >>> # or >>> op.inputs.mesh_scoping(my_mesh_scoping)
- property InputsMeshToGraphics.node_normals: ansys.dpf.core.inputs.Input[bool]#
Allows to connect node_normals input to the operator.
average element normals for node normals (default no, use element normals for node normals)
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.mesh.mesh_to_graphics() >>> op.inputs.node_normals.connect(my_node_normals) >>> # or >>> op.inputs.node_normals(my_node_normals)
- property InputsMeshToGraphics.mesh: ansys.dpf.core.inputs.Input[ansys.dpf.core.meshed_region.MeshedRegion]#
Allows to connect mesh input to the operator.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.mesh.mesh_to_graphics() >>> op.inputs.mesh.connect(my_mesh) >>> # or >>> op.inputs.mesh(my_mesh)
Method detail#
- InputsMeshToGraphics.__str__()#
- InputsMeshToGraphics.connect(inpt)#
Connect any input (an entity or an operator output) to any input pin of this operator.
Searches for the input type corresponding to the output.
Deprecated since version Deprecated: in favor of explicit output-to-input connections.
- InputsMeshToGraphics.__call__(inpt)#