{"id":13577671,"url":"https://github.com/OpenWebCAD/node-occ","last_synced_at":"2025-04-05T12:31:04.892Z","repository":{"id":5917449,"uuid":"7136923","full_name":"OpenWebCAD/node-occ","owner":"OpenWebCAD","description":"build BREP Solids with OpenCascade and NodeJS - 3D Modeling","archived":false,"fork":false,"pushed_at":"2023-07-20T08:00:19.000Z","size":9312,"stargazers_count":328,"open_issues_count":14,"forks_count":80,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-06T15:19:43.563Z","etag":null,"topics":["3d","3d-models","boundary-model","cad","computer-aided-design","constructive-solid-geometries","csg","iges","nodejs","opencascade","step","threejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/OpenWebCAD.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["erossignon"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2012-12-12T20:10:41.000Z","updated_at":"2025-02-27T17:35:51.000Z","dependencies_parsed_at":"2023-01-13T13:45:11.015Z","dependency_job_id":"079c0f32-9992-4b2c-95bc-41045f70d7c0","html_url":"https://github.com/OpenWebCAD/node-occ","commit_stats":{"total_commits":318,"total_committers":7,"mean_commits":45.42857142857143,"dds":0.0911949685534591,"last_synced_commit":"e135bd1f6dc4ff96866179184317b8abf30f2fa6"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenWebCAD%2Fnode-occ","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenWebCAD%2Fnode-occ/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenWebCAD%2Fnode-occ/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenWebCAD%2Fnode-occ/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenWebCAD","download_url":"https://codeload.github.com/OpenWebCAD/node-occ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247338644,"owners_count":20922991,"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","3d-models","boundary-model","cad","computer-aided-design","constructive-solid-geometries","csg","iges","nodejs","opencascade","step","threejs"],"created_at":"2024-08-01T15:01:23.457Z","updated_at":"2025-04-05T12:30:59.878Z","avatar_url":"https://github.com/OpenWebCAD.png","language":"JavaScript","funding_links":["https://github.com/sponsors/erossignon"],"categories":["JavaScript"],"sub_categories":[],"readme":"# node-occ\n\nOpenCascade NodeJS package for solid modeling.\n\nThis package provides _solid construction_ to NodeJS.\nIt provides a simple yet powerful javascript api to construct 3D geometry models.\n\nThis project comes with a set of V8 wrappers around OpenCascade API and a sample web application.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/s5eaux89v2c0wmu4?svg=true)](https://ci.appveyor.com/project/erossignon/node-occ-6ktv4)\n\n### quick example\n\n```javascript\nvar occ = require(\"node-occ\").occ;\n\n// construct a box\nvar box = occ.makeBox([0, 0, 0], [100, 100, 50]);\n\n// construct a cylinder\nvar cyl = occ.makeCylinder([50, 50, -10], [50, 50, 60], 40);\n\n// cut the box with cylinder\nbox = occ.cut(box, cyl);\n\n// save result to a STEP file\nocc.writeSTEP(\"somefile.step\", box);\n```\n\n### video\n\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=swUPSa2zyrY\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/swUPSa2zyrY/0.jpg\" \nalt=\"node occ\" width=\"240\" height=\"180\" border=\"10\" /\u003e\u003c/a\u003e\n\n### list of features\n\n- creation of basic shapes ( box, cylinder , cone , torus )\n- boolean operation ( fuse , common , cut )\n- features ( draftAngle)\n- solid properties ( faces, edges, vertices, area , volume )\n- import export ( STEP BREP )\n\n### sample web application\n\n[node-occ-sample](https://github.com/erossignon/node-occ-sample): sample nodejs/express REST API server to build solid , based on threejs\n\n## installing node-occ from npm\n\n```\n$npm install node-occ\n```\n\n## building node-occ from source : prerequisites\n\n#### on (linux Ubuntu\n\n(use nodejs 12 or 14)\n\n```bash\n# installing nodejs and gyp utility to build extensions\nsudo apt-get install nodejs npm\nsudo npm install node-pre-gyp -g\nsudo npm install mocha@7 -g\n\n#installing cmake\nsudo apt-get install cmake cmake-curses-gui g++ build-essential libtbb2\n\n# ------------------------------------\ngit clone --recursive https://github.com/erossignon/node-occ.git\ncd node-occ\n\n# download prebuild OpenCascade Library and header files\nbash ./prepare_node.sh\n\n#\nexport OCCT_PACKAGE=occt-7.2.0\nexport LD_LIBRARY_PATH=`pwd`/${OCCT_PACKAGE}/lib:$LD_LIBRARY_PATH\nnpm install --build-from-source\n\n# verify that everything is working OK\nmake test\n```\n\n### on windows\n\n- follow the tutorial in the [wiki](https://github.com/erossignon/node-occ/wiki)\n\n## dependencies:\n\n- threejs : https://github.com/mrdoob/three.js\n\n## acknowledgment:\n\n- OpenCascade : http://www.opencascade.org\n- occmodel : https://github.com/tenko/occmodel\n- ShapeSmith : https://github.com/bjnortier/shapesmith\n\n## MIT License\n\nCopyright © 2012-2022 E. Rossignon\nCopyright © 2022 Sterfive SAS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenWebCAD%2Fnode-occ","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenWebCAD%2Fnode-occ","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenWebCAD%2Fnode-occ/lists"}