René's URL Explorer Experiment


Title: Add Geometry API object by tychedelia · Pull Request #48 · processing/libprocessing · GitHub

Open Graph Title: Add Geometry API object by tychedelia · Pull Request #48 · processing/libprocessing

X Title: Add Geometry API object by tychedelia · Pull Request #48 · processing/libprocessing

Description: Closes #23. Adds 3 new API objects: Geometry VertexLayout Attribute This is a lot of code, but for the most part this is really repetitive. Let's walk through the basic flow of defining a geometry mesh: A Geometry requires a VertexLayout which describes the physical layout of its vertex buffer. A VertexLayout is comprised of Attribute which are a unique identifier and a format (how many components, float vs int, etc). A user can build a mesh by pushing vertex by vertex. When building a mesh, we track a "current" value for all attributes but position. This allows the user to only change attributes like colors or normals when necessary rather than requiring them to repeatedly define those attrs. By default, there are four special attributes: position, normals, uv, and color. These are the attrs that most users will interact with. However, we also allow users to add custom attributes that represent whatever property of a mesh they want. This is currently not very useful without the ability to define custom shaders, but will be more important later. Consequently, for most operations we have a "special" pos/normal/color/uv method and then a generic custom attribute method. Implementation For the most part, this is just a wrapper around a Bevy Mesh asset. A Mesh is a RenderAsset in Bevy terms, which means that it has a CPU representation that is extracted and uploaded to the GPU. Typically, for large meshes, we would "unload" them from being resident in CPU memory and just keep them in VRAM. However, Processing allows doing manual vertex animation on the CPU. As such, we currently provide get/set operations that modify the CPU mesh. We'll want to consider this as we add support for shaders, particularly compute, as this will introduce possible "source of truth" problems, e.g. if a compute shader modifies vertices that are stored in a storage buffer. Future work Bevy by default will interleave vertex data in a single vertex buffer. This is an optimal representation for most typical modern GPU pipelines and allows packing multiple meshes into a single buffer. However, there are still some compelling reasons that one might want to split out attributes into their own buffers, for example in order to run a compute shader over a particular attribute. I've done some preliminary work to enable this on Bevy's side. It's not super urgent and probably pretty niche but is worth bringing up. Screen.Recording.2025-12-25.at.12.32.11.PM.mov

Open Graph Description: Closes #23. Adds 3 new API objects: Geometry VertexLayout Attribute This is a lot of code, but for the most part this is really repetitive. Let's walk through the basic flow of defining a geo...

X Description: Closes #23. Adds 3 new API objects: Geometry VertexLayout Attribute This is a lot of code, but for the most part this is really repetitive. Let's walk through the basic flow of defining a...

Opengraph URL: https://github.com/processing/libprocessing/pull/48

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:66c483df-7c81-5b46-830e-5fe7dd329503
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idE908:3DC8AB:BE3736:104CC6D:696FF300
html-safe-nonce29cd843ab7ae36d31b97c13feec24eca9201c348bce8c7a4d981ce9d3d2069f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTA4OjNEQzhBQjpCRTM3MzY6MTA0Q0M2RDo2OTZGRjMwMCIsInZpc2l0b3JfaWQiOiIxNDk2NTM4MDY3MDg0NzY4MDAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaacd34a1147fe0334248212084e8b57dd6404f05f2eb9160dc5190e2ee8e9a21
hovercard-subject-tagpull_request:3131687092
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/processing/libprocessing/pull/48/checks
twitter:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10366310?s=400&v=4
og:image:altCloses #23. Adds 3 new API objects: Geometry VertexLayout Attribute This is a lot of code, but for the most part this is really repetitive. Let's walk through the basic flow of defining a geo...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2b218dbdee134592a2dbfabd454a1070986f1fbedb8334bf06b8f2ccc3449130
turbo-cache-controlno-cache
go-importgithub.com/processing/libprocessing git https://github.com/processing/libprocessing.git
octolytics-dimension-user_id1617169
octolytics-dimension-user_loginprocessing
octolytics-dimension-repository_id1101329545
octolytics-dimension-repository_nwoprocessing/libprocessing
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1101329545
octolytics-dimension-repository_network_root_nwoprocessing/libprocessing
turbo-body-classeslogged-out env-production page-responsive full-width full-width-p-0
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebcaac379a58a3ed99a1b0502e2a8f5cfd3a7b54b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F48%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F48%2Fchecks
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=processing%2Flibprocessing
Reloadhttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Reloadhttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Reloadhttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
processing https://patch-diff.githubusercontent.com/processing
libprocessinghttps://patch-diff.githubusercontent.com/processing/libprocessing
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Flibprocessing
Fork 3 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Flibprocessing
Star 22 https://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Flibprocessing
Code https://patch-diff.githubusercontent.com/processing/libprocessing
Issues 25 https://patch-diff.githubusercontent.com/processing/libprocessing/issues
Pull requests 0 https://patch-diff.githubusercontent.com/processing/libprocessing/pulls
Actions https://patch-diff.githubusercontent.com/processing/libprocessing/actions
Projects 0 https://patch-diff.githubusercontent.com/processing/libprocessing/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/processing/libprocessing/security
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Insights https://patch-diff.githubusercontent.com/processing/libprocessing/pulse
Code https://patch-diff.githubusercontent.com/processing/libprocessing
Issues https://patch-diff.githubusercontent.com/processing/libprocessing/issues
Pull requests https://patch-diff.githubusercontent.com/processing/libprocessing/pulls
Actions https://patch-diff.githubusercontent.com/processing/libprocessing/actions
Projects https://patch-diff.githubusercontent.com/processing/libprocessing/projects
Security https://patch-diff.githubusercontent.com/processing/libprocessing/security
Insights https://patch-diff.githubusercontent.com/processing/libprocessing/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
tychedeliahttps://patch-diff.githubusercontent.com/tychedelia
processing:mainhttps://patch-diff.githubusercontent.com/processing/libprocessing/tree/main
tychedelia:geomhttps://patch-diff.githubusercontent.com/tychedelia/libprocessing/tree/geom
Conversation 3 https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48
Commits 7 https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/commits
Checks 4 https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Files changed https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/files
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
Sign in for the full log viewhttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F48%2Fchecks
Add Geometry API object https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks#top
Please reload this pagehttps://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks
CI on: pull_request https://patch-diff.githubusercontent.com/processing/libprocessing/actions/runs/20544694523
Test https://patch-diff.githubusercontent.com/processing/libprocessing/actions/runs/20544694523/job/59013646129?pr=48
Format https://patch-diff.githubusercontent.com/processing/libprocessing/actions/runs/20544694523/job/59013646136?pr=48
Clippy https://patch-diff.githubusercontent.com/processing/libprocessing/actions/runs/20544694523/job/59013646132?pr=48
Build https://patch-diff.githubusercontent.com/processing/libprocessing/actions/runs/20544694523/job/59013646131?pr=48
Run tests https://patch-diff.githubusercontent.com/processing/libprocessing/pull/48/checks#annotation:5:374
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

Viewport: width=device-width


URLs of crawlers that visited me.