mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
Option to specify algorithm for --exterior-only
This commit is contained in:
@@ -246,7 +246,9 @@ void GltfSerializer::write(const IfcGeom::TriangulationElement* o) {
|
||||
primitive["attributes"]["NORMAL"] = write_accessor<3U>(json_, tmp_fstream2_, nf.begin(), nf.end());
|
||||
}
|
||||
|
||||
primitive["material"] = writeMaterial(o->geometry().materials()[*mid0]);
|
||||
if (*mid0 >= 0) {
|
||||
primitive["material"] = writeMaterial(o->geometry().materials()[*mid0]);
|
||||
}
|
||||
primitive["mode"] = primitive_type;
|
||||
|
||||
mesh["primitives"].push_back(primitive);
|
||||
|
||||
Reference in New Issue
Block a user