From a954170927027872a3a6d4e2a2f32d97ffaf0dfb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 24 Jul 2026 21:50:41 +0500 Subject: [PATCH] downstream: ifcwrap: exclude interal geometry pointers Still available as `int(xxx.this)`. --- src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi | 2 -- src/ifcwrap/IfcGeomWrapper.i | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index 7174ba6165..f3a045dbbe 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -126,7 +126,6 @@ class BRepElement(Element): def calculate_projected_surface_area(self, along_x, along_y, along_z): ... @property def geometry(self) -> BRep: ... - def geometry_pointer(self): ... @property def surface_area(self): ... @property @@ -512,7 +511,6 @@ class TriangulationElement(Element): def __init__(self, *args): ... @property def geometry(self) -> Triangulation: ... - def geometry_pointer(self): ... class WriteOnlyGeometrySerializer(GeometrySerializer): def __init__(self, *args, **kwargs): ... diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 5945a3bd7a..72e654d984 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -21,6 +21,8 @@ %ignore stream_or_filename::stream; %ignore boost::hash_value; +%ignore IfcGeom::BRepElement::geometry_pointer; +%ignore IfcGeom::TriangulationElement::geometry_pointer; // This is only used for RGB colours, hence the size of 3 %typemap(out) const double* {