diff --git a/CMakePresets.json b/CMakePresets.json index 2a4d26a..7fa8349 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -5,6 +5,7 @@ "name": "ci", "cacheVariables": { "USE_PYTHON_3": "ON", + "TRITON": "ON", "GUIToolkitsVariables_ROOT": "$env{INSTALL_DIR}/guitoolkitsvariables", "VtkContrib_ROOT": "$env{INSTALL_DIR}/vtkcontrib", "VTK_ROOT": "$env{INSTALL_DIR}/VTK-7.1.1", diff --git a/test_link/test_tetgen.py b/test_link/test_tetgen.py new file mode 100644 index 0000000..f87102f --- /dev/null +++ b/test_link/test_tetgen.py @@ -0,0 +1,10 @@ +import sys +import pyMagix3D as Mgx3D + +def test_tetgen(): + ctx = Mgx3D.getStdContext() + ctx.clearSession() # Clean the session after the previous test + # Création d'une boite avec une topologie + ctx.getTopoManager().newBoxWithTopo(Mgx3D.Point(0, 0, 0), Mgx3D.Point(1, 1, 1), False) + # Création du maillage pour tous les blocs + ctx.getMeshManager().newAllBlocksMesh()