Title: Qto: UndisturbedVolume for IfcEarthworksCut returns the volume of the subtraction solid, not the excavated volume · Issue #9376 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Qto: UndisturbedVolume for IfcEarthworksCut returns the volume of the subtraction solid, not the excavated volume · Issue #9376 · IfcOpenShell/IfcOpenShell
X Title: Qto: UndisturbedVolume for IfcEarthworksCut returns the volume of the subtraction solid, not the excavated volume · Issue #9376 · IfcOpenShell/IfcOpenShell
Description: Bug Description No response Attachments Summary When calculating base quantities for an IfcEarthworksCut that is attached to a host element via IfcRelVoidsElement, Qto_EarthworksCutBaseQuantities.UndisturbedVolume is filled with the volu...
Open Graph Description: Bug Description No response Attachments Summary When calculating base quantities for an IfcEarthworksCut that is attached to a host element via IfcRelVoidsElement, Qto_EarthworksCutBaseQuantities.U...
X Description: Bug Description No response Attachments Summary When calculating base quantities for an IfcEarthworksCut that is attached to a host element via IfcRelVoidsElement, Qto_EarthworksCutBaseQuantities.U...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9376
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Qto: UndisturbedVolume for IfcEarthworksCut returns the volume of the subtraction solid, not the excavated volume","articleBody":"### Bug Description\n\n_No response_\n\n### Attachments\n\n\u003chtml>\n\u003cbody>\n\u003c!--StartFragment-->\u003cp dir=\"ltr\">\u003cstrong>Summary\u003c/strong>\u003c/p>\n\u003cp dir=\"ltr\">When calculating base quantities for an \u003ccode>IfcEarthworksCut\u003c/code> that is attached to a host element via \u003ccode>IfcRelVoidsElement\u003c/code>, \u003ccode>Qto_EarthworksCutBaseQuantities.UndisturbedVolume\u003c/code> is filled with the volume of the cut's \u003cem>own\u003c/em> body, not with the volume of material actually removed from the host.\u003c/p>\n\u003cp dir=\"ltr\">For a subtraction solid this is almost never the intended quantity, because subtraction solids are normally modelled deliberately oversized so that the boolean operation does not produce coplanar faces or sliver geometry. In my minimal test case the reported value is \u003cstrong>8.0 m³\u003c/strong> while the excavated volume is \u003cstrong>4.084 m³\u003c/strong> — an error of \u003cstrong>96 %\u003c/strong>.\u003c/p>\n\u003cp dir=\"ltr\">The value is written under the correct quantity set, with the correct name and the correct data type, so nothing downstream flags it: an IDS check for \"\u003ccode>UndisturbedVolume\u003c/code> exists\" passes, and the file is schema-conformant. The number is simply wrong.\u003c/p>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Environment\u003c/strong>\u003c/p>\n\u003cdiv dir=\"ltr\">\n | \n-- | --\nBonsai | 0.8.5 (stable)\nIfcOpenShell | 0.8.5\nBlender | 5.2.0 LTS\nOS | Windows\nSchema of the test file | IFC4X3_ADD2\n\n\u003c/div>\n\u003cp dir=\"ltr\">Since \u003ccode>UndisturbedVolume\u003c/code> and \u003ccode>LooseVolume\u003c/code> are separate quantities, \u003ccode>UndisturbedVolume\u003c/code> is unambiguously the \u003cem>in-situ volume of the material that was removed\u003c/em> — which is the intersection with the host, not the volume of the cutting tool.\u003c/p>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Where it happens\u003c/strong>\u003c/p>\n\u003cp dir=\"ltr\">The mapping is declared in \u003ccode>ifc5d/IFC4X3QtoBaseQuantitiesBlender.json\u003c/code>:\u003c/p>\n\u003cdiv role=\"group\" aria-label=\"json-Code\" tabindex=\"0\">\u003cdiv>\u003cdiv>\u003c/div>\u003c/div>\u003cdiv>json\u003c/div>\u003cdiv>\u003cpre style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono);\">\u003ccode class=\"language-json\" style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono); white-space: pre;\">\u003cspan>\u003cspan>\u003cspan style=\"color: rgb(0, 128, 0);\">\"IfcEarthworksCut\"\u003c/span>: \u003cspan style=\"color: rgb(43, 48, 59);\">{\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">Qto_EarthworksCutBaseQuantities\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(43, 48, 59);\">{\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">Depth\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 0);\">\"get_height\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">Length\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 0);\">\"get_length\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">Width\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 0);\">\"get_width\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">UndisturbedVolume\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 0);\">\"get_net_volume\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">LooseVolume\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 128);\">null\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(184, 10, 24);\">Weight\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">\"\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> \u003cspan style=\"color: rgb(0, 128, 128);\">null\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(43, 48, 59);\">}\u003c/span>\n\u003c/span>\u003cspan>\u003cspan style=\"color: rgb(43, 48, 59);\">}\u003c/span>\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/div>\u003c/div>\n\u003cp dir=\"ltr\">\u003ccode>ifc5d/qto.py\u003c/code>, \u003ccode>Blender.calculate()\u003c/code>, resolves the formula name against \u003ccode>bonsai.bim.module.qto.calculator\u003c/code> and calls it with the Blender object:\u003c/p>\n\u003cdiv role=\"group\" aria-label=\"python-Code\" tabindex=\"0\">\u003cdiv>\u003cdiv>\u003c/div>\u003c/div>\u003cdiv>python\u003c/div>\u003cdiv>\u003cpre style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono);\">\u003ccode class=\"language-python\" style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono); white-space: pre;\">\u003cspan>\u003cspan>formula_function = formula_functions\u003cspan style=\"color: rgb(43, 48, 59);\">[\u003c/span>formula\u003cspan style=\"color: rgb(43, 48, 59);\">]\u003c/span> = \u003cspan style=\"color: rgb(0, 81, 194);\">getattr\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>calculator\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span> formula\u003cspan style=\"color: rgb(43, 48, 59);\">)\u003c/span>\n\u003c/span>\u003cspan>\u003cspan style=\"color: rgb(129, 0, 194);\">if\u003c/span> \u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>value := formula_function\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>obj\u003cspan style=\"color: rgb(43, 48, 59);\">))\u003c/span> \u003cspan style=\"color: rgb(129, 0, 194);\">is\u003c/span> \u003cspan style=\"color: rgb(129, 0, 194);\">not\u003c/span> \u003cspan style=\"color: rgb(0, 128, 128);\">None\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span>\n\u003c/span>\u003cspan> qto_results\u003cspan style=\"color: rgb(43, 48, 59);\">[\u003c/span>quantity\u003cspan style=\"color: rgb(43, 48, 59);\">]\u003c/span> = unit_converter\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>convert\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>value\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span> Blender\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>functions\u003cspan style=\"color: rgb(43, 48, 59);\">[\u003c/span>formula\u003cspan style=\"color: rgb(43, 48, 59);\">].\u003c/span>measure\u003cspan style=\"color: rgb(43, 48, 59);\">)\u003c/span>\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/div>\u003c/div>\n\u003cp dir=\"ltr\">\u003ccode>bonsai/bim/module/qto/calculator.py\u003c/code>:\u003c/p>\n\u003cdiv role=\"group\" aria-label=\"python-Code\" tabindex=\"0\">\u003cdiv>\u003cdiv>\u003c/div>\u003c/div>\u003cdiv>python\u003c/div>\u003cdiv>\u003cpre style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono);\">\u003ccode class=\"language-python\" style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono); white-space: pre;\">\u003cspan>\u003cspan>\u003cspan style=\"color: rgb(129, 0, 194);\">def\u003c/span> \u003cspan style=\"color: rgb(0, 81, 194);\">get_net_volume\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>\u003cspan style=\"color: rgb(184, 79, 5);\">o\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span> bpy\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>types\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>Object\u003cspan style=\"color: rgb(43, 48, 59);\">)\u003c/span> \u003cspan style=\"color: rgb(43, 48, 59);\">->\u003c/span> \u003cspan style=\"color: rgb(179, 74, 0);\">float\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">:\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(129, 0, 194);\">assert\u003c/span> \u003cspan style=\"color: rgb(0, 81, 194);\">isinstance\u003c/span>\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>o\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>data\u003cspan style=\"color: rgb(43, 48, 59);\">,\u003c/span> bpy\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>types\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>Mesh\u003cspan style=\"color: rgb(43, 48, 59);\">)\u003c/span>\n\u003c/span>\u003cspan> o_mesh = bmesh\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>new\u003cspan style=\"color: rgb(43, 48, 59);\">()\u003c/span>\n\u003c/span>\u003cspan> o_mesh\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>from_mesh\u003cspan style=\"color: rgb(43, 48, 59);\">(\u003c/span>o\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>data\u003cspan style=\"color: rgb(43, 48, 59);\">)\u003c/span>\n\u003c/span>\u003cspan> volume = o_mesh\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>calc_volume\u003cspan style=\"color: rgb(43, 48, 59);\">()\u003c/span>\n\u003c/span>\u003cspan> o_mesh\u003cspan style=\"color: rgb(43, 48, 59);\">.\u003c/span>free\u003cspan style=\"color: rgb(43, 48, 59);\">()\u003c/span>\n\u003c/span>\u003cspan> \u003cspan style=\"color: rgb(129, 0, 194);\">return\u003c/span> volume\u003c/span>\u003c/span>\u003c/code>\u003c/pre>\u003c/div>\u003c/div>\n\u003cp dir=\"ltr\">So \u003ccode>get_net_volume\u003c/code> is simply the mesh volume of the element itself. That is the right answer for a wall or a slab; for a subtraction solid it answers a different question than the one the quantity name asks.\u003c/p>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Same problem for \u003ccode>Length\u003c/code>, \u003ccode>Width\u003c/code> and \u003ccode>Depth\u003c/code>\u003c/strong>\u003c/p>\n\u003cp dir=\"ltr\">These map to bounding-box helpers on the cut's own object and therefore describe the cutting tool as well. In the test file \u003ccode>Depth\u003c/code> is reported as \u003cstrong>2.0 m\u003c/strong> although the excavation is \u003cstrong>1.02 m\u003c/strong> deep. If \u003ccode>UndisturbedVolume\u003c/code> is fixed, these should be reconsidered in the same pass, or left empty rather than filled with a misleading value.\u003c/p>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Suggested fix\u003c/strong>\u003c/p>\n\u003cp dir=\"ltr\">The building blocks already exist in \u003ccode>calculator.py\u003c/code>. \u003ccode>get_gross_volume()\u003c/code> already distinguishes the host geometry with and without its openings via \u003ccode>has_openings(o)\u003c/code> and \u003ccode>get_gross_element_mesh(element)\u003c/code>.\u003c/p>\n\u003cp dir=\"ltr\">A dedicated formula function for subtraction solids could reuse that:\u003c/p>\n\u003col dir=\"ltr\">\n\u003cli>From the \u003ccode>IfcEarthworksCut\u003c/code>, follow \u003ccode>VoidsElements\u003c/code> → \u003ccode>IfcRelVoidsElement.RelatingBuildingElement\u003c/code> to the host.\u003c/li>\n\u003cli>Build the host's \u003cstrong>gross\u003c/strong> mesh (openings not applied) — \u003ccode>get_gross_element_mesh()\u003c/code> already does this.\u003c/li>\n\u003cli>Intersect it with the cut's own solid and return the volume of the result.\u003c/li>\n\u003c/ol>\n\u003cp dir=\"ltr\">Alternative, if a per-void boolean is considered too expensive: compute the host's gross and net volumes and take the difference. That is cheaper and exact for the \u003cem>total\u003c/em> excavated volume, but it cannot be attributed to an individual cut when a host has several — so the intersection is the better fit for a per-element quantity.\u003c/p>\n\u003cp dir=\"ltr\">Either way the important part is that the quantity must be evaluated \u003cstrong>against the host\u003c/strong>, not on the subtraction solid in isolation.\u003c/p>\n\u003cp dir=\"ltr\">If neither is desirable, the safer interim behaviour would be to \u003cstrong>not write \u003ccode>UndisturbedVolume\u003c/code> at all\u003c/strong> rather than write the body volume, since a missing quantity is detectable and a wrong one is not.\u003c/p>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Secondary observations (same area, lower priority)\u003c/strong>\u003c/p>\n\u003col dir=\"ltr\">\n\u003cli>\u003cstrong>The IfcOpenShell rule set produces nothing for this class.\u003c/strong> In \u003ccode>IFC4X3QtoBaseQuantities.json\u003c/code>, \u003ccode>IfcEarthworksCut\u003c/code> is present but every quantity is \u003ccode>null\u003c/code>, so \u003ccode>qto.quantify()\u003c/code> with the \u003ccode>IfcOpenShell\u003c/code> calculator returns \u003ccode>{}\u003c/code> for the element without any message. If the class is listed but has no formulas, it may be worth either filling them or reporting that nothing could be calculated.\u003c/li>\n\u003cli>\u003cstrong>\u003ccode>IfcGeographicElement\u003c/code> is absent from both rule sets.\u003c/strong> Neither \u003ccode>IFC4X3QtoBaseQuantities.json\u003c/code> nor \u003ccode>IFC4X3QtoBaseQuantitiesBlender.json\u003c/code> contains it (both list 112 classes, none matching \"Geographic\"), so no quantities can be produced for a terrain element; in the UI, running quantity take-off on it reports an error.\nThis may well be intentional: IFC 4.3 associates only \u003ca href=\"https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/Qto_BodyGeometryValidation.htm\">\u003ccode>Qto_BodyGeometryValidation\u003c/code>\u003c/a> with \u003ccode>IfcGeographicElement\u003c/code>, and that set is explicitly documented as \u003cem>\"Quantities supplied for validating the correct interpretation of the body shape representation at import\"\u003c/em> — a checksum for importers, not a take-off quantity set. If that is the reasoning, a clear \"no quantity rules defined for this class\" message would be friendlier than an error.\u003c/li>\n\u003c/ol>\n\u003chr>\n\u003cp dir=\"ltr\">\u003cstrong>Test file\u003c/strong>\u003c/p>\n<details>\n<summary>Test_Grundstueck3.ifc (IFC4X3_ADD2, 2 elements)</summary>\n\u003cdiv role=\"group\" aria-label=\"Code\" tabindex=\"0\">\u003cdiv>\u003cdiv>\u003c/div>\u003c/div>\u003cdiv>\u003cpre style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono);\">\u003ccode style=\"color: rgb(20, 24, 31); background: transparent; font-family: var(--font-mono); white-space: pre-wrap;\">ISO-10303-21;\nHEADER;\nFILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1');\nFILE_NAME('Test_Grundstueck3.ifc','2026-08-29T14:49:36+02:00',(''),(''),'IfcOpenShell 0.8.5','Bonsai 0.8.5','Nobody');\nFILE_SCHEMA(('IFC4X3_ADD2'));\nENDSEC;\nDATA;\n#1=IFCPROJECT('0b1rKVJGzC2wLNkf3XWTQD',$,'My Project',$,$,$,$,(#10,#22),#5);\n#2=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);\n#3=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);\n#4=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);\n#5=IFCUNITASSIGNMENT((#3,#4,#2));\n#6=IFCCARTESIANPOINT((0.,0.,0.));\n#7=IFCDIRECTION((0.,0.,1.));\n#8=IFCDIRECTION((1.,0.,0.));\n#9=IFCAXIS2PLACEMENT3D(#6,#7,#8);\n#10=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.0000000000000001E-05,#9,$);\n#11=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#12=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Model',*,*,*,*,#10,$,.GRAPH_VIEW.,$);\n#13=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Box','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#14=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.SECTION_VIEW.,$);\n#15=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.ELEVATION_VIEW.,$);\n#16=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.PLAN_VIEW.,$);\n#18=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Profile','Model',*,*,*,*,#10,$,.ELEVATION_VIEW.,$);\n#19=IFCCARTESIANPOINT((0.,0.));\n#20=IFCDIRECTION((1.,0.));\n#21=IFCAXIS2PLACEMENT2D(#19,#20);\n#22=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Plan',2,1.0000000000000001E-05,#21,$);\n#23=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Plan',*,*,*,*,#22,$,.GRAPH_VIEW.,$);\n#24=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Plan',*,*,*,*,#22,$,.PLAN_VIEW.,$);\n#25=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Plan',*,*,*,*,#22,$,.PLAN_VIEW.,$);\n#26=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Plan',*,*,*,*,#22,$,.REFLECTED_PLAN_VIEW.,$);\n#27=IFCSITE('2WEfD_xcD8Jg7_$jGjr6mB',$,'My Site',$,$,#50,$,$,$,$,$,$,$,$);\n#33=IFCBUILDING('0JRnAw5jb8qRIsVPaMAM8i',$,'My Building',$,$,#56,$,$,$,$,$,$);\n#39=IFCBUILDINGSTOREY('33MhZfhMT3aBm1Pf42S46O',$,'My Storey',$,$,#62,$,$,$,$);\n#45=IFCRELAGGREGATES('3O8O5qoQj7kAbprU42KfF1',$,$,$,#1,(#27));\n#46=IFCCARTESIANPOINT((0.,0.,0.));\n#47=IFCDIRECTION((0.,0.,1.));\n#48=IFCDIRECTION((1.,0.,0.));\n#49=IFCAXIS2PLACEMENT3D(#46,#47,#48);\n#50=IFCLOCALPLACEMENT($,#49);\n#51=IFCRELAGGREGATES('3NZ0FwDsPDKPFCmq8kLU7_',$,$,$,#27,(#33));\n#52=IFCCARTESIANPOINT((0.,0.,0.));\n#53=IFCDIRECTION((0.,0.,1.));\n#54=IFCDIRECTION((1.,0.,0.));\n#55=IFCAXIS2PLACEMENT3D(#52,#53,#54);\n#56=IFCLOCALPLACEMENT(#50,#55);\n#57=IFCRELAGGREGATES('1EjXlWV2n2cQqqNiKiURhy',$,$,$,#33,(#39));\n#58=IFCCARTESIANPOINT((0.,0.,0.));\n#59=IFCDIRECTION((0.,0.,1.));\n#60=IFCDIRECTION((1.,0.,0.));\n#61=IFCAXIS2PLACEMENT3D(#58,#59,#60);\n#62=IFCLOCALPLACEMENT(#56,#61);\n#63=IFCGEOGRAPHICELEMENTTYPE('3sY_TyX1v1xPRjOUFznuOn',$,'Terrain',$,$,(#68),$,$,$,.TERRAIN.);\n#64=IFCMATERIAL('Unknown',$,$);\n#65=IFCMATERIALLAYERSET((#67),$,$);\n#66=IFCRELASSOCIATESMATERIAL('06OX_CvjbCOP3WV7c1F$sm',$,$,$,(#63),#65);\n#67=IFCMATERIALLAYER(#64,5.,$,$,$,$,$);\n#68=IFCPROPERTYSET('2mMKL7BS53jAYzdWxhp4QK',$,'EPset_Parametric',$,(#69));\n#69=IFCPROPERTYSINGLEVALUE('LayerSetDirection',$,IFCLABEL('AXIS3'),$);\n#70=IFCGEOGRAPHICELEMENT('1cnPZfO1TB9PUluO5Vw0mo',$,'GeographicElement',$,$,#79,#86,$,$);\n#71=IFCRELCONTAINEDINSPATIALSTRUCTURE('0HMoJLsQb31wddv7Y11gqq',$,$,$,(#70),#39);\n#72=IFCRELDEFINESBYTYPE('1ZqxvuJ11DHQz4$S4Gt2Ys',$,$,$,(#70),#63);\n#73=IFCMATERIALLAYERSETUSAGE(#65,.AXIS3.,.POSITIVE.,-0.10000000149011612,$);\n#74=IFCRELASSOCIATESMATERIAL('0xzbJGwLfC8e9XmdavcjGj',$,$,$,(#70),#73);\n#75=IFCCARTESIANPOINT((0.,0.,0.));\n#76=IFCDIRECTION((0.,0.,1.));\n#77=IFCDIRECTION((1.,0.,0.));\n#78=IFCAXIS2PLACEMENT3D(#75,#76,#77);\n#79=IFCLOCALPLACEMENT(#62,#78);\n#80=IFCCARTESIANPOINTLIST2D(((0.,0.),(10.,0.),(9.9999990463256836,10.),(-9.5367431640625E-07,9.9999980926513672),(0.,0.)),$);\n#81=IFCINDEXEDPOLYCURVE(#80,$,$);\n#82=IFCDIRECTION((0.,0.,1.));\n#83=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#81);\n#84=IFCEXTRUDEDAREASOLID(#83,#93,#82,5.);\n#85=IFCSHAPEREPRESENTATION(#11,'Body','SweptSolid',(#84));\n#86=IFCPRODUCTDEFINITIONSHAPE($,$,(#85));\n#87=IFCPROPERTYSET('2IoK77nAX9C8OvC6UJna7K',$,'EPset_Parametric',$,(#89));\n#88=IFCRELDEFINESBYPROPERTIES('2WE8YmMCX6QfE0CyFyc$Lm',$,$,$,(#70),#87);\n#89=IFCPROPERTYSINGLEVALUE('Engine',$,IFCLABEL('Bonsai.DumbLayer3'),$);\n#90=IFCCARTESIANPOINT((-0.,-0.,-0.10000000149011612));\n#91=IFCDIRECTION((0.,0.,1.));\n#92=IFCDIRECTION((1.,0.,0.));\n#93=IFCAXIS2PLACEMENT3D(#90,#91,#92);\n#94=IFCEARTHWORKSCUT('27iGbFykn9jwEGldntRpa8',$,'TerrainCut',$,$,#115,#104,$,.BASE_EXCAVATION.);\n#95=IFCCARTESIANPOINTLIST3D(((0.,0.,-0.12095451354980469),(0.,0.,1.8790454864501953),(0.,2.,-0.12095451354980469),(0.,2.,1.8790454864501953),(2.,0.,-0.12095451354980469),(2.,0.,1.8790454864501953),(2.,2.,-0.12095451354980469),(2.,2.,1.8790454864501953)),$);\n#96=IFCINDEXEDPOLYGONALFACE((1,2,4,3));\n#97=IFCINDEXEDPOLYGONALFACE((3,4,8,7));\n#98=IFCINDEXEDPOLYGONALFACE((7,8,6,5));\n#99=IFCINDEXEDPOLYGONALFACE((5,6,2,1));\n#100=IFCINDEXEDPOLYGONALFACE((3,7,5,1));\n#101=IFCINDEXEDPOLYGONALFACE((8,4,2,6));\n#102=IFCPOLYGONALFACESET(#95,$,(#96,#97,#98,#99,#100,#101),$);\n#103=IFCSHAPEREPRESENTATION(#11,'Body','Tessellation',(#102));\n#104=IFCPRODUCTDEFINITIONSHAPE($,$,(#103));\n#105=IFCRELVOIDSELEMENT('12B7vIdCvAsB_oP$PE9x$5',$,$,$,#70,#94);\n#111=IFCCARTESIANPOINT((4.,4.,4.));\n#112=IFCDIRECTION((0.,0.,1.));\n#113=IFCDIRECTION((1.,0.,0.));\n#114=IFCAXIS2PLACEMENT3D(#111,#112,#113);\n#115=IFCLOCALPLACEMENT(#79,#114);\nENDSEC;\nEND-ISO-10303-21;\u003c/code>\u003c/pre>\u003c/div>\u003c/div>\n</details>\u003c!--EndFragment-->\n\u003c/body>\n\u003c/html>Summary\n\nWhen calculating base quantities for an IfcEarthworksCut that is attached to a host element via IfcRelVoidsElement, Qto_EarthworksCutBaseQuantities.UndisturbedVolume is filled with the volume of the cut's own body, not with the volume of material actually removed from the host.\n\nFor a subtraction solid this is almost never the intended quantity, because subtraction solids are normally modelled deliberately oversized so that the boolean operation does not produce coplanar faces or sliver geometry. In my minimal test case the reported value is 8.0 m³ while the excavated volume is 4.084 m³ — an error of 96 %.\n\nThe value is written under the correct quantity set, with the correct name and the correct data type, so nothing downstream flags it: an IDS check for \"UndisturbedVolume exists\" passes, and the file is schema-conformant. The number is simply wrong.\n\nEnvironment\n\n\t\nBonsai\t0.8.5 (stable)\nIfcOpenShell\t0.8.5\nBlender\t5.2.0 LTS\nOS\tWindows\nSchema of the test file\tIFC4X3_ADD2\n\nSteps to reproduce\n\nCreate an IfcGeographicElement with PredefinedType = TERRAIN: a 10 × 10 m rectangular extrusion, 5 m high, base at z = −0.10, so the solid spans z = −0.10 … +4.90.\nCreate an IfcEarthworksCut with PredefinedType = BASE_EXCAVATION: a 2 × 2 × 2 m box, placed so that it protrudes above the terrain surface and reaches ~1 m below it.\nRelate them with IfcRelVoidsElement (terrain as RelatingBuildingElement).\nRun quantity take-off on the IfcEarthworksCut.\n\nEquivalent via the Python API:\n\npython\nimport bonsai.tool as tool\nfrom ifc5d import qto\n\nf = tool.Ifc.get()\ncut = f.by_type(\"IfcEarthworksCut\")[0]\nprint(qto.quantify(f, {cut}, qto.rules[\"IFC4X3QtoBaseQuantitiesBlender\"]))\n\nActual result\n\npython\n{#94=IfcEarthworksCut(...,.BASE_EXCAVATION.): {\n 'Qto_EarthworksCutBaseQuantities': {\n 'Depth': 2.0,\n 'Length': 2.0,\n 'Width': 2.0,\n 'UndisturbedVolume': 7.999999999999999\n }\n}}\n\nExpected result\n\nUndisturbedVolume should be the volume of material removed from the host element — the intersection of the cut solid with the host solid.\n\nIn the attached test file that value is 4.0838 m³. Verified two independent ways, agreeing to within 4·10⁻⁷ m³:\n\nVolume difference on the host — build the terrain twice with ifcopenshell.geom, once normally and once with settings.set(\"disable-opening-subtractions\", True), and subtract the two mesh volumes: 499.99995 − 495.91613 = 4.083818048 m³\nBoolean intersection — intersect the cut solid with the terrain solid (Blender boolean, EXACT solver), then bmesh.calc_volume(): 4.083818436 m³\n\n(The overlap is 2 × 2 m over a depth of 1.02095 m. The depth is not exactly 1.00 m because of how I placed the box; that is a modelling inaccuracy in the test file, not part of the bug.)\n\nWhy the current value cannot be the intended one\n\nIfcEarthworksCut is a subtype of IfcFeatureElementSubtraction. When it is used through IfcRelVoidsElement, its geometry is a tool, not a product: only the part of it that intersects the host has any physical meaning. The remainder is deliberately outside the host, precisely to keep the boolean robust.\n\nConsequently the body volume of the cut is an arbitrary number that depends on how far the modeller extended the solid beyond the host — it is not a property of the excavation at all. Two models describing the same excavation will report different UndisturbedVolume values.\n\nThe IFC 4.3 documentation defines the quantity set as [Qto_EarthworksCutBaseQuantities](https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/Qto_EarthworksCutBaseQuantities.htm), applicable to IfcEarthworksCut, with:\n\nQuantity\tDocumentation\nUndisturbedVolume\t\"Undisturbed Volume\" — i.e. the in-situ / bank volume of the excavated material\nLooseVolume\t\"Volume of the earthworks when in a loose piled state\"\nLength · Width · Depth\tdimensions\nWeight\ttotal weight\n\nSince UndisturbedVolume and LooseVolume are separate quantities, UndisturbedVolume is unambiguously the in-situ volume of the material that was removed — which is the intersection with the host, not the volume of the cutting tool.\n\nWhere it happens\n\nThe mapping is declared in ifc5d/IFC4X3QtoBaseQuantitiesBlender.json:\n\njson\n\"IfcEarthworksCut\": {\n \"Qto_EarthworksCutBaseQuantities\": {\n \"Depth\": \"get_height\",\n \"Length\": \"get_length\",\n \"Width\": \"get_width\",\n \"UndisturbedVolume\": \"get_net_volume\",\n \"LooseVolume\": null,\n \"Weight\": null\n }\n}\n\nifc5d/qto.py, Blender.calculate(), resolves the formula name against bonsai.bim.module.qto.calculator and calls it with the Blender object:\n\npython\nformula_function = formula_functions[formula] = getattr(calculator, formula)\nif (value := formula_function(obj)) is not None:\n qto_results[quantity] = unit_converter.convert(value, Blender.functions[formula].measure)\n\nbonsai/bim/module/qto/calculator.py:\n\npython\ndef get_net_volume(o: bpy.types.Object) -> float:\n assert isinstance(o.data, bpy.types.Mesh)\n o_mesh = bmesh.new()\n o_mesh.from_mesh(o.data)\n volume = o_mesh.calc_volume()\n o_mesh.free()\n return volume\n\nSo get_net_volume is simply the mesh volume of the element itself. That is the right answer for a wall or a slab; for a subtraction solid it answers a different question than the one the quantity name asks.\n\nSame problem for Length, Width and Depth\n\nThese map to bounding-box helpers on the cut's own object and therefore describe the cutting tool as well. In the test file Depth is reported as 2.0 m although the excavation is 1.02 m deep. If UndisturbedVolume is fixed, these should be reconsidered in the same pass, or left empty rather than filled with a misleading value.\n\nSuggested fix\n\nThe building blocks already exist in calculator.py. get_gross_volume() already distinguishes the host geometry with and without its openings via has_openings(o) and get_gross_element_mesh(element).\n\nA dedicated formula function for subtraction solids could reuse that:\n\nFrom the IfcEarthworksCut, follow VoidsElements → IfcRelVoidsElement.RelatingBuildingElement to the host.\nBuild the host's gross mesh (openings not applied) — get_gross_element_mesh() already does this.\nIntersect it with the cut's own solid and return the volume of the result.\n\nAlternative, if a per-void boolean is considered too expensive: compute the host's gross and net volumes and take the difference. That is cheaper and exact for the total excavated volume, but it cannot be attributed to an individual cut when a host has several — so the intersection is the better fit for a per-element quantity.\n\nEither way the important part is that the quantity must be evaluated against the host, not on the subtraction solid in isolation.\n\nIf neither is desirable, the safer interim behaviour would be to not write UndisturbedVolume at all rather than write the body volume, since a missing quantity is detectable and a wrong one is not.\n\nSecondary observations (same area, lower priority)\n\nThe IfcOpenShell rule set produces nothing for this class. In IFC4X3QtoBaseQuantities.json, IfcEarthworksCut is present but every quantity is null, so qto.quantify() with the IfcOpenShell calculator returns {} for the element without any message. If the class is listed but has no formulas, it may be worth either filling them or reporting that nothing could be calculated.\nIfcGeographicElement is absent from both rule sets. Neither IFC4X3QtoBaseQuantities.json nor IFC4X3QtoBaseQuantitiesBlender.json contains it (both list 112 classes, none matching \"Geographic\"), so no quantities can be produced for a terrain element; in the UI, running quantity take-off on it reports an error. This may well be intentional: IFC 4.3 associates only [Qto_BodyGeometryValidation](https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/Qto_BodyGeometryValidation.htm) with IfcGeographicElement, and that set is explicitly documented as \"Quantities supplied for validating the correct interpretation of the body shape representation at import\" — a checksum for importers, not a take-off quantity set. If that is the reasoning, a clear \"no quantity rules defined for this class\" message would be friendlier than an error.\n\nTest file\n\n\u003cdetails> \u003csummary>Test_Grundstueck3.ifc (IFC4X3_ADD2, 2 elements)\u003c/summary>\nISO-10303-21;\nHEADER;\nFILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1');\nFILE_NAME('Test_Grundstueck3.ifc','2026-08-29T14:49:36+02:00',(''),(''),'IfcOpenShell 0.8.5','Bonsai 0.8.5','Nobody');\nFILE_SCHEMA(('IFC4X3_ADD2'));\nENDSEC;\nDATA;\n#1=IFCPROJECT('0b1rKVJGzC2wLNkf3XWTQD',$,'My Project',$,$,$,$,(#10,#22),#5);\n#2=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);\n#3=IFCSIUNIT(*,.AREAUNIT.,$,.SQUARE_METRE.);\n#4=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);\n#5=IFCUNITASSIGNMENT((#3,#4,#2));\n#6=IFCCARTESIANPOINT((0.,0.,0.));\n#7=IFCDIRECTION((0.,0.,1.));\n#8=IFCDIRECTION((1.,0.,0.));\n#9=IFCAXIS2PLACEMENT3D(#6,#7,#8);\n#10=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.0000000000000001E-05,#9,$);\n#11=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#12=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Model',*,*,*,*,#10,$,.GRAPH_VIEW.,$);\n#13=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Box','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#14=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.SECTION_VIEW.,$);\n#15=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.ELEVATION_VIEW.,$);\n#16=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.MODEL_VIEW.,$);\n#17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Model',*,*,*,*,#10,$,.PLAN_VIEW.,$);\n#18=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Profile','Model',*,*,*,*,#10,$,.ELEVATION_VIEW.,$);\n#19=IFCCARTESIANPOINT((0.,0.));\n#20=IFCDIRECTION((1.,0.));\n#21=IFCAXIS2PLACEMENT2D(#19,#20);\n#22=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Plan',2,1.0000000000000001E-05,#21,$);\n#23=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Plan',*,*,*,*,#22,$,.GRAPH_VIEW.,$);\n#24=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Plan',*,*,*,*,#22,$,.PLAN_VIEW.,$);\n#25=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Plan',*,*,*,*,#22,$,.PLAN_VIEW.,$);\n#26=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Annotation','Plan',*,*,*,*,#22,$,.REFLECTED_PLAN_VIEW.,$);\n#27=IFCSITE('2WEfD_xcD8Jg7_$jGjr6mB',$,'My Site',$,$,#50,$,$,$,$,$,$,$,$);\n#33=IFCBUILDING('0JRnAw5jb8qRIsVPaMAM8i',$,'My Building',$,$,#56,$,$,$,$,$,$);\n#39=IFCBUILDINGSTOREY('33MhZfhMT3aBm1Pf42S46O',$,'My Storey',$,$,#62,$,$,$,$);\n#45=IFCRELAGGREGATES('3O8O5qoQj7kAbprU42KfF1',$,$,$,#1,(#27));\n#46=IFCCARTESIANPOINT((0.,0.,0.));\n#47=IFCDIRECTION((0.,0.,1.));\n#48=IFCDIRECTION((1.,0.,0.));\n#49=IFCAXIS2PLACEMENT3D(#46,#47,#48);\n#50=IFCLOCALPLACEMENT($,#49);\n#51=IFCRELAGGREGATES('3NZ0FwDsPDKPFCmq8kLU7_',$,$,$,#27,(#33));\n#52=IFCCARTESIANPOINT((0.,0.,0.));\n#53=IFCDIRECTION((0.,0.,1.));\n#54=IFCDIRECTION((1.,0.,0.));\n#55=IFCAXIS2PLACEMENT3D(#52,#53,#54);\n#56=IFCLOCALPLACEMENT(#50,#55);\n#57=IFCRELAGGREGATES('1EjXlWV2n2cQqqNiKiURhy',$,$,$,#33,(#39));\n#58=IFCCARTESIANPOINT((0.,0.,0.));\n#59=IFCDIRECTION((0.,0.,1.));\n#60=IFCDIRECTION((1.,0.,0.));\n#61=IFCAXIS2PLACEMENT3D(#58,#59,#60);\n#62=IFCLOCALPLACEMENT(#56,#61);\n#63=IFCGEOGRAPHICELEMENTTYPE('3sY_TyX1v1xPRjOUFznuOn',$,'Terrain',$,$,(#68),$,$,$,.TERRAIN.);\n#64=IFCMATERIAL('Unknown',$,$);\n#65=IFCMATERIALLAYERSET((#67),$,$);\n#66=IFCRELASSOCIATESMATERIAL('06OX_CvjbCOP3WV7c1F$sm',$,$,$,(#63),#65);\n#67=IFCMATERIALLAYER(#64,5.,$,$,$,$,$);\n#68=IFCPROPERTYSET('2mMKL7BS53jAYzdWxhp4QK',$,'EPset_Parametric',$,(#69));\n#69=IFCPROPERTYSINGLEVALUE('LayerSetDirection',$,IFCLABEL('AXIS3'),$);\n#70=IFCGEOGRAPHICELEMENT('1cnPZfO1TB9PUluO5Vw0mo',$,'GeographicElement',$,$,#79,#86,$,$);\n#71=IFCRELCONTAINEDINSPATIALSTRUCTURE('0HMoJLsQb31wddv7Y11gqq',$,$,$,(#70),#39);\n#72=IFCRELDEFINESBYTYPE('1ZqxvuJ11DHQz4$S4Gt2Ys',$,$,$,(#70),#63);\n#73=IFCMATERIALLAYERSETUSAGE(#65,.AXIS3.,.POSITIVE.,-0.10000000149011612,$);\n#74=IFCRELASSOCIATESMATERIAL('0xzbJGwLfC8e9XmdavcjGj',$,$,$,(#70),#73);\n#75=IFCCARTESIANPOINT((0.,0.,0.));\n#76=IFCDIRECTION((0.,0.,1.));\n#77=IFCDIRECTION((1.,0.,0.));\n#78=IFCAXIS2PLACEMENT3D(#75,#76,#77);\n#79=IFCLOCALPLACEMENT(#62,#78);\n#80=IFCCARTESIANPOINTLIST2D(((0.,0.),(10.,0.),(9.9999990463256836,10.),(-9.5367431640625E-07,9.9999980926513672),(0.,0.)),$);\n#81=IFCINDEXEDPOLYCURVE(#80,$,$);\n#82=IFCDIRECTION((0.,0.,1.));\n#83=IFCARBITRARYCLOSEDPROFILEDEF(.AREA.,$,#81);\n#84=IFCEXTRUDEDAREASOLID(#83,#93,#82,5.);\n#85=IFCSHAPEREPRESENTATION(#11,'Body','SweptSolid',(#84));\n#86=IFCPRODUCTDEFINITIONSHAPE($,$,(#85));\n#87=IFCPROPERTYSET('2IoK77nAX9C8OvC6UJna7K',$,'EPset_Parametric',$,(#89));\n#88=IFCRELDEFINESBYPROPERTIES('2WE8YmMCX6QfE0CyFyc$Lm',$,$,$,(#70),#87);\n#89=IFCPROPERTYSINGLEVALUE('Engine',$,IFCLABEL('Bonsai.DumbLayer3'),$);\n#90=IFCCARTESIANPOINT((-0.,-0.,-0.10000000149011612));\n#91=IFCDIRECTION((0.,0.,1.));\n#92=IFCDIRECTION((1.,0.,0.));\n#93=IFCAXIS2PLACEMENT3D(#90,#91,#92);\n#94=IFCEARTHWORKSCUT('27iGbFykn9jwEGldntRpa8',$,'TerrainCut',$,$,#115,#104,$,.BASE_EXCAVATION.);\n#95=IFCCARTESIANPOINTLIST3D(((0.,0.,-0.12095451354980469),(0.,0.,1.8790454864501953),(0.,2.,-0.12095451354980469),(0.,2.,1.8790454864501953),(2.,0.,-0.12095451354980469),(2.,0.,1.8790454864501953),(2.,2.,-0.12095451354980469),(2.,2.,1.8790454864501953)),$);\n#96=IFCINDEXEDPOLYGONALFACE((1,2,4,3));\n#97=IFCINDEXEDPOLYGONALFACE((3,4,8,7));\n#98=IFCINDEXEDPOLYGONALFACE((7,8,6,5));\n#99=IFCINDEXEDPOLYGONALFACE((5,6,2,1));\n#100=IFCINDEXEDPOLYGONALFACE((3,7,5,1));\n#101=IFCINDEXEDPOLYGONALFACE((8,4,2,6));\n#102=IFCPOLYGONALFACESET(#95,$,(#96,#97,#98,#99,#100,#101),$);\n#103=IFCSHAPEREPRESENTATION(#11,'Body','Tessellation',(#102));\n#104=IFCPRODUCTDEFINITIONSHAPE($,$,(#103));\n#105=IFCRELVOIDSELEMENT('12B7vIdCvAsB_oP$PE9x$5',$,$,$,#70,#94);\n#111=IFCCARTESIANPOINT((4.,4.,4.));\n#112=IFCDIRECTION((0.,0.,1.));\n#113=IFCDIRECTION((1.,0.,0.));\n#114=IFCAXIS2PLACEMENT3D(#111,#112,#113);\n#115=IFCLOCALPLACEMENT(#79,#114);\nENDSEC;\nEND-ISO-10303-21;\n\u003c/details>\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/SautaRoc","@type":"Person","name":"SautaRoc"},"datePublished":"2026-08-29T13:29:42Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9376"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c861572d-a496-bfaf-6783-1113e2d394a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E706:BE8D0:4CB09A:6BF7EB:6B0472B5 |
| html-safe-nonce | af9bd9123bde77c39e6d7d2e10bbf9e859976091802ce70224198e3971cafc86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzA2OkJFOEQwOjRDQjA5QTo2QkY3RUI6NkIwNDcyQjUiLCJ2aXNpdG9yX2lkIjoiODc5NTI0OTM1MDY5MjU5ODQ1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 080da4d2e92f9a1e82ca47640147852df508f7e421bf4256b25081db20b43e30 |
| hovercard-subject-tag | issue:5286792122 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae1dfd1736538eeb225ad5feaf24a660ad3d964887323c127ddeff15fd369623/IfcOpenShell/IfcOpenShell/issues/9376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae1dfd1736538eeb225ad5feaf24a660ad3d964887323c127ddeff15fd369623/IfcOpenShell/IfcOpenShell/issues/9376 |
| og:image:alt | Bug Description No response Attachments Summary When calculating base quantities for an IfcEarthworksCut that is attached to a host element via IfcRelVoidsElement, Qto_EarthworksCutBaseQuantities.U... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SautaRoc |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width