Skip to content

Commit 62cbd04

Browse files
committed
New unit test for tetgen
1 parent 5a6a000 commit 62cbd04

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"name": "ci",
66
"cacheVariables": {
77
"USE_PYTHON_3": "ON",
8+
"TRITON": "ON",
89
"GUIToolkitsVariables_ROOT": "$env{INSTALL_DIR}/guitoolkitsvariables",
910
"VtkContrib_ROOT": "$env{INSTALL_DIR}/vtkcontrib",
1011
"VTK_ROOT": "$env{INSTALL_DIR}/VTK-7.1.1",

test_link/test_tetgen.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
import pyMagix3D as Mgx3D
3+
4+
def test_tetgen():
5+
ctx = Mgx3D.getStdContext()
6+
ctx.clearSession() # Clean the session after the previous test
7+
# Création d'une boite avec une topologie
8+
ctx.getTopoManager().newBoxWithTopo(Mgx3D.Point(0, 0, 0), Mgx3D.Point(1, 1, 1), False)
9+
# Création du maillage pour tous les blocs
10+
ctx.getMeshManager().newAllBlocksMesh()

0 commit comments

Comments
 (0)