Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"ava": "^4.3.3",
"c8": "^8.0.1",
"docdash": "^2.0.2",
"jsdoc": "^4.0.4",
"jsdoc": "^4.0.5",
"standardx": "7.0.0",
"tsd": "^0.28.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/io/x3d-deserializer/src/translateShape.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const createObjects${object.id} = (options) => {
${polysAsStrings.join(',\n ')}
]
`
primitive = 'geom3.fromPoints(polygons)'
primitive = 'geom3.fromVertices(polygons)'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/io/x3d-deserializer/tests/translate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('deserialize X3D 3D components to JSCAD script', (t) => {
t.is(countOf('createObjects', observed), 20)
t.is(countOf('cylinder', observed), 2)
t.is(countOf('sphere', observed), 1)
t.is(countOf('geom3.fromPoints', observed), 1)
t.is(countOf('geom3.fromVertices', observed), 1)
t.is(countOf('transform', observed), 10)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/modeling/src/colors/colorize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test('color (rgba on objects)', (t) => {

test('color (rgba on geometry)', (t) => {
const obj0 = geom2.create([[[0, 0], [1, 0], [0, 1]]])
const obj1 = geom3.fromPoints([[[0, 0, 0], [1, 0, 0], [1, 0, 1]]])
const obj1 = geom3.fromVertices([[[0, 0, 0], [1, 0, 0], [1, 0, 1]]])
const obj2 = path2.fromPoints({ closed: true }, [[0, 0], [1, 0], [1, 1]])
const obj3 = poly3.create([[0, 0, 0], [1, 0, 0], [1, 1, 0]])

Expand Down
3 changes: 0 additions & 3 deletions packages/modeling/src/geometries/geom2/fromCompactBinary.d.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/modeling/src/geometries/geom2/fromCompactBinary.js

This file was deleted.

100 changes: 0 additions & 100 deletions packages/modeling/src/geometries/geom2/fromToCompactBinary.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions packages/modeling/src/geometries/geom2/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
export { clone } from './clone.js'
export { create } from './create.js'
export { fromSides } from './fromSides.js'
export { fromCompactBinary } from './fromCompactBinary.js'
export { isA } from './isA.js'
export { reverse } from './reverse.js'
export { toOutlines } from './toOutlines.js'
export { toPoints } from './toPoints.js'
export { toSides } from './toSides.js'
export { toString } from './toString.js'
export { toCompactBinary } from './toCompactBinary.js'
export { transform } from './transform.js'
export { validate } from './validate.js'

Expand Down
2 changes: 0 additions & 2 deletions packages/modeling/src/geometries/geom2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
export { clone } from './clone.js'
export { create } from './create.js'
export { fromSides } from './fromSides.js'
export { fromCompactBinary } from './fromCompactBinary.js'
export { isA } from './isA.js'
export { reverse } from './reverse.js'
export { toOutlines } from './toOutlines.js'
export { toPoints } from './toPoints.js'
export { toSides } from './toSides.js'
export { toString } from './toString.js'
export { toCompactBinary } from './toCompactBinary.js'
export { transform } from './transform.js'
export { validate } from './validate.js'
3 changes: 0 additions & 3 deletions packages/modeling/src/geometries/geom2/toCompactBinary.d.ts

This file was deleted.

56 changes: 0 additions & 56 deletions packages/modeling/src/geometries/geom2/toCompactBinary.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'

import { fromPoints } from './index.js'
import { fromVertices } from './index.js'

import { applyTransforms } from './applyTransforms.js'

Expand All @@ -15,7 +15,7 @@ test('applyTransforms: Updates a geom3 with transformed polygons', (t) => {
isRetesselated: false,
transforms: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
}
const geometry = fromPoints(vertices)
const geometry = fromVertices(vertices)
const updated = applyTransforms(geometry)
t.is(geometry, updated)
t.true(comparePolygons(updated.polygons[0], expected.polygons[0]))
Expand Down
4 changes: 2 additions & 2 deletions packages/modeling/src/geometries/geom3/clone.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'ava'

import { clone, create, fromPoints } from './index.js'
import { clone, create, fromVertices } from './index.js'

import { comparePolygons, compareVectors } from '../../../test/helpers/index.js'

Expand All @@ -23,7 +23,7 @@ test('clone: Creates a clone of a populated geom3', (t) => {
],
transforms: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
}
const geometry = fromPoints(vertices)
const geometry = fromVertices(vertices)
const another = clone(geometry)
t.not(another, geometry)
t.true(comparePolygons(another.polygons[0], expected.polygons[0]))
Expand Down
3 changes: 0 additions & 3 deletions packages/modeling/src/geometries/geom3/fromCompactBinary.d.ts

This file was deleted.

42 changes: 0 additions & 42 deletions packages/modeling/src/geometries/geom3/fromCompactBinary.js

This file was deleted.

25 changes: 0 additions & 25 deletions packages/modeling/src/geometries/geom3/fromPointsConvex.js

This file was deleted.

Loading