);
}
export function Form() {
const { sceneView } = useContext(SceneViewContext) as SceneViewContextType;
function handleChange() {
if (!sceneView) return;
sceneView.toggleClippingBox();
}
function handleChangeCG() {
if (!sceneView) return;
sceneView.toggleCoordinateGrid();
}
function handleChangeWireframe() {
if (!sceneView) return;
sceneView.toggleWireFrame();
}
function handleCheckboxChange(name: string) {
if (!sceneView) return;
sceneView.toggleLayerVisibility(name);
}
function handleChangeTopography() {
if (!sceneView) return;
sceneView.toggleTopography();
}
return (
{
{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 (