Expose geometry types in snake case

Generated with the assistance of an AI coding tool.
This commit is contained in:
Thomas Krijnen
2026-08-09 04:44:18 +02:00
parent fbfa51c451
commit be3c2ee770
49 changed files with 300 additions and 287 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ public:
bool ready();
void writeHeader();
void write(const ifcopenshell::geom::triangulation_element* o);
void write(const ifcopenshell::geom::brep_element* /*o*/) {}
void write(const ifcopenshell::geom::native_element* /*o*/) {}
void finalize();
bool isTesselated() const { return true; }
void setUnitNameAndMagnitude(const std::string& name, float magnitude) {
+1 -1
View File
@@ -48,7 +48,7 @@ public:
bool ready();
void writeHeader();
void write(const ifcopenshell::geom::triangulation_element* o);
void write(const ifcopenshell::geom::brep_element* /*o*/) {}
void write(const ifcopenshell::geom::native_element* /*o*/) {}
void finalize();
bool isTesselated() const { return true; }
void setUnitNameAndMagnitude(const std::string& /*name*/, float /*magnitude*/) {}
@@ -39,7 +39,7 @@ bool open_cascade_based_serializer::ready() {
return succeeded;
}
void open_cascade_based_serializer::write(const ifcopenshell::geom::brep_element* o) {
void open_cascade_based_serializer::write(const ifcopenshell::geom::native_element* o) {
auto itm = o->geometry().as_compound();
TopoDS_Shape compound = ((ifcopenshell::geom::open_cascade_shape*)itm)->shape();
writeShape(object_id(o), compound);
@@ -45,7 +45,7 @@ public:
bool ready();
virtual void writeShape(const std::string& name, const TopoDS_Shape& shape) = 0;
void write(const ifcopenshell::geom::triangulation_element* /*o*/) {}
void write(const ifcopenshell::geom::brep_element* o);
void write(const ifcopenshell::geom::native_element* o);
bool isTesselated() const { return false; }
void setFile(ifcopenshell::file&) {}
};
+2 -2
View File
@@ -540,7 +540,7 @@ svg_serializer::path_object& svg_serializer::start_path(const gp_Pln& pln, const
}
namespace {
std::optional<std::pair<express::base, double>> storey_elevation_from_element(const ifcopenshell::geom::brep_element* o) {
std::optional<std::pair<express::base, double>> storey_elevation_from_element(const ifcopenshell::geom::native_element* o) {
for (const auto& p : o->parents()) {
if (p->type() == "IfcBuildingStorey") {
try {
@@ -716,7 +716,7 @@ namespace {
}
}
void svg_serializer::write(const ifcopenshell::geom::brep_element* brep_obj) {
void svg_serializer::write(const ifcopenshell::geom::native_element* brep_obj) {
std::optional<std::string> object_type;
if (!brep_obj->product().get("ObjectType").isNull()) {
+1 -1
View File
@@ -676,7 +676,7 @@ public:
void doWriteHeader();
bool ready();
void write(const ifcopenshell::geom::triangulation_element* /*o*/) {}
void write(const ifcopenshell::geom::brep_element* o);
void write(const ifcopenshell::geom::native_element* o);
void write(path_object& p, const TopoDS_Shape& wire, std::optional<std::vector<double>> dash_array=std::nullopt, std::optional<std::string> css_class=std::nullopt);
void write(const geometry_data& data);
path_object& start_path(const gp_Pln& p, const express::base& storey, const std::string& id);
+1 -1
View File
@@ -362,7 +362,7 @@ void ttl_wkt_serializer::write(const ifcopenshell::geom::triangulation_element*
}
}
void ttl_wkt_serializer::write(const ifcopenshell::geom::brep_element* brep_obj) {
void ttl_wkt_serializer::write(const ifcopenshell::geom::native_element* brep_obj) {
#ifdef IFOPSH_WITH_OPENCASCADE
filename_.stream << ttl_object_id(brep_obj) << " a geo:Feature ;\n";
filename_.stream << " dcterms:identifier " << escape_for_turtle(
+1 -1
View File
@@ -36,7 +36,7 @@ public:
bool ready();
void writeHeader();
void write(const ifcopenshell::geom::triangulation_element* o);
void write(const ifcopenshell::geom::brep_element* /*o*/);
void write(const ifcopenshell::geom::native_element* /*o*/);
void finalize() {}
bool isTesselated() const;
void setUnitNameAndMagnitude(const std::string& /*name*/, float /*magnitude*/) {}
+1 -1
View File
@@ -91,7 +91,7 @@ public:
bool ready() { return ready_; }
void writeHeader();
void write(const ifcopenshell::geom::triangulation_element*);
void write(const ifcopenshell::geom::brep_element*) {}
void write(const ifcopenshell::geom::native_element*) {}
void finalize();
bool isTesselated() const { return true; }
void setUnitNameAndMagnitude(const std::string&, float) {}
+1 -1
View File
@@ -41,7 +41,7 @@ public:
void writeHeader();
void writeMaterial(const ifcopenshell::geom::taxonomy::style::ptr style);
void write(const ifcopenshell::geom::triangulation_element* o);
void write(const ifcopenshell::geom::brep_element* /*o*/) {}
void write(const ifcopenshell::geom::native_element* /*o*/) {}
void finalize() {}
bool isTesselated() const { return true; }
void setUnitNameAndMagnitude(const std::string& /*name*/, float /*magnitude*/) {}