Skip to content

Commit

Permalink
New unit test for tetgen
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandaisb committed Jun 25, 2024
1 parent 5a6a000 commit 62cbd04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions test_link/test_tetgen.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 62cbd04

Please sign in to comment.