-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented typedoc documentation (#907)
* implemented typedoc documentation * exclude docs output dir * added bindings/wasm/docs dir to git ignore list * Added js docs to GitHub deploy workflow * include manifold global types * js docs - added missing comments * fixed formatting * added missing comments * added missing docs --------- Co-authored-by: Emmett Lalish <[email protected]>
- Loading branch information
Showing
8 changed files
with
619 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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 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,33 @@ | ||
# Get Started | ||
|
||
|
||
## Installation | ||
|
||
In your project root folder run: | ||
|
||
```bash | ||
npm i manifold-3d | ||
``` | ||
|
||
To start using Manifold, import it and initialize it: | ||
|
||
```js | ||
import Module from 'manifold-3d'; | ||
|
||
const wasm = await Module(); | ||
wasm.setup(); | ||
const { Manifold } = wasm; | ||
``` | ||
|
||
Intro example | ||
|
||
```js | ||
const {cube, sphere} = Manifold; | ||
const box = cube([100, 100, 100], true); | ||
const ball = sphere(60, 100); | ||
const result = box.subtract(ball); | ||
``` | ||
|
||
## Next steps | ||
|
||
In order to visualize Manifold mesh using Three.js library please check out our example [here](https://github.com/elalish/manifold/blob/master/bindings/wasm/examples/three.ts) |
This file contains 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
Oops, something went wrong.