我得到了一个基于不同面的几何形状的网格。
我想在运行时从该几何图形中删除一个面。
可以使用three.js吗?
let mesh = new THREE.Mesh(
geometry,
textures
);
mesh.name = "map"
scene.add(mesh)
// runtime function should e.g. remove face with index 15
faceToDelete = {
distance: 1000,
face: Tb {a: 10756, b: 10758, c: 10757, normal: n, vertexNormals:
Array(3)},
faceIndex: 15,
object: ra {name: "map", type: "Mesh"},
point: n {x: 87.01836565006928, y: 50, z: -245.99743779172834},
uv: C {x: 0.3701836565006929, y: 0.9799871889586418},
} // (copied from console)
delete faceToDelete // does not seems to work without producing deep errors
有没有一种方法可以实现我想要的?