{"id":32167430,"url":"https://github.com/joedevivo/open_scad","last_synced_at":"2025-10-21T15:29:33.191Z","repository":{"id":62430194,"uuid":"105779840","full_name":"joedevivo/open_scad","owner":"joedevivo","description":"Elixir Library for generating models in OpenSCAD","archived":false,"fork":false,"pushed_at":"2022-07-01T20:38:32.000Z","size":54202,"stargazers_count":21,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T01:50:43.848Z","etag":null,"topics":["3d-printing","elixir","openscad"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/joedevivo.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}},"created_at":"2017-10-04T14:41:38.000Z","updated_at":"2024-11-23T20:47:12.000Z","dependencies_parsed_at":"2022-11-01T20:07:32.639Z","dependency_job_id":null,"html_url":"https://github.com/joedevivo/open_scad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joedevivo/open_scad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedevivo%2Fopen_scad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedevivo%2Fopen_scad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedevivo%2Fopen_scad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedevivo%2Fopen_scad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joedevivo","download_url":"https://codeload.github.com/joedevivo/open_scad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedevivo%2Fopen_scad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280285322,"owners_count":26304483,"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-10-21T02:00:06.614Z","response_time":58,"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":["3d-printing","elixir","openscad"],"created_at":"2025-10-21T15:29:28.467Z","updated_at":"2025-10-21T15:29:33.184Z","avatar_url":"https://github.com/joedevivo.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenSCAD\n\nInteractive Elixir based CAD Modeling with OpenSCAD\n\n[OpenSCAD](http://www.openscad.org) provides a programatic interface for\ngenerating CAD models which can ultimately be 3D printed. While it's syntax\nmakes sense for rendering, it leaves something to be desired when it comes to\nautomating large sets of objects. The language also reads, in my opinion,\nbackwards. I found Elixir's pipe operator to be an elegant way to express these\nmodels.\n\n```elixir\n## Draw a 3mm cube, with it's bottom left corner at 0,0,0\ncube(size: 3) \n## rotate it 90 degrees around the x axis\n|\u003e rotate(v: {90, 0, 0}) \n## move it 10 mm along the y axis (depth)\n|\u003e translate(v: {0, 10, 0}) \n\n# a 1x2x3mm cube, with its center at 0,0,0\ncube(size: {1, 2, 3}, center: true) \n```\n\n## Features\n\n* Models defined in Elixir\n* Reusable components can be included as mix dependencies\n* `iex -S mix` will watch for changes in a project's `./models` directory, and\n  run those scripts.\n* an escript can also be built that watches for changes in the directory\n  specified by the command line, but that version won't import modules from a\n  project's `./lib` dir.\n\n\n## OpenSCAD Documentation\n\n[Documentation](http://www.openscad.org/documentation.html)\n\n[CheatSheet](http://www.openscad.org/cheatsheet/index.html)\n\n## Installation\n\n### OpenSCAD\n\nYou'll need OpenSCAD.\n\n```shell\nbrew cask install openscad\n```\n\nOr download it for your platform [here](http://www.openscad.org/downloads.html)\n\n### Adding to your project\n\nAdd to your project by putting the following in `mix.exs`:\n\n```elixir\n  def application do\n    [extra_applications: [:logger, :open_scad]]\n  end\n  def deps do\n    [{:open_scad, \"~\u003e 0.5.0\"}]\n  end\n```\n\nThis includes the OpenSCAD language and a watcher for filesystem changes.\n\n### Creating Models\n\nIn your projects' `./models` directory, create exs scripts. They can output any\nnumber of `.scad` files.\n\nYour `./lib` directory, you can define modules that represent complex, reusable\nobjects. These are things that you might want to include in other project, which\nyou can do by including your project as a dependency in that projects' mix file.\n\n### Examples\n\nMy [Keyboards](https://github.com/joedevivo/keyboards) repo is built with this\nlibrary, and is a full working example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedevivo%2Fopen_scad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoedevivo%2Fopen_scad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedevivo%2Fopen_scad/lists"}