Created by: Durman
Addressed problem description
There are a lot of places of applying matrixes and joining meshes in code. This PR is intended to add one module responsible for all this operations. This module will be able to deal as with Py mesh and with Numy mesh. Highlight of this module is that you even should not think about with what kind of meshes you are dealing with.
import meshes as me
mesh = me.to_mesh(vertices, edges, faces) # create mesh Numpy or Python
mesh.apply_matrix(matrix)
mesh2 = me.to_mesh(vertices2, edges2, faces2)
mesh = mesh.add_mesh(mesh2) # join meshes
Type of mesh will be dependent on which type has vertices. If it is list it will convert data to PyMesh
if array then to NpMesh
.
Preflight checklist
-
Code changes complete. -
Code documentation complete. -
Manual testing done. -
Ready for merge.