{"id":18070233,"url":"https://github.com/sameer/orient-stl","last_synced_at":"2025-04-12T00:40:29.233Z","repository":{"id":37601418,"uuid":"172123234","full_name":"sameer/orient-stl","owner":"sameer","description":"Find the best orientation for 3D printing (FFF/FDM) STL files using constrained global nonlinear optimization (DIRECT algorithm)","archived":false,"fork":false,"pushed_at":"2023-07-06T21:33:49.000Z","size":6298,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T00:49:56.938Z","etag":null,"topics":["3d-printing","mathematica","matplotlib","nonlinear-optimization","openscad","python","stl"],"latest_commit_sha":null,"homepage":"","language":"Mathematica","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sameer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-02-22T19:28:08.000Z","updated_at":"2025-02-01T09:21:44.000Z","dependencies_parsed_at":"2024-10-31T08:25:12.067Z","dependency_job_id":"dd6a432c-c883-43ae-a01a-2f5d3d80a727","html_url":"https://github.com/sameer/orient-stl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Forient-stl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Forient-stl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Forient-stl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameer%2Forient-stl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameer","download_url":"https://codeload.github.com/sameer/orient-stl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501960,"owners_count":21114681,"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","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":["3d-printing","mathematica","matplotlib","nonlinear-optimization","openscad","python","stl"],"created_at":"2024-10-31T08:24:34.490Z","updated_at":"2025-04-12T00:40:29.204Z","avatar_url":"https://github.com/sameer.png","language":"Mathematica","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orient-stl: MATH4630 Nonlinear Optimization Final Project\n\nSee [proposal.pdf](proposal.pdf) and [report.pdf](report.pdf) for more details on implementation and theory.\n\n## Calculations in Mathematica\n\nTo verify the correctness of my objective function, I also mostly implemented it in Mathematica. See [calculations.pdf](calculations.pdf).\n\n## Running\n\n### Orient an STL file\n\n```bash\npython main.py examples/cube.stl orient\n```\n\n### Plot the objective function value for an STL file\n\n```bash\npython main.py examples/cube.stl plot\n```\n\n## Demo with cut cylinder.stl\n\n### Original part orientation\n\n![figures/Figure_1.png](figures/Figure_1.png)\n\n### Corrected part orientation\n\n```bash\n\u003e python main.py examples/cut cylinder.stl orientplot\n`File \"examples/cut cylinder.stl\" oriented with angles [-2.62 -0.  ] and value 0.12231975793838501 in 586 ms`\n```\n\n![figures/Figure_2.png](figures/Figure_2.png)\n\n### Function value plot\n\n```bash\n\u003e python main.py examples/cut cylinder.stl plot\nPlotting function value for examples/cut cylinder.stl\nMinimum value of 1.2497923374176025 found\n```\n\n![figures/Figure_3.png](figures/Figure_3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer%2Forient-stl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameer%2Forient-stl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameer%2Forient-stl/lists"}