{"id":16751022,"url":"https://github.com/elerac/stl-creator","last_synced_at":"2025-04-10T15:38:36.368Z","repository":{"id":114611927,"uuid":"265438990","full_name":"elerac/stl-creator","owner":"elerac","description":"Create and edit STL files in C++","archived":false,"fork":false,"pushed_at":"2020-06-17T15:32:06.000Z","size":125,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:21:26.032Z","etag":null,"topics":["3d-models","cpp","stl-files"],"latest_commit_sha":null,"homepage":"https://www.slideshare.net/RyotaMaeda/how-to-use-stl-creator","language":"C++","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/elerac.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":"2020-05-20T03:25:25.000Z","updated_at":"2025-01-06T09:29:35.000Z","dependencies_parsed_at":"2023-05-10T20:45:12.229Z","dependency_job_id":null,"html_url":"https://github.com/elerac/stl-creator","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/elerac%2Fstl-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elerac%2Fstl-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elerac%2Fstl-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elerac%2Fstl-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elerac","download_url":"https://codeload.github.com/elerac/stl-creator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243482,"owners_count":21071054,"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-models","cpp","stl-files"],"created_at":"2024-10-13T02:42:51.511Z","updated_at":"2025-04-10T15:38:36.360Z","avatar_url":"https://github.com/elerac.png","language":"C++","readme":"# STL creator\ncreate and edit STL files in C++ (Version of C++ is 11 or higher.)\n\nYou can see how to use STL-creator from [here](https://www.slideshare.net/secret/LV0MNJfI1xszLl).\n\n```cpp\n#include \"vec3.h\"\n#include \"triangle.h\"\n#include \"mesh.h\"\n\nint main() {\n  Vec3 p1(0, 0, 1), p2(1, 0, 1), p3(1, 1, 1), p4(0, 1, 1);\n  \n  Mesh mesh1, mesh2, mesh3, mesh4;\n  Mesh mesh_dst;\n  \n  //三角形の追加\n  Triangle triangle(p1, p2, p3);\n  mesh1.add(triangle);\n  \n  //四角形の作成\n  mesh2 = create_quadrilateral(p1, p2, p3, p4);\n  mesh2.translate(Vec3(0, 0, -1.5));\n  \n  //立方体の作成\n  mesh3 = create_cube();\n  mesh3.scale(Vec3(1, 0.5, 2.5));\n  mesh3.rotate(30, Vec3(0, 0, 1));\n  \n  //STLファイルの入力\n  mesh4 = stl_read(\"sphere-ascii.stl\");\n  \n  //メッシュの統合\n  mesh_dst = mesh1 + mesh2 + mesh3 + mesh4;\n  \n  //STLファイルの出力\n  mesh_dst.stl_write(\"example.stl\");\n}\n```\n\n## duplicate.cpp\n![duplicate_result](https://github.com/elerac/stl-creator/blob/master/images/duplicate_result.jpg)\n\n## flip.cpp\n![flip_result](https://github.com/elerac/stl-creator/blob/master/images/flip_result.jpg)\n\n## heightfield.cpp\n![heightfield_result](https://github.com/elerac/stl-creator/blob/master/images/heightfield_result.jpg)\n\n## stamp.cpp\n![stamp_result](https://github.com/elerac/stl-creator/blob/master/images/stamp_result.jpg)\n\n## function.cpp\n![function_result](https://github.com/elerac/stl-creator/blob/master/images/function_result.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felerac%2Fstl-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felerac%2Fstl-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felerac%2Fstl-creator/lists"}