Python package
ra.texture_3d
3D textures applied to surfaces.
import rhinoartisan as ra
Wraps ArtisanPlugin.Scripting.Texture3DApi.
Functions
| Function | |
|---|---|
create() | texture_path optional image file (grayscale heightmap); omitted = the default texture. |
ra.texture_3d.create()
ra.texture_3d.create(surface_id: IdLike, texture_path=None, u=None, v=None, height=None, rotation=None) -> str
texture_path optional image file (grayscale heightmap); omitted = the default texture. Defaults: 1x1 repeats, relief height 0.6, resolution 0.5. Returns the id of the textured object.
| Parameter | Type | |
|---|---|---|
surface_id | IdLike | required |
texture_path | str | optional — None = the tool default |
u | int | optional — None = the tool default |
v | int | optional — None = the tool default |
height | float | optional — None = the tool default |
rotation | float | optional — None = the tool default |