mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-30 00:55:12 +08:00

Rather than using a lot of calls to MeshData::addVertices which is very slow, pre-allocate numpy arrays, fill them with data from the polygons and then assign them to the mesh data's arrays. This greatly increases performance of the layer data calculation. Contributes to #52