This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
from tqdm import tqdm | |
def click2board(i, j, N): | |
board = np.zeros((N,N), dtype=int) | |
board[i,j] = 1 | |
if i > 0: board[i-1,j] = 1 | |
if i < N-1: board[i+1,j] = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OpenMesh-Python Cheat Sheet | |
''' | |
documentation: https://openmesh-python.readthedocs.io/en/latest/ | |
OpenMesh-Python official repository: | |
https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python | |
C++ documentation: | |
https://www.openmesh.org/media/Documentations/OpenMesh-Doc-Latest/a04099.html | |
Installation: | |
* pip install openmesh # https://pypi.org/project/openmesh/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <random> | |
#include <Eigen/Dense> | |
#include <Eigen/Sparse> | |
namespace Eigen { | |
// https://stackoverflow.com/a/25389481/11927397 | |
template<class Matrix> |