Add split

This commit is contained in:
Халимов Рустам
2026-01-10 16:43:20 +03:00
parent 8789d82064
commit 4af73b00eb
5 changed files with 379 additions and 278 deletions
+9 -2
View File
@@ -33,8 +33,15 @@ interface BinMeshProps {
const BinMesh: React.FC<BinMeshProps> = ({ part, thickness, cornerRadius, isSelected, onClick }) => {
const geometry = useMemo(() => {
return createBinGeometry(part.width, part.depth, part.height, thickness, cornerRadius);
}, [part, thickness, cornerRadius]);
return createBinGeometry(
part.width,
part.depth,
part.height,
thickness,
cornerRadius,
part.internalPartitions // <--- ВАЖНО: передаем перегородки
);
}, [part, thickness, cornerRadius]);
const edgesGeometry = useMemo(() => {
return new THREE.EdgesGeometry(geometry, 20);