Skip to content

Commit

Permalink
-> 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw committed Oct 8, 2020
1 parent 529ee78 commit a64f84c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ A bare vertex color example.

## Installation

Via npm ( `npm i ycw/three-csg-modeller#v0.1.3` )
Via npm ( `npm i ycw/three-csg-modeller#v0.1.4` )

```js
import Modeller from "three-csg-modeller"
Expand All @@ -32,7 +32,7 @@ import Modeller from "three-csg-modeller"
Via cdn

```js
import Modeller from "https://cdn.jsdelivr.net/gh/ycw/[email protected].3/src/index.js"
import Modeller from "https://cdn.jsdelivr.net/gh/ycw/[email protected].4/src/index.js"
```

## Usage
Expand All @@ -59,9 +59,7 @@ const mesh = model.build();
- Construct a model from `mesh`, return a `Model` instance.
- Input `mesh` must hold a `BufferGeometry` instead of `Geometry`. That
`BufferGeometry` must contain attribute `position` and may optionally
include attributes `normal`, `uv` and `color`.
- Both indexed and non-indexed buffer geometry are supported.
- Multi-material is supported.
include attributes `normal`, `uv` and `color`.

### `Model`

Expand All @@ -79,8 +77,7 @@ const mesh = model.build();
- This model remains unchanged.

`.build()`
- Build a `Mesh` from model. The mesh holds a "indexed" `BufferGeoemtry`, its
render groups have been grouped by materials; unused materials are plucked.
- Build a `Mesh` from model. The mesh holds an "indexed" `BufferGeometry`.

## Credits

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "three-csg-modeller",
"version": "0.1.3",
"version": "0.1.4",
"description": "Solid mesh modeling for three.js",
"author": "ycw (https://github.com/ycw)",
"main": "src/index.js",
Expand Down

0 comments on commit a64f84c

Please sign in to comment.