Skip to content

Commit efec992

Browse files
v0.11.8
1 parent 320f9c4 commit efec992

File tree

5 files changed

+23
-34
lines changed

5 files changed

+23
-34
lines changed

lib/api/bitbybit/draw.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
import {
3-
Color3, Mesh,
4-
StandardMaterial, PBRMetallicRoughnessMaterial, ShadowGenerator, MeshBuilder
3+
Color3, Mesh, ShadowGenerator, MeshBuilder
54
} from '@babylonjs/core';
65
import * as Inputs from '../inputs/inputs';
76
import { Point } from './point';
@@ -269,15 +268,6 @@ export class Draw {
269268
return inputs;
270269
}
271270

272-
private assignColorToMesh(mesh, color: Color3) {
273-
const mat = (mesh.material);
274-
if (mat instanceof PBRMetallicRoughnessMaterial) {
275-
mat.baseColor = color;
276-
} else if (mat instanceof StandardMaterial) {
277-
mat.diffuseColor = color;
278-
}
279-
}
280-
281271
private handleTags(inputs: Inputs.Draw.DrawAny) {
282272
const options = inputs.options ? inputs.options : {
283273
updatable: false,

lib/api/bitbybit/occt/occt.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export class OCCTW extends OCCT {
4040
delete inputs.faceMaterial;
4141
}
4242
const fe: Inputs.OCCT.DecomposedMeshDto = await this.occWorkerManager.genericCallToWorkerPromise('shapeToMesh', inputs);
43-
4443
const shapeMesh = MeshBuilder.CreateBox('brepMesh' + Math.random(), { size: 0.00001 }, this.context.scene);
4544
shapeMesh.isVisible = false;
4645
let dummy;

lib/api/geometry-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class GeometryHelper {
5151
}
5252

5353
createOrUpdateSurfacesMesh(
54-
meshDataConverted: { positions: any[]; indices: any[]; normals: any[]; uvs: any[] }[],
54+
meshDataConverted: { positions: number[]; indices: number[]; normals: number[]; uvs: number[] }[],
5555
mesh: Mesh, updatable: boolean, material: PBRMetallicRoughnessMaterial, addToScene: boolean, hidden: boolean
5656
): Mesh {
5757
const createMesh = () => {

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bitbybit-core",
3-
"version": "0.11.7",
3+
"version": "0.11.8",
44
"description": "Bit By Bit Developers Core CAD API to Program Geometry",
55
"main": "index.js",
66
"repository": {
@@ -40,8 +40,8 @@
4040
"@jscad/modeling": "2.7.2",
4141
"@jscad/stl-serializer": "2.1.3",
4242
"verb-nurbs-web": "2.1.3",
43-
"bitbybit-occt": "0.11.7",
44-
"bitbybit-occt-worker": "0.11.7",
43+
"bitbybit-occt": "0.11.8",
44+
"bitbybit-occt-worker": "0.11.8",
4545
"rxjs": "7.5.5"
4646
},
4747
"devDependencies": {

0 commit comments

Comments
 (0)