voxcity.simulator.common.coordinatesΒΆ

Coordinate helpers shared by simulator backends.

VoxCity simulation arrays use uv-domain coordinates: x/u = north, y/v = east, z = up. Visualization meshes use scene coordinates: x = v/east, y = u/north, z = up.

FunctionsΒΆ

uv_domain_points_to_scene(β†’ numpy.ndarray)

Map uv-domain points/vectors (u, v, z) to scene (x=v, y=u, z).

scene_points_to_uv_domain(β†’ numpy.ndarray)

Map scene points (x=v, y=u, z) to uv-domain points (u, v, z).

scene_vectors_to_uv_domain(β†’ numpy.ndarray)

Map scene vectors (v, u, z) to uv-domain vectors (u, v, z).

Module ContentsΒΆ

voxcity.simulator.common.coordinates.uv_domain_points_to_scene(points: numpy.ndarray) numpy.ndarray[source]ΒΆ

Map uv-domain points/vectors (u, v, z) to scene (x=v, y=u, z).

voxcity.simulator.common.coordinates.scene_points_to_uv_domain(points: numpy.ndarray) numpy.ndarray[source]ΒΆ

Map scene points (x=v, y=u, z) to uv-domain points (u, v, z).

voxcity.simulator.common.coordinates.scene_vectors_to_uv_domain(vectors: numpy.ndarray) numpy.ndarray[source]ΒΆ

Map scene vectors (v, u, z) to uv-domain vectors (u, v, z).