{"id":30294499,"url":"https://github.com/stefnotch/math3model","last_synced_at":"2025-08-17T01:35:23.928Z","repository":{"id":307360399,"uuid":"990584386","full_name":"stefnotch/math3model","owner":"stefnotch","description":"My masters thesis project","archived":false,"fork":false,"pushed_at":"2025-07-30T19:37:59.000Z","size":22221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T22:14:36.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefnotch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-26T10:34:49.000Z","updated_at":"2025-07-30T19:38:03.000Z","dependencies_parsed_at":"2025-07-30T22:25:58.694Z","dependency_job_id":null,"html_url":"https://github.com/stefnotch/math3model","commit_stats":null,"previous_names":["stefnotch/math3model"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/stefnotch/math3model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fmath3model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fmath3model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fmath3model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fmath3model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefnotch","download_url":"https://codeload.github.com/stefnotch/math3model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefnotch%2Fmath3model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796216,"owners_count":24647319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-17T01:35:15.896Z","updated_at":"2025-08-17T01:35:23.916Z","avatar_url":"https://github.com/stefnotch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Math3Model: Web-Based Real-Time Parametric Modeling Tool\n\nWelcome to [Math3Model](https://stefnotch.github.io/math3model/), an online editor for parametric modeling of objects described through mathematical functions. It features two ways of user input: Code-based modeling and node-based modeling.\n\n## What is Math3Model?\n\nMath3Model is a tool that allows the instant rendering of mathematical functions given in parametric form (with parameters `u` and `v` as input). One simple example would be rendering a sphere model in parametric format:\n\n```wgsl\nfn sampleObject(input: vec2f) -\u003e vec3f {\n    let parameters = vec2(input.x, 2.0 * input.y) * 3.14159265359;\n    let x = sin(parameters[0]) * cos(parameters[1]);\n    let y = sin(parameters[0]) * sin(parameters[1]);\n    let z = cos(parameters[0]);\n    return vec3(x, y, z);\n}\n```\n\n_Listing 1:_ Code for describing a sphere model in our code editor.\n\nThe code from Listing 1 produces the output shown in Figure 1.\n\n![Parametrically modelled sphere](docs/resources/sphere-model.png \"Parametrically modelled sphere\")     \n_Figure 1:_ Parametrically described sphere, rendered with Math2Model.\n\n## Who is Math2Model for?\n\nMath2Model is a tool for everyone who wants to render mathematical functions in real time or create parametric models with feedback in real time. It features two user interfaces: one for programmers, where they can directly describe mathematical objects in source code (see Figure 2), and another for non-programmers, which allows parametric modeling through a node editor (see Figure 3).\n\n![Math2Model's code editor](docs/resources/sphere-code-editor.png \"Math2Model's code editor\")      \n_Figure 2:_ Image of Math2Model's code editor for describing parametric objects in [WGSL](https://www.w3.org/TR/WGSL/) source code.\n\n![Math2Model's node editor](docs/resources/sphere-node-editor.png \"Math2Model's node editor\")     \n_Figure 3:_ Image of Math2Model's node editor for describing parametric objects through graphical modeling.\n\n## How does it work?\n\nMath2Model implements a version of the rendering technique presented in [Fast Rendering of Parametric Objects on Modern GPUs](https://www.cg.tuwien.ac.at/research/publications/2024/unterguggenberger-2024-fropo/), adapted to a web implementation using the [WebGPU](https://www.w3.org/TR/webgpu/) graphics API.\n\nIt uses a level-of-detail (LOD) stage to create enough geometric detail. It renders sufficiently subdivided patches of input parameters in order to achieve close to pixel-perfect geometric precision.\n\n## Contributing\n\nRead our [CONTRIBUTING.md](./CONTRIBUTING.md)\n\n## Project Setup\n\nThis project depends on Node.js with npm and Rust. \n\n1. Install Node.js and Rust\n2. `npm install` in the main folder\n3. `cd math3render` and `npm install`\n\nNow the dependencies have been installed.\n\nTo run it\n1. `npm run dev` to start up the web server\n2. `cd math3render` and `npm run build` in a separate terminal to build the WASM package.\n3. `npm run docs:dev` to run the documentation page\n\nAs for everything else, check out our [CONTRIBUTING.md](./CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefnotch%2Fmath3model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefnotch%2Fmath3model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefnotch%2Fmath3model/lists"}