MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / _auto_select_engine

Function _auto_select_engine

python/pymesh/boolean.py:8–15  ·  view source on GitHub ↗
(dim)

Source from the content-addressed store, hash-verified

6from . import boolean_unsupported
7
8def _auto_select_engine(dim):
9 if dim == 2:
10 engine = "clipper"
11 elif dim == 3:
12 engine = "igl"
13 else:
14 raise NotImplementedError("Dimension {} is not supported".format(dim))
15 return engine
16
17def boolean(mesh_1, mesh_2, operation, engine="auto", with_timing=False,
18 exact_mesh_file=None):

Callers 1

booleanFunction · 0.85

Calls 1

NotImplementedErrorClass · 0.85

Tested by

no test coverage detected