frontend/three_d_garden/parts/soil_sensor.tsx
/* eslint-disable max-len */
import React from "react";
import * as THREE from "three";
import { InstancedBufferAttribute } from "three";
import { GLTF } from "three-stdlib";
import { Group, Mesh as MeshComponent, InstancedMesh } from "../components";
type Mesh = THREE.Mesh & { instanceMatrix: InstancedBufferAttribute | undefined };
export type SoilSensorFull = GLTF & {
nodes: {
Soil_Sensor: Mesh;
mesh0_mesh: Mesh;
mesh0_mesh_1: Mesh;
mesh0_mesh_2: Mesh;
mesh0_mesh_3: Mesh;
mesh0_mesh_4: Mesh;
mesh0_mesh_5: Mesh;
mesh0_mesh_6: Mesh;
mesh0_mesh_7: Mesh;
mesh0_mesh_8: Mesh;
mesh0_mesh_9: Mesh;
mesh0_mesh_10: Mesh;
mesh0_mesh_11: Mesh;
mesh0_mesh_12: Mesh;
mesh0_mesh_13: Mesh;
mesh0_mesh_14: Mesh;
mesh0_mesh_15: Mesh;
mesh0_mesh_16: Mesh;
mesh0_mesh_17: Mesh;
mesh0_mesh_18: Mesh;
mesh0_mesh_19: Mesh;
mesh0_mesh_20: Mesh;
mesh0_mesh_21: Mesh;
mesh0_mesh_22: Mesh;
mesh0_mesh_23: Mesh;
mesh0_mesh_24: Mesh;
mesh0_mesh_25: Mesh;
mesh584_mesh: Mesh;
mesh584_mesh_1: Mesh;
mesh584_mesh_2: Mesh;
mesh584_mesh_3: Mesh;
mesh584_mesh_4: Mesh;
mesh584_mesh_5: Mesh;
mesh584_mesh_6: Mesh;
mesh584_mesh_7: Mesh;
mesh584_mesh_8: Mesh;
mesh584_mesh_9: Mesh;
mesh584_mesh_10: Mesh;
mesh584_mesh_11: Mesh;
mesh584_mesh_12: Mesh;
mesh584_mesh_13: Mesh;
mesh584_mesh_14: Mesh;
mesh584_mesh_15: Mesh;
mesh584_mesh_16: Mesh;
mesh584_mesh_17: Mesh;
};
materials: {
PaletteMaterial001: THREE.MeshStandardMaterial;
};
}
export const SoilSensor = (model: SoilSensorFull) =>
(props: JSX.IntrinsicElements["group"]) => {
const { nodes, materials } = model;
// eslint-disable-next-line no-null/no-null
return <Group {...props} dispose={null}>
<MeshComponent
geometry={nodes.Soil_Sensor.geometry}
material={materials.PaletteMaterial001}
position={[0, 0, -0.015]} />
<InstancedMesh
args={[nodes.mesh0_mesh.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_1.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_1.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_2.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_2.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_3.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_3.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_4.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_4.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_5.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_5.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_6.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_6.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_7.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_7.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_8.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_8.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_9.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_9.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_10.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_10.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_11.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_11.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_12.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_12.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_13.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_13.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_14.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_14.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_15.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_15.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_16.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_16.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_17.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_17.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_18.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_18.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_19.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_19.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_20.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_20.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_21.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_21.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_22.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_22.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_23.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_23.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_24.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_24.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh0_mesh_25.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh0_mesh_25.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_1.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_1.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_2.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_2.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_3.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_3.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_4.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_4.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_5.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_5.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_6.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_6.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_7.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_7.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_8.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_8.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_9.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_9.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_10.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_10.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_11.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_11.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_12.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_12.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_13.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_13.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_14.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_14.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_15.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_15.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_16.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_16.instanceMatrix} />
<InstancedMesh
args={[nodes.mesh584_mesh_17.geometry, materials.PaletteMaterial001, 8]}
instanceMatrix={nodes.mesh584_mesh_17.instanceMatrix} />
</Group>;
};