frenet-serret-frames 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +10 -1
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.0.3](https://github.com/dmnsgn/frenet-serret-frames/compare/v3.0.2...v3.0.3) (2023-07-31)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * missing path-tangents dependency ([9f7543b](https://github.com/dmnsgn/frenet-serret-frames/commit/9f7543bd52663c7f72e87578c4e29b0d486159aa))
11
+
12
+
13
+
14
+ ## [3.0.2](https://github.com/dmnsgn/frenet-serret-frames/compare/v3.0.1...v3.0.2) (2023-07-31)
15
+
16
+
17
+
5
18
  ## [3.0.1](https://github.com/dmnsgn/frenet-serret-frames/compare/v3.0.0...v3.0.1) (2023-07-31)
6
19
 
7
20
 
package/README.md CHANGED
@@ -29,10 +29,19 @@ npm install frenet-serret-frames
29
29
  ```js
30
30
  import frenetSerretFrames from "frenet-serret-frames";
31
31
 
32
- const frames = frenetSerretFrames({ positions }, {
32
+ const geometry = { positions, cells };
33
+ frenetSerretFrames(geometry, {
33
34
  closed: true,
34
35
  initialNormal: [0, 1, 0],
35
36
  });
37
+ console.log(geometry);
38
+ // {
39
+ // positions: Float32Array [x, y, z, x, y, z, ...],
40
+ // tangents: Float32Array [x, y, z, x, y, z, ...]
41
+ // normals: Float32Array [x, y, z, x, y, z, ...]
42
+ // binormals: Float32Array [x, y, z, x, y, z, ...]
43
+ // cells: Uint8/16/32/Array [a, b, c, a, b, c, ...],
44
+ // }
36
45
  ```
37
46
 
38
47
  ## API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frenet-serret-frames",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Compute Frenet-Serret frames for a geometry of 3D positions and optionally provided tangents.",
5
5
  "keywords": [
6
6
  "path",
@@ -33,11 +33,11 @@
33
33
  "main": "index.js",
34
34
  "types": "types/index.d.ts",
35
35
  "dependencies": {
36
+ "path-tangents": "^3.0.0",
36
37
  "pex-math": "^4.0.0-alpha.3"
37
38
  },
38
39
  "devDependencies": {
39
40
  "es-module-shims": "^1.8.0",
40
- "path-tangents": "^3.0.0",
41
41
  "pex-cam": "^3.0.0-alpha.1",
42
42
  "pex-context": "^3.0.0-alpha.7",
43
43
  "tweakpane": "^3.1.10"