Défi Grasshopper : 🔐Analyse de geste pour un digicode🔐
French Je vous propose un petit défi de programmation sur Grasshopper pour tester votre logique et votre créativité. 🎯 Objectif : Créer une définition Grasshopper capable d’analyser un geste de déverrouillage simulé par une courbe (le mouvement du doigt sur un digicode). Le script devra comparer cette courbe avec un code prédéfini et déterminer si le geste correspond au bon code. Contraintes : - Définir une grille de points représentant les touches du digicode - Interpréter la courbe comme un parcours entre ces points - Détecter l’ordre de passage des touches - Comparer la séquence obtenue avec le code correct - Retourner un résultat : ✅ / ❌ Curieux de voir vos approches : logique géométrique, analyse de proximité, ou autre stratégie ? Partagez vos définitions, captures ou vidéos du résultat English I propose a small programming challenge on Grasshopper to test your logic and creativity. 🎯 Objective:Create a Grasshopper definition capable of analyzing an unlock gesture simulated by a curve (the movement of a finger on a keypad). The script should compare this curve with a predefined code and determine whether the gesture matches the correct code. Constraints: - Define a grid of points representing the keypad buttons - Interpret the curve as a path between these points - Detect the order in which the buttons are passed - Compare the obtained sequence with the correct code - Return a result: ✅ / ❌ I’m curious to see your approaches: geometric logic, proximity analysis, or another strategy. Feel free to share your definitions, screenshots, or videos of the result.