Count number of emitted normals in OBJ serializer, which might be less than verts when writing line geometries

This commit is contained in:
Thomas Krijnen
2025-12-02 16:32:37 +01:00
parent 1468bf3c97
commit 4fc2f623cf
4 changed files with 116 additions and 13 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class SERIALIZERS_API WaveFrontOBJSerializer : public WriteOnlyGeometrySerialize
private:
stream_or_filename obj_stream;
stream_or_filename mtl_stream;
unsigned int vcount_total;
size_t vcount_total, ncount_total;
std::set<std::string> materials;
public:
WaveFrontOBJSerializer(const stream_or_filename& obj_filename, const stream_or_filename& mtl_filename, const ifcopenshell::geometry::Settings& geometry_settings, const ifcopenshell::geometry::SerializerSettings& settings);