René's URL Explorer Experiment


Title: [geom] Void on open IfcTriangulatedFaceSet (Closed=.F., e.g. TIN terrain): OpenCASCADE adds faces of the opening body, CGAL returns empty geometry · Issue #10076 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: [geom] Void on open IfcTriangulatedFaceSet (Closed=.F., e.g. TIN terrain): OpenCASCADE adds faces of the opening body, CGAL returns empty geometry · Issue #10076 · IfcOpenShell/IfcOpenShell

X Title: [geom] Void on open IfcTriangulatedFaceSet (Closed=.F., e.g. TIN terrain): OpenCASCADE adds faces of the opening body, CGAL returns empty geometry · Issue #10076 · IfcOpenShell/IfcOpenShell

Description: Versions: ifcopenshell 0.9.0.post1 (pip and Bonsai), schema IFC4X3_ADD2. Situation: An IfcGeographicElement (TERRAIN) represented as an open IfcTriangulatedFaceSet (Closed = .F., a typical TIN surface) is voided by an IfcEarthworksCut (b...

Open Graph Description: Versions: ifcopenshell 0.9.0.post1 (pip and Bonsai), schema IFC4X3_ADD2. Situation: An IfcGeographicElement (TERRAIN) represented as an open IfcTriangulatedFaceSet (Closed = .F., a typical TIN surf...

X Description: Versions: ifcopenshell 0.9.0.post1 (pip and Bonsai), schema IFC4X3_ADD2. Situation: An IfcGeographicElement (TERRAIN) represented as an open IfcTriangulatedFaceSet (Closed = .F., a typical TIN surf...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10076

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[geom] Void on open IfcTriangulatedFaceSet (Closed=.F., e.g. TIN terrain): OpenCASCADE adds faces of the opening body, CGAL returns empty geometry","articleBody":"**Versions:** ifcopenshell 0.9.0.post1 (pip and Bonsai), schema IFC4X3_ADD2.\n\n**Situation:** An `IfcGeographicElement` (TERRAIN) represented as an open `IfcTriangulatedFaceSet` (`Closed = .F.`, a typical TIN surface) is voided by an `IfcEarthworksCut` (body = `IfcExtrudedAreaSolid`) via `IfcRelVoidsElement`.\n\n**Observed:**\n- `opencascade`: the footprint of the cut is removed from the surface, but faces of the opening body are added to the terrain result. Which faces depends on the winding of the TIN. With normals +Z, the walls and the bottom below the surface are added. With reversed winding, the walls and the top above the surface are added. In Bonsai, this shows up as a \"lid\" of terrain over pavements that the cut was meant to expose.\n- `cgal`: empty geometry (log `UNS006 Subtraction of openings not supported for non-closed geometry`).\n- `boolean-attempt-2d` / `reorient-shells` / `make-volume` don't change the result. The OCC log shows `GEO191 Non-manifold first operand` / `GEO133`.\n\n**Expected:** either the surface with a 2 × 2 m hole (96 m², all z = 0), or the surface left unchanged with a warning. Faces of the opening body should never become part of the voided element.\n\n**Minimal repro (no input file needed):**\n\n```python\nimport numpy as np, ifcopenshell, ifcopenshell.geom as geom\nf = ifcopenshell.file(schema=\"IFC4X3_ADD2\")\nctx = f.createIfcGeometricRepresentationContext(None, \"Model\", 3, 1e-6, f.createIfcAxis2Placement3D(f.createIfcCartesianPoint((0., 0., 0.))))\nbody = f.createIfcGeometricRepresentationSubContext(\"Body\", \"Model\", None, None, None, None, ctx, None, \"MODEL_VIEW\", None)\npl = lambda: f.createIfcLocalPlacement(None, f.createIfcAxis2Placement3D(f.createIfcCartesianPoint((0., 0., 0.))))\npts = f.createIfcCartesianPointList3D([(0., 0., 0.), (10., 0., 0.), (10., 10., 0.), (0., 10., 0.)])\ntin = f.createIfcTriangulatedFaceSet(pts, None, False, [(1, 2, 3), (1, 3, 4)], None)   # swap to [(1,3,2),(1,4,3)] for the \"lid\" case\nterrain = f.createIfcGeographicElement(ifcopenshell.guid.new(), None, \"Terrain\", None, None, pl(),\n    f.createIfcProductDefinitionShape(None, None, [f.createIfcShapeRepresentation(body, \"Body\", \"Tessellation\", [tin])]), None, \"TERRAIN\")\nprof = f.createIfcRectangleProfileDef(\"AREA\", None, f.createIfcAxis2Placement2D(f.createIfcCartesianPoint((5., 5.)), None), 2., 2.)\next = f.createIfcExtrudedAreaSolid(prof, f.createIfcAxis2Placement3D(f.createIfcCartesianPoint((0., 0., -0.5))), f.createIfcDirection((0., 0., 1.)), 1.)\ncut = f.createIfcEarthworksCut(ifcopenshell.guid.new(), None, \"Cut\", None, None, pl(),\n    f.createIfcProductDefinitionShape(None, None, [f.createIfcShapeRepresentation(body, \"Body\", \"SweptSolid\", [ext])]), None, \"EXCAVATION\")\nf.createIfcRelVoidsElement(ifcopenshell.guid.new(), None, None, None, terrain, cut)\ns = geom.settings(); s.set(\"use-world-coords\", True)\nfor lib in (\"opencascade\", \"cgal\"):\n    g = geom.create_shape(s, terrain, geometry_library=lib).geometry\n    v = np.array(g.verts).reshape(-1, 3); t = np.array(g.faces).reshape(-1, 3)\n    area = sum(np.linalg.norm(np.cross(v[b] - v[a], v[c] - v[a])) / 2 for a, b, c in t)\n    print(lib, len(t), round(area, 2), sorted(set(np.round(v[:, 2], 3))))\n```\n\n**Output:**\n\n| winding | opencascade | cgal |\n|---|---|---|\n| normals +Z `[(1,2,3),(1,3,4)]` | 18 triangles, 104.00 m², z ∈ {−0.5, 0.0} (cut walls + bottom added) | 0 triangles |\n| reversed `[(1,3,2),(1,4,3)]` | 18 triangles, 104.00 m², z ∈ {0.0, 0.5} (cut walls + top added) | 0 triangles |\n\nA closed terrain body (`Closed = .T.` or an extrusion) is voided correctly by both kernels in this setup.\n\n**Spec context:** IFC 4.3.2.0 `IfcRelVoidsElement` / `IfcFeatureElementSubtraction` describe a Boolean difference of \"geometric bodies\" and say nothing about open surfaces. On `ifc4.3-main`, the *Earthworks Cuttings* concept template now has a NOTE that \"no CSG operation is expected to be performed on import\" for surface terrains (commit efcac273). So leaving the surface untouched, with a warning, would be acceptable too. Adding the opening's faces is not.\n\n**Related:** #5630 (void without effect on terrain, closed geometry), #8725, PR #9716.","author":{"url":"https://github.com/M-H-H-B","@type":"Person","name":"M-H-H-B"},"datePublished":"2026-10-27T18:58:52Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10076"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6745d7a0-7858-2433-436a-7cf9a2256da1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBB8:221EB5:565979:77037F:6B04A188
html-safe-nonceb21ff17515ba095a647ecd7865289b5490a07ee4ecb5e39decc820263f291d0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkI4OjIyMUVCNTo1NjU5Nzk6NzcwMzdGOjZCMDRBMTg4IiwidmlzaXRvcl9pZCI6IjEyNTkyMTQ1MDcwNzQyNzcyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac348f040e522d5f6e4e02f6731998d1ce283e3ab32afb4ad84e4926b2bf71ffd6
hovercard-subject-tagissue:6065779553
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/10076/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1e4de7e6fa18ff251ab225c1088f02d78b066083d2e27e00704fd0027cea3ed4/IfcOpenShell/IfcOpenShell/issues/10076
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1e4de7e6fa18ff251ab225c1088f02d78b066083d2e27e00704fd0027cea3ed4/IfcOpenShell/IfcOpenShell/issues/10076
og:image:altVersions: ifcopenshell 0.9.0.post1 (pip and Bonsai), schema IFC4X3_ADD2. Situation: An IfcGeographicElement (TERRAIN) represented as an open IfcTriangulatedFaceSet (Closed = .F., a typical TIN surf...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameM-H-H-B
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/10076#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F10076
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F10076
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10076
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10076
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10076
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests937 (937)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10076
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10076
[geom] Void on open IfcTriangulatedFaceSet (Closed=.F., e.g. TIN terrain): OpenCASCADE adds faces of the opening body, CGAL returns empty geometryhttps://github.com/IfcOpenShell/IfcOpenShell/issues/10076#top
https://github.com/M-H-H-B
M-H-H-Bhttps://github.com/M-H-H-B
on Oct 27, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/10076#issue-6065779553
#5630https://github.com/IfcOpenShell/IfcOpenShell/issues/5630
#8725https://github.com/IfcOpenShell/IfcOpenShell/pull/8725
#9716https://github.com/IfcOpenShell/IfcOpenShell/pull/9716
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10076
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/10076
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.