I have the following code in an addon:
mesh = bpy.data.meshes.new("test") mesh.tessfaces.add(len(self.faces)) mesh.tessfaces.foreach_set("vertices_raw", unpack_face_list(self.faces))
However, it looks like the
tessfaces API has been removed. I've found this forum thread which seems relevant to my issues, but I'm not exactly sure how the mentioned code snippet would be applied in my case.
For reference, self.faces is an array of an array of 3 vertices, eg
self.faces = [[1,2,3], [2,3,4]]