Vertex¶
- class huira.swir8.Vertex¶
A vertex of a mesh: its position and normal, in the mesh’s frame, its texture coordinates, and its albedo, which scales the material’s.
- __init__(self: huira._huira.swir8.Vertex, position: object, normal: object, uv: object = (0.0, 0.0), albedo: huira._huira.swir8.SpectralBins = SpectralBins([1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000])) None¶
Create a vertex. position and normal are a huira.Vec3 or three numbers (in meters, and a unit vector), uv two numbers, and albedo the vertex’s color, 1 by default.
- property albedo¶
Albedo, which scales the material’s
- property normal¶
Normal, a unit vector in the mesh’s frame
- property position¶
Position, in the mesh’s frame (m)
- property uv¶
Texture coordinates (u, v)