TexturePattern#
- class ansys.speos.core.input_files.texture_3d.TexturePattern(position=(0.0, 0.0, 0.0), x_direction=(1.0, 0.0, 0.0), y_direction=(0.0, 1.0, 0.0), scale=(1.0, 1.0, 1.0))#
Bases:
ansys.speos.core.input_files._base._ValueComparablePlacement of one pattern of a Speos 3D Texture.
- Parameters:
- position
Tuple[float,float,float],optional Origin of the pattern, in the axis system of the 3D Texture. By default,
(0.0, 0.0, 0.0).- x_direction
Tuple[float,float,float],optional Orientation of the pattern along the X direction of the axis system. By default,
(1.0, 0.0, 0.0).- y_direction
Tuple[float,float,float],optional Orientation of the pattern along the Y direction of the axis system. By default,
(0.0, 1.0, 0.0).- scale
Tuple[float,float,float],optional Scale factors along the X, Y and Z directions,
1meaning 100 percent of the original pattern size. By default,(1.0, 1.0, 1.0).
- position
- Parameters:
Notes
Construction and setters validate finite three-component vectors before storing them as immutable tuples. Editing a pattern shared with a mapping does not notify the mapping; its uniform-scale constraint is rechecked when validating or saving it.
Overview#
Check vector dimensions and finite coordinates. |
Pattern origin. |
|
Pattern X direction. |
|
Pattern Y direction. |
|
Pattern scale factors. |
Import detail#
from ansys.speos.core.input_files.texture_3d import TexturePattern
Property detail#
Method detail#
- TexturePattern.validate()#
Check vector dimensions and finite coordinates.
- Raises:
ValueErrorIf a vector is not a finite three-component vector.