TextureUVMappingOperator#

class ansys.speos.core.opt_prop.TextureLayer.TextureUVMappingOperator(mapping, default_parameters=None)#

Texture mapping operator for a texture layer.

Parameters:

default_parameters (Optional[ansys.speos.core.generic.parameters.UVMappingCubicParameters, ansys.speos.core.generic.parameters.UVMappingPlanarParameters, ansys.speos.core.generic.parameters.UVMappingSphericalParameters, ansys.speos.core.generic.parameters.UVMappingCylindricalParameters])

Overview#

axis_system

Reference axis system for the mapping operator.

u_offset

Shift on U direction (mm).

v_offset

Shift on V direction (mm).

u_scale

Scale factor on U dimension.

v_scale

Scale factor on V dimension.

u_length

Dimension on U direction (mm).

v_length

Dimension on V direction (mm).

rotation

Rotation of UVs in degrees, in range ]-360, 360[.

perimeter

Sphere perimeter for spherical mapping (mm).

__todict__

Convert the mapping operator properties to a dictionary for comparison.

__eq__

Override equality to compare mapping operator properties.

__str__

Represent the mapping operator as string.

Import detail#

from ansys.speos.core.opt_prop.TextureLayer import TextureUVMappingOperator

Property detail#

property TextureUVMappingOperator.axis_system: list#

Reference axis system for the mapping operator.

Returns:
list[float]

Twelve floats [Ox Oy Oz Xx Xy Xz Yx Yy Yz Zx Zy Zz].

property TextureUVMappingOperator.u_offset: float#

Shift on U direction (mm).

Returns:
float

U offset value.

property TextureUVMappingOperator.v_offset: float#

Shift on V direction (mm).

Returns:
float

V offset value.

property TextureUVMappingOperator.u_scale: float#

Scale factor on U dimension.

Returns:
float

U scale factor.

property TextureUVMappingOperator.v_scale: float#

Scale factor on V dimension.

Returns:
float

V scale factor.

property TextureUVMappingOperator.u_length: float#

Dimension on U direction (mm).

Returns:
float

U length value.

property TextureUVMappingOperator.v_length: float | None#

Dimension on V direction (mm).

Returns:
Optional[float]

V length value, or None when not set (image ratio is used instead).

property TextureUVMappingOperator.rotation: float#

Rotation of UVs in degrees, in range ]-360, 360[.

Returns:
float

Rotation angle in degrees.

property TextureUVMappingOperator.perimeter: float | None#

Sphere perimeter for spherical mapping (mm).

Returns:
Optional[float]

Sphere perimeter when mapping type is 'spherical', otherwise None.

Method detail#

TextureUVMappingOperator.__todict__()#

Convert the mapping operator properties to a dictionary for comparison.

TextureUVMappingOperator.__eq__(other)#

Override equality to compare mapping operator properties.

TextureUVMappingOperator.__str__()#

Represent the mapping operator as string.