mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 06:28:36 +00:00
Flatten the geometry representation namespace
Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -386,7 +386,7 @@ void collada_serializer::collada_exporter::startDocument(const std::string& unit
|
||||
|
||||
void collada_serializer::collada_exporter::write(const ifcopenshell::geom::triangulation_element* o)
|
||||
{
|
||||
const ifcopenshell::geom::Representation::triangulation& mesh = o->geometry();
|
||||
const ifcopenshell::geom::triangulation& mesh = o->geometry();
|
||||
BOOST_FOREACH(const ifcopenshell::geom::taxonomy::style::ptr& material, mesh.materials()) {
|
||||
materials.add(material);
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ void usd_serializer::write(const ifcopenshell::geom::triangulation_element* o) {
|
||||
}
|
||||
pxr::UsdGeomXform usd_mesh_container = writeNode<pxr::UsdGeomXform>(o); // writeNode<pxr::UsdGeomMesh>(o);
|
||||
auto usd_mesh = pxr::UsdGeomMesh::Define(stage_, pxr::SdfPath(usd_mesh_container.GetPath().GetString() + "/" + o->context()));
|
||||
const ifcopenshell::geom::Representation::triangulation& mesh = o->geometry();
|
||||
const ifcopenshell::geom::triangulation& mesh = o->geometry();
|
||||
const auto verts = mesh.verts();
|
||||
const auto faces = mesh.faces();
|
||||
const auto material_ids = mesh.material_ids();
|
||||
|
||||
@@ -92,7 +92,7 @@ void wavefront_obj_serializer::write(const ifcopenshell::geom::triangulation_ele
|
||||
obj_stream.stream << "s 1" << "\n";
|
||||
const bool isyup = settings().get<ifcopenshell::geom::settings::UseYUp>().get();
|
||||
|
||||
const ifcopenshell::geom::Representation::triangulation& mesh = o->geometry();
|
||||
const ifcopenshell::geom::triangulation& mesh = o->geometry();
|
||||
|
||||
size_t vcount = mesh.verts().size() / 3;
|
||||
size_t ncount = mesh.normals().size() / 3;
|
||||
|
||||
Reference in New Issue
Block a user