Fix for UVs in python binding #5592

This commit is contained in:
Thomas Krijnen
2024-10-18 10:37:44 +02:00
parent 5837a143da
commit ecba1c3e7b
3 changed files with 3 additions and 2 deletions
@@ -218,7 +218,7 @@ void ifcopenshell::geometry::OpenCascadeShape::Triangulate(ifcopenshell::geometr
}
if (!t->normals().empty() && settings.get<settings::GenerateUvs>().get()) {
t->uvs() = IfcGeom::Representation::Triangulation::box_project_uvs(t->verts(), t->normals());
t->uvs_ref() = IfcGeom::Representation::Triangulation::box_project_uvs(t->verts(), t->normals());
}
if (num_faces == 0) {