René's URL Explorer Experiment


Title: Spatial Querying: Implementation of BVH tree for IFC files using NCollection_UBTree by aothms · Pull Request #130 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Spatial Querying: Implementation of BVH tree for IFC files using NCollection_UBTree by aothms · Pull Request #130 · IfcOpenShell/IfcOpenShell

X Title: Spatial Querying: Implementation of BVH tree for IFC files using NCollection_UBTree by aothms · Pull Request #130 · IfcOpenShell/IfcOpenShell

Description: Rationale By arranging the bounding volumes into a bounding volume hierarchy, the time complexity (the number of tests performed) can be reduced to logarithmic in the number of objects. With such a hierarchy in place, during collision testing, children volumes do not have to be examined if their parent volumes are not intersected. From wikipedia. Bounding box intersection: 0.000 seconds Solid volume containment: 0.597 seconds API Python fn = "Duplex_A_20110907_optimized.ifc" f = ifcopenshell.open(fn) wall = f["2O2Fr$t4X7Zf8NOew3FLPP"] tree_settings = ifcopenshell.geom.settings() tree_settings.set(tree_settings.DISABLE_OPENING_SUBTRACTIONS, True) t = ifcopenshell.geom.tree(f, tree_settings) # For multiple files use: # t = ifcopenshell.geom.tree() # t.add_file(f, tree_settings) # t.add_file(...) print("Intersecting with wall 2O2Fr$t4X7Zf8NOew3FLPP") print(t.select(wall)) print("Contained within wall 2O2Fr$t4X7Zf8NOew3FLPP") print(t.select(wall, completely_within=True)) print("Intersecting with bounding box wall 2O2Fr$t4X7Zf8NOew3FLPP") print(t.select_box(wall)) print("Surrounding bounding box wall 2O2Fr$t4X7Zf8NOew3FLPP") print(t.select_box(wall, extend=1.)) print("Contained within bounding box wall 2O2Fr$t4X7Zf8NOew3FLPP") print(t.select_box(wall, extend=0.001, completely_within=True)) print("Containing point (0,0,0)") print(t.select((0.,0.,0.))) print("Intersecting with (-1,-1,-1) -> (1,1,1)") print(t.select_box(((-1.,-1.,-1.),(1.,1.,1.)))) print("Contained within (-2,-2,-2) -> (10,10,10)") print(t.select_box(((-2.,-2.,-2.),(10.,10.,10.)), completely_within=True)) C++ IfcParse::IfcFile f; f.Init("Duplex_A_20110907_optimized.ifc"); IfcGeom::IteratorSettings settings; settings.set(IfcGeom::IteratorSettings::DISABLE_OPENING_SUBTRACTIONS, true); IfcGeom::tree tree(f, settings); IfcSchema::IfcWallStandardCase* wall = f.entityByGuid("2O2Fr$t4X7Zf8NOew3FLPP")->as(); std::cout << "Intersecting with wall 2O2Fr$t4X7Zf8NOew3FLPP" << std::endl; std::vector contained = tree.select(wall); Implementation Open Cascade NCollection_UBTree Performance Nothing conclusive, querying times for bounding boxes below timer resolution for small-medium sized models. Tree construction + geometry generation linearithmic (?).

Open Graph Description: Rationale By arranging the bounding volumes into a bounding volume hierarchy, the time complexity (the number of tests performed) can be reduced to logarithmic in the number of objects. With such a...

X Description: Rationale By arranging the bounding volumes into a bounding volume hierarchy, the time complexity (the number of tests performed) can be reduced to logarithmic in the number of objects. With such a...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/130

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:01205432-ad02-1a6c-c6ff-2e6cf9057f8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id814E:298B00:7FA0C5:B392D7:6B0481C7
html-safe-nonce411c5440fe7cdaa469364d286342d804643449ce7303a106f5e4876cfe885f2e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTRFOjI5OEIwMDo3RkEwQzU6QjM5MkQ3OjZCMDQ4MUM3IiwidmlzaXRvcl9pZCI6Ijc4MTk5NDYwNDI1MTgxNzYyMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf3d1d53ff8581e0f8bb695d390ea760dba40f2468fe11f46bd6cfd2a9946f9ea
hovercard-subject-tagpull_request:83994822
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
twitter:imagehttps://avatars.githubusercontent.com/u/1096535?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1096535?s=400&v=4
og:image:altRationale By arranging the bounding volumes into a bounding volume hierarchy, the time complexity (the number of tests performed) can be reduced to logarithmic in the number of objects. With such a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F130%2Ffiles
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%2Fpull%2F130%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
aothmshttps://github.com/aothms
IfcOpenShell:masterhttps://github.com/IfcOpenShell/IfcOpenShell/tree/master
aothms:bvh_treehttps://github.com/aothms/IfcOpenShell/tree/bvh_tree
Conversation 10 https://github.com/IfcOpenShell/IfcOpenShell/pull/130
Commits 8 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits
Checks 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Spatial Querying: Implementation of BVH tree for IFC files using NCollection_UBTree https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#top
Show all changes 8 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
5bc211e Implementation of BVH tree for IFC files using NCollection_UBTree aothms Sep 5, 2016 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/5bc211e250b5c0f9fb42cecf1eaae63d4f07aa39
64a70fb Fixes for gcc and OCCT < v6.8 aothms Sep 5, 2016 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/64a70fb5a001267333c5c152c1ce8bfe14452579
63cfe2f Enable BVH selection by TopoDS_Shape aothms Jan 14, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/63cfe2ff50f2de47162b56cf759eaa9361de05f0
aaa58a8 Merge branch 'master' into bvh_tree aothms Jan 14, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/aaa58a89047a4831e5bbae4d63f1dbd5060e8db8
4356258 Small fixes to tree aothms Jan 15, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/4356258f33d4a1319920a8b53bac623804df87e5
04d52f8 Merge unconflicted files aothms Sep 13, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/04d52f8e5f782f493bca163513730a896c1d648e
2b9c71e Merge conflicted files and other changes aothms Sep 13, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/2b9c71e9f88d23ee6a9d99323879bc51193ae75f
a4ad90e Eliminate one warning (some remain) + add tree test aothms Sep 13, 2017 https://github.com/IfcOpenShell/IfcOpenShell/pull/130/commits/a4ad90e99a95bc388a8dce08b62db300608f481d
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
IfcGeom.h https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-efedc4228f13065c3053e9f94e6f728ac5619e459a7454b312a6f005b8d495ed
IfcGeomIterator.h https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-3d77cdead6d1471fa80eacb5bf1d47da322937218ea9789d97abe8b0c8ec4396
IfcGeomRepresentation.cpp https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-1f127c2e64e25937795ebd7fd6b81f77ad8672fe603fb46113cca4a79c260b74
IfcGeomRepresentation.h https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
IfcGeomTree.h https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-203133e6106f36faf5c9277f1b7819bed00a4715e9d2fda12cc8c291606f0907
main.py https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-f1c6238fcd72469c55317acb210f15df2ab55170dd19a5701b21e3226bdfd18b
IfcGeomWrapper.i https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-747519ed7a951027e0f75dadfdfb9592ef23c9447ef6d31dd56a20f9bbb19cc3
IfcPython.i https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-5c2ae84947cc6d9c7babad829e11ff407449360246d8075566a326c6b296a0a2
typemaps_in.i https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-2eead262ec9697916548194c96f7ad5db70ea542aaf727be2b0c85917d9c5e70
tests.py https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-6bf148bb8f54946565ce2af8a0d73e79ada2e91882394af5187474af8b6c4cc8
src/ifcgeom/IfcGeom.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-efedc4228f13065c3053e9f94e6f728ac5619e459a7454b312a6f005b8d495ed
View file https://github.com/aothms/IfcOpenShell/blob/a4ad90e99a95bc388a8dce08b62db300608f481d/src/ifcgeom/IfcGeom.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-efedc4228f13065c3053e9f94e6f728ac5619e459a7454b312a6f005b8d495ed
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-efedc4228f13065c3053e9f94e6f728ac5619e459a7454b312a6f005b8d495ed
src/ifcgeom/IfcGeomIterator.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-3d77cdead6d1471fa80eacb5bf1d47da322937218ea9789d97abe8b0c8ec4396
View file https://github.com/aothms/IfcOpenShell/blob/a4ad90e99a95bc388a8dce08b62db300608f481d/src/ifcgeom/IfcGeomIterator.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-3d77cdead6d1471fa80eacb5bf1d47da322937218ea9789d97abe8b0c8ec4396
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-3d77cdead6d1471fa80eacb5bf1d47da322937218ea9789d97abe8b0c8ec4396
src/ifcgeom/IfcGeomRepresentation.cpphttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-1f127c2e64e25937795ebd7fd6b81f77ad8672fe603fb46113cca4a79c260b74
View file https://github.com/aothms/IfcOpenShell/blob/a4ad90e99a95bc388a8dce08b62db300608f481d/src/ifcgeom/IfcGeomRepresentation.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-1f127c2e64e25937795ebd7fd6b81f77ad8672fe603fb46113cca4a79c260b74
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-1f127c2e64e25937795ebd7fd6b81f77ad8672fe603fb46113cca4a79c260b74
src/ifcgeom/IfcGeomRepresentation.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
View file https://github.com/aothms/IfcOpenShell/blob/a4ad90e99a95bc388a8dce08b62db300608f481d/src/ifcgeom/IfcGeomRepresentation.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-7b0b0ed572b84aca06c9fd489087fb471b69de98be01f6379e252da5a1ea1e05
src/ifcgeom/IfcGeomTree.hhttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files#diff-203133e6106f36faf5c9277f1b7819bed00a4715e9d2fda12cc8c291606f0907
View file https://github.com/aothms/IfcOpenShell/blob/a4ad90e99a95bc388a8dce08b62db300608f481d/src/ifcgeom/IfcGeomTree.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/130/{{ revealButtonHref }}
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/130/files
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.