Currently adding texture to a TexturedPhotogrammetryMesh is a little haphazard. This should be refactored so the mesh can be instantiated using a texture from one of the following:
A vector file readable by geopandas and a label(s) specifying which column to use. This should be dataset of polygons/multipolygons. Ideally, there should be no overlap between regions with different labels. These regions may be assigned based on the order of the rows.
A raster file readable by rasterio. We may want to support using a subset of bands
A texture provided in the mesh file. We should see what mesh file types supported by pyvista support saving vertex and/or face textures
A numpy array of labels for either the faces or vertices
Currently adding texture to a
TexturedPhotogrammetryMesh
is a little haphazard. This should be refactored so the mesh can be instantiated using a texture from one of the following:geopandas
and alabel
(s) specifying which column to use. This should be dataset of polygons/multipolygons. Ideally, there should be no overlap between regions with different labels. These regions may be assigned based on the order of the rows.rasterio
. We may want to support using a subset of bandspyvista
support saving vertex and/or face texturesnumpy
array of labels for either the faces or vertices