Skip to content

Instantly share code, notes, and snippets.

@LMescheder
LMescheder / inside_mesh.py
Last active March 5, 2024 18:05
check_mesh_contains function
import numpy as np
from triangle_hash import TriangleHash as _TriangleHash
def check_mesh_contains(mesh, points, hash_resolution=512):
intersector = MeshIntersector(mesh, hash_resolution)
contains = intersector.query(points)
return contains
@LMescheder
LMescheder / TheNumericsOfGANs.ipynb
Last active December 7, 2017 20:23
This notebook contains the code for the toy experiment in the paper The Numerics of GANs.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.