Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import cppimport
import ctypes
cppimport.set_rtld_flags(ctypes.RTLD_GLOBAL)
import os
source_dir = os.path.dirname(os.path.realpath(__file__))
data_dir = os.path.join(source_dir, 'data')
def get_data_filepath(filename):
return os.path.join(data_dir, filename)
from tectosaur.util.logging import setup_root_logger
logger = setup_root_logger(__name__)
from tectosaur.util.timer import Timer
from tectosaur.mesh.mesh_gen import make_rect
from tectosaur.mesh.combined_mesh import CombinedMesh
from tectosaur.mesh.modify import concat