InputsDecimateMesh#

class ansys.dpf.core.operators.mesh.decimate_mesh.InputsDecimateMesh(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to decimate_mesh operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.decimate_mesh()
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_preservation_ratio = float()
>>> op.inputs.preservation_ratio.connect(my_preservation_ratio)
>>> my_aggressiveness = int()
>>> op.inputs.aggressiveness.connect(my_aggressiveness)

Overview#

connect

Connect any input (an entity or an operator output) to any input pin of this operator.

mesh

Allows to connect mesh input to the operator.

preservation_ratio

Allows to connect preservation_ratio input to the operator.

aggressiveness

Allows to connect aggressiveness input to the operator.

Import detail#

from ansys.dpf.core.operators.mesh.decimate_mesh import InputsDecimateMesh

Property detail#

property InputsDecimateMesh.mesh: ansys.dpf.core.inputs.Input[ansys.dpf.core.meshed_region.MeshedRegion]#

Allows to connect mesh input to the operator.

Mesh to decimate

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.decimate_mesh()
>>> op.inputs.mesh.connect(my_mesh)
>>> # or
>>> op.inputs.mesh(my_mesh)
property InputsDecimateMesh.preservation_ratio: ansys.dpf.core.inputs.Input[float]#

Allows to connect preservation_ratio input to the operator.

Target ratio of elements to preserve, the actual number of elements preserved might differ. Default value is 0.5.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.decimate_mesh()
>>> op.inputs.preservation_ratio.connect(my_preservation_ratio)
>>> # or
>>> op.inputs.preservation_ratio(my_preservation_ratio)
property InputsDecimateMesh.aggressiveness: ansys.dpf.core.inputs.Input[int]#

Allows to connect aggressiveness input to the operator.

Quality measure for the resulting decimated mesh. Lower aggresiveness will provide a higher quality mesh with the tradeoff of higher execution time. Value range is 0 to 150, default is 0.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.decimate_mesh()
>>> op.inputs.aggressiveness.connect(my_aggressiveness)
>>> # or
>>> op.inputs.aggressiveness(my_aggressiveness)

Method detail#

InputsDecimateMesh.__str__()#
InputsDecimateMesh.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.

InputsDecimateMesh.__call__(inpt)#
InputsDecimateMesh.__getitem__(item) → Input#