I have a function:
function removeBySid(sid) {
scene.traverse(function(node) {
if (node instanceof THREE.Mesh) {
if (node.geometry) {
node.geometry.dispose();
}
if (node.material) {
node.material.dispose();
}
}
scene.remove(node);
});
};
how will i be able to tell if geometries and materials have been disposed? is there a way to check?