{"id":26490046,"url":"https://github.com/guysoft/shapedo","last_synced_at":"2025-03-20T07:55:00.182Z","repository":{"id":9141447,"uuid":"10932859","full_name":"guysoft/shapedo","owner":"guysoft","description":"3D diff engine","archived":false,"fork":false,"pushed_at":"2013-06-25T14:46:29.000Z","size":12562,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T18:58:03.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guysoft.png","metadata":{"files":{"readme":"README.markdown","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":"2013-06-25T08:31:50.000Z","updated_at":"2017-01-16T03:10:58.000Z","dependencies_parsed_at":"2022-09-07T03:30:17.664Z","dependency_job_id":null,"html_url":"https://github.com/guysoft/shapedo","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/guysoft%2Fshapedo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2Fshapedo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2Fshapedo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guysoft%2Fshapedo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guysoft","download_url":"https://codeload.github.com/guysoft/shapedo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574733,"owners_count":20474818,"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":[],"created_at":"2025-03-20T07:54:59.640Z","updated_at":"2025-03-20T07:55:00.177Z","avatar_url":"https://github.com/guysoft.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Thingiview.js\n=============\n\nA javascript (using Canvas and WebGL if available) 3D model viewer.  Uses the [Three.js](http://github.com/mrdoob/three.js) 3D Engine.  Check out the [Examples](http://replimat.com/thingiview/examples/).\n\n# Features\n\n* supports binary and ascii STL and OBJ files without requiring any preprocessing, all the parsing is done on the client in javascript\n* everything is done client side in javascript, requires no plugins for most browsers\n* should work in all browsers, including iPhone/iPad (might require [Google Chrome Frame](http://code.google.com/chrome/chromeframe) for IE)\n* uses HTML canvas or automatically detects and enables webgl if browser supports it\n* configurable colors\n* is made of awesome\n\n# Example\n\n\u003cpre\u003e\u003ccode\u003e\n    \u0026lt;script src=\"/javascripts/Three.js\"\u0026gt;\u0026lt;/script\u0026gt;\n    \u0026lt;script src=\"/javascripts/plane.js\"\u0026gt;\u0026lt;/script\u0026gt;\n    \u0026lt;script src=\"/javascripts/thingiview.js\"\u0026gt;\u0026lt;/script\u0026gt;\n\n    \u0026lt;script\u003e\n      window.onload = function() {\n        thingiurlbase = \"/javascripts\";\n        thingiview = new Thingiview(\"viewer\");\n        thingiview.setObjectColor('#C0D8F0');\n        thingiview.initScene();\n        thingiview.loadSTL(\"/objects/cube.stl\");\n      }\n    \u0026lt;/script\u0026gt;\n\n    \u0026lt;div id=\"viewer\" style=\"width:300px;height:300px\"\u0026gt;\u0026lt;/div\u0026gt;\n\u003c/code\u003e\u003c/pre\u003e\n\n# Usage\n\nIt's important that everything is done within window.onload.\n\n## thingiurlbase = \"/javascripts\";\n\nMust be set to the path where the javascript files are located so that related scripts can be loaded dynamically.\n\n## thingiview = new Thingiview(\"id of viewer's container div\");\n\nPass the id of the div to place the viewer into.  You can set the width and height on the css for that div.\n\n## thingiview.initScene();\n\nLoads the scene into the container div.\n\n## thingiview.loadSTL(\"/path/to/model.stl\"); or thingiview.loadOBJ(\"/path/to/model.obj\");\n\nMake sure you pass the full url path to the model file you want to load.  This will make an ajax call to the server to fetch it.\n  \n## thingiview.setShowPlane(true);\n\n`true or false`.  Show or hide the 100x100 grid plane under the object.\n  \n## thingiview.setBackgroundColor('#ffffff');\n\nSets the background color of the viewer's container.\n  \n## thingiview.setObjectMaterial('solid');\n\n`solid or wireframe`.  Changes the object's material.\n  \n## thingiview.setObjectColor('#C0D8F0');\n  \nYep, it sets the object's color.\n  \n## thingiview.setRotation(true);\n\n`true or false`.  This causes the object to slowly rotate around the z axis.\n  \n## thingiview.setCameraView('top');\n\nPossible values include: `top, side, bottom, diagonal`.  Resets the camera view to the desired angle.\n  \n## thingiview.setCameraZoom(5);\n\nPass a positive number to zoom the camera in or a negative number to zoom out.\n\n## thingiview.displayAlert(\"This is a message\");\n\nDisplays the text passed in a window inside the viewer with an Ok button to then hide it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2Fshapedo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguysoft%2Fshapedo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguysoft%2Fshapedo/lists"}