This file contains hidden or 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
# Take a cube/hexahedral mesh element | |
# Divice that into convex tetrahedra | |
# Using the Polyscope vertex numbering here: https://polyscope.run/py/structures/volume_mesh/basics/#registering-a-volume-mesh | |
# And using Polyscope to visualize | |
import numpy as np | |
import polyscope as ps | |
def main(): | |
vertices = np.array([ |
This file contains hidden or 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 mesonbuild | |
import pathlib | |
import sys | |
from typing import TextIO | |
# Warns the user that this will change their meson intstallation and asks them to confirm | |
def patch_meson_with_warnings() -> None: | |
meson_root_path: pathlib.Path = pathlib.Path(mesonbuild.__file__).parent | |
meson_compilers_dir_path: pathlib.Path = meson_root_path / "compilers" |