add sketch item poly outlines, allow for deletion

This commit is contained in:
Stewart Allen 2024-07-25 14:48:36 -04:00
commit 67d6ff5726
4 changed files with 57 additions and 12 deletions

View file

@ -12,7 +12,7 @@
// use: mesh.group
gapp.register("mesh.model", [], (root, exports) => {
const { MeshPhongMaterial, MeshBasicMaterial } = THREE;
const { MeshPhongMaterial, MeshBasicMaterial, LineBasicMaterial } = THREE;
const { BufferGeometry, BufferAttribute, DoubleSide, Mesh } = THREE;
const { mesh, moto } = root;
const { space } = moto;
@ -69,6 +69,12 @@ let materials = mesh.material = {
transparent: true,
opacity: 0.5
}),
wireline: new LineBasicMaterial({
side: DoubleSide,
color: 0x0,
transparent: true,
opacity: 0.5
})
};
/** 3D model rendered on plaform **/