Texture
Overview
Texture is a class in Aspose.3D FOSS for Python.
This class defines the texture from an external file.
This class declares 4 methods for Texture objects in Python programs.
Available methods include: __init__, set_rotation, set_scale, set_translation.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: alpha, alpha_source, content, enable_mip_map, file_name, mag_filter, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read/Write | Gets or sets the name. |
alpha | float | Read/Write | Gets or sets the alpha. |
alpha_source | 'AlphaSource' | Read/Write | Gets or sets the alpha source. |
wrap_mode_u | 'WrapMode' | Read/Write | Gets or sets the wrap mode u. |
wrap_mode_v | 'WrapMode' | Read/Write | Gets or sets the wrap mode v. |
wrap_mode_w | 'WrapMode' | Read/Write | Gets or sets the wrap mode w. |
min_filter | 'TextureFilter' | Read/Write | Gets or sets the min filter. |
mag_filter | 'TextureFilter' | Read/Write | Gets or sets the mag filter. |
mip_filter | 'TextureFilter' | Read/Write | Gets or sets the mip filter. |
uv_rotation | `` | Read/Write | Gets or sets the uv rotation. |
uv_scale | `` | Read/Write | Gets or sets the uv scale. |
uv_translation | `` | Read/Write | Gets or sets the uv translation. |
enable_mip_map | bool | Read/Write | Gets or sets the enable mip map. |
content | List[int] | Read/Write | Gets or sets the content. |
file_name | str | Read/Write | Gets or sets the file name. |
Methods
| Signature | Description |
|---|---|
__init__() | Not implemented in the FOSS edition — throws at runtime. Calls init on this Texture instance. |
set_translation(u: float, v: float) | Not implemented in the FOSS edition — throws at runtime. Sets the translation value. |
set_scale(u: float, v: float) | Not implemented in the FOSS edition — throws at runtime. Sets the scale value. |
set_rotation(u: float, v: float) | Not implemented in the FOSS edition — throws at runtime. Sets the rotation value. |