+ {sceneView?.model.children.map((child) => {
+ const key = `toggle-visibility-${child.name}`;
+ const color = `#${(
+ (child as Mesh).material as MeshStandardMaterial
+ ).color.getHexString()}`;
+ const visible = (child as Mesh).visible;
+
+ return (
+
+
+ handleCheckboxChange(child.name)}
+ className="hover:cursor-pointer"
+ defaultChecked={visible ? true : false}
+ />
+
+
+ );
+ })}
+
+ }