| 1184 | int getPartitionCount() const override { return (int)partitions.size(); } |
| 1185 | |
| 1186 | GeometryPartition getPartition(int index) const override { |
| 1187 | if (index >= partitions.size()) return {nullptr, 0, 0, 0}; |
| 1188 | return { |
| 1189 | partitions[index].polygons.data(), |
| 1190 | int(partitions[index].polygons.size()), |
| 1191 | partitions[index].max_polygon_triangles, |
| 1192 | partitions[index].triangles_count |
| 1193 | }; |
| 1194 | } |
| 1195 | |
| 1196 | template <typename T> |
| 1197 | bool postprocess(T& attr) { |
no test coverage detected