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: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0f56d8af-2aa6-e0c8-5366-a22c016944f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAAC0:C9EB4:332884E:4304345:696B8C36
html-safe-noncefa0c2468b9e695647cc383f2d62676463079c8f4d83c3de95c39dd393f4634f7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUMwOkM5RUI0OjMzMjg4NEU6NDMwNDM0NTo2OTZCOEMzNiIsInZpc2l0b3JfaWQiOiI2MDI5MzY3OTIyMDU0NjI1ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccf19caabea873a581432de523191d4b0debb279eb2466dfe0408d0b946af4cf6
hovercard-subject-tagpull_request:3131687092
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/processing/libprocessing/pull/48/files
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
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/processing/libprocessing/pull/48/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F48%2Ffiles
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocessing%2Flibprocessing%2Fpull%2F48%2Ffiles
Sign up https://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=processing%2Flibprocessing
Reloadhttps://github.com/processing/libprocessing/pull/48/files
Reloadhttps://github.com/processing/libprocessing/pull/48/files
Reloadhttps://github.com/processing/libprocessing/pull/48/files
processing https://github.com/processing
libprocessinghttps://github.com/processing/libprocessing
Notifications https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Fork 3 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Star 20 https://github.com/login?return_to=%2Fprocessing%2Flibprocessing
Code https://github.com/processing/libprocessing
Issues 25 https://github.com/processing/libprocessing/issues
Pull requests 0 https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects 0 https://github.com/processing/libprocessing/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/processing/libprocessing/security
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/files
Insights https://github.com/processing/libprocessing/pulse
Code https://github.com/processing/libprocessing
Issues https://github.com/processing/libprocessing/issues
Pull requests https://github.com/processing/libprocessing/pulls
Actions https://github.com/processing/libprocessing/actions
Projects https://github.com/processing/libprocessing/projects
Security https://github.com/processing/libprocessing/security
Insights https://github.com/processing/libprocessing/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fprocessing%2Flibprocessing%2Fissues%2Fnew%2Fchoose
tychedeliahttps://github.com/tychedelia
processing:mainhttps://github.com/processing/libprocessing/tree/main
tychedelia:geomhttps://github.com/tychedelia/libprocessing/tree/geom
Conversation 3 https://github.com/processing/libprocessing/pull/48
Commits 7 https://github.com/processing/libprocessing/pull/48/commits
Checks 4 https://github.com/processing/libprocessing/pull/48/checks
Files changed https://github.com/processing/libprocessing/pull/48/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/files
Add Geometry API object https://github.com/processing/libprocessing/pull/48/files#top
Show all changes 7 commits https://github.com/processing/libprocessing/pull/48/files
e5145c5 Add Geometry API object tychedelia Dec 10, 2025 https://github.com/processing/libprocessing/pull/48/commits/e5145c5a1db1c84cf585c0881d0ed11715ebead3
16ff0ac Fmt. tychedelia Dec 26, 2025 https://github.com/processing/libprocessing/pull/48/commits/16ff0ac0002836a27ae6cc1bae341bca9a3d736d
3f73945 Rewrite to fully normalize on entities. tychedelia Dec 26, 2025 https://github.com/processing/libprocessing/pull/48/commits/3f73945f8113c34362e4bf503d127541bd9d3b1f
723ccf9 More cleanup. tychedelia Dec 26, 2025 https://github.com/processing/libprocessing/pull/48/commits/723ccf934ea63ce386d93672af3f4a848f1f2e72
dcb48d9 More cleanup. tychedelia Dec 26, 2025 https://github.com/processing/libprocessing/pull/48/commits/dcb48d97a5e44146edd4edcf60c11b52426ae2f0
39dc1e8 Clippy.? tychedelia Dec 27, 2025 https://github.com/processing/libprocessing/pull/48/commits/39dc1e8779aa4b3df9fd255eba02e7dbbce2ff1c
cf1b1bf Promote constants. tychedelia Dec 27, 2025 https://github.com/processing/libprocessing/pull/48/commits/cf1b1bfa84fd7b6d37b89175c3d31c3793223580
Clear filters https://github.com/processing/libprocessing/pull/48/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/files
Cargo.toml https://github.com/processing/libprocessing/pull/48/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
lib.rs https://github.com/processing/libprocessing/pull/48/files#diff-0c768253ad3c8c71da78e15fe59b798eeedad6c26c4912c9e32f64e60ae704b9
error.rs https://github.com/processing/libprocessing/pull/48/files#diff-51dc98add553e4ebb09f286586e48b1a585e77d74df40ffacdf6e8acda982a99
attribute.rs https://github.com/processing/libprocessing/pull/48/files#diff-36f70c4ee14f089950df127a07da4a894f3f7ce3c348a79962ba6a5733f5f9e7
layout.rs https://github.com/processing/libprocessing/pull/48/files#diff-0efd8a608457e19ea7fcfaf0e29a4483d6b7749ad9257d5bdf5250e6cdffc1b2
mod.rs https://github.com/processing/libprocessing/pull/48/files#diff-102e73fb71cd67a4c945746d99f57e3edff1669e3ec4bd054d32c2bea3e5ad09
lib.rs https://github.com/processing/libprocessing/pull/48/files#diff-3a676e70510cf46e1ceca32379dff6cb444fc4c05c436b673adc97312aa9e2f4
command.rs https://github.com/processing/libprocessing/pull/48/files#diff-bf1a34fca064a506cb2ddba367913fba75cbade65f832a63767d158451eb6959
mod.rs https://github.com/processing/libprocessing/pull/48/files#diff-def00a8930f97ded72faefe46cdd021e7b028f21e0d726feea9b9ceb13ef9463
api.md https://github.com/processing/libprocessing/pull/48/files#diff-9eddf4dc51bf6a0125ca7fb094468ad284112270385c41cebce4f8f0a29620ab
animated_mesh.rs https://github.com/processing/libprocessing/pull/48/files#diff-911894eca3ac2bdab1c795c05adb4a01c3c6db8fe450e2a7b8f90140de5ade3e
box.rs https://github.com/processing/libprocessing/pull/48/files#diff-619d76f40f4f61cd48a76b21b06a96da53f023c85d1cff4bbca8f9a736eee849
custom_attribute.rs https://github.com/processing/libprocessing/pull/48/files#diff-52a4d6fd4549ca50e2f12eb5486867ab789c69a057d278c97122e4052a132e1f
Cargo.tomlhttps://github.com/processing/libprocessing/pull/48/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
View file https://github.com/tychedelia/libprocessing/blob/cf1b1bfa84fd7b6d37b89175c3d31c3793223580/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/processing/libprocessing/pull/48/{{ revealButtonHref }}
https://github.com/processing/libprocessing/pull/48/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
https://github.com/processing/libprocessing/pull/48/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/files
Please reload this pagehttps://github.com/processing/libprocessing/pull/48/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

Viewport: width=device-width


URLs of crawlers that visited me.