-
Notifications
You must be signed in to change notification settings - Fork 137
Editor scene #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Editor scene #438
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c61486e
SetProperties working
elalish 573619d
cleanup
elalish 975884b
added Node
elalish 16a8711
switched to Vite
elalish 0b57308
scene export working
elalish c5bd224
Merge branch 'master' of github.com:elalish/manifold into editorScene
elalish d44d6b8
vertex color output works
elalish 5891f2f
added unlit
elalish 4b374fb
fixed rename bug
elalish 091fabe
switch worker to TS
elalish 795e946
don't fail on empty manifolds
elalish e95a3f1
reusing meshes
elalish 5f86e90
cleanup, updated gyroid example
elalish dd7aad6
8000
change signature of setPropFunc
elalish 014505e
updated examples
elalish 8769d7a
add dist for githack testing
elalish ab0f7c8
Revert "add dist for githack testing"
elalish d0eca7f
remove duplicate files
elalish f4cb2d7
updated docs
elalish 974bee1
fixed some bugs
elalish c7ebef7
multi-material working
elalish 2e8c89a
switched to vitest
elalish 8be584b
tests pass
elalish 9dc0672
fixed examples
elalish b8e8891
fix CI
elalish cbba6a2
update deployment
elalish 40f5bc4
tweak logging
elalish 4be5fd8
cleanup
elalish fcbbf22
fix copy
elalish 7d57f66
updated READMEs
elalish 8e5c3fc
extend timeout
elalish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# WASM/JS Examples | ||
|
||
This is the home of our editor, [ManifoldCAD.org](https://manifoldcad.org/), as well as our other public examples of integrations with `three.js`, `<model-viewer>`, and `glTF`. Included are `manifold-gltf.js` and `gltf-io.js`, which are intended to be fairly general-purpose libraries for interfacing between manifolds and glTF. We should probably make them into their own npm package at some point. | ||
|
||
## Local development | ||
|
||
First, follow the directions in the root README to get your C++ build environment set up and working for WASM. From this directory (`bindings/wasm/examples/`) you can test the JS bindings by running: | ||
|
||
``` | ||
npm install | ||
npm test | ||
``` | ||
|
||
To develop the manifoldCAD.org editor as well as our other example pages, run | ||
``` | ||
npm run dev | ||
``` | ||
which will serve the pages, watch for changes, and automatically rebuild and refresh. This build step doesn't do TS type-checking, so to verify everything is correct (beyond VSCode's TS linting), run | ||
``` | ||
npm run build | ||
``` | ||
See `package.json` for other useful scripts. | ||
|
||
Note that the `emcmake` command automatically copies your WASM build into `built/`, (here, not just under the `buildWASM` directory) which is then packaged by Vite into `dist/assets/`. | ||
|
||
When testing [ManifoldCAD.org](https://manifoldcad.org/) (either locally or the deployed version) note that it uses a service worker for faster loading. This means you need to open the page twice to see updates (the first time loads the old version and caches the new one, the second time loads the new version from cache). To see changes on each reload, open Chrome dev tools, go to the Application tab and check "update on reload". |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's now more to deploy, but it's simpler.