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
8 changes: 4 additions & 4 deletions frontend/compas_threejs/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 frontend/compas_threejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@bufbuild/protobuf": "^2.11.0",
"@gramaziokohler/compas-pb-ts": "^1.1.3",
"@gramaziokohler/compas-pb-ts": "^1.1.5",
"@radix-ui/react-tooltip": "^1.2.8",
"@vueuse/core": "^14.2.1",
"class-variance-authority": "^0.7.1",
Expand Down
1 change: 0 additions & 1 deletion frontend/compas_threejs/src/communications/messages.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { scene } from "../viewer/scene_builder";
import {
unpackMessageToGeometry,
unpackMessage,
Expand Down
9 changes: 7 additions & 2 deletions frontend/compas_threejs/src/viewer/geometry_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const ABSTRACT_GEOMETRIES = [
export function geometryManager(obj: any) {
// FILTER
// if the geometry is abstract, than send it to another workflow\
console.log(obj.name);
if (ABSTRACT_GEOMETRIES.includes(obj.name)) {
abstractGeometryManager(obj);
}
Expand All @@ -27,7 +26,13 @@ export function geometryManager(obj: any) {

// 1. Get the new Mesh from your API
const newMesh = obj.buildGeometry();
if (!newMesh || !(newMesh instanceof THREE.Mesh)) return;
if (newMesh instanceof THREE.Mesh) {
console.log("True");
} else {
console.log("False");
return;
}
if (!(newMesh instanceof THREE.Mesh)) return;

// 2. Extract and prepare the geometry from the new mesh
const newGeo = newMesh.geometry;
Expand Down
51 changes: 0 additions & 51 deletions frontend/compas_threejs/src/viewer/scene_builder.ts

This file was deleted.

18 changes: 9 additions & 9 deletions src/compas_threejs/viewer/frontend/assets/index.js

Large diffs are not rendered by default.