1 # -*- coding: utf-8 -*-
2 ####### Test for Cut Hexa ###############
7 doc = hexablock.addDocument("Cut Hexa Test")
13 grid = doc.makeCartesianTop (size_x,size_y,size_z)
14 arete = grid.getEdgeK (0, 0, 0)
16 doc.saveVtk ("decoupe1.vtk")
18 grid2 = doc.cutUni (arete, nbCuts)
19 doc.saveVtk ("decoupe2.vtk")
27 # tablen.append (abscisse)
28 tablen = [2, 3, 8, 14, 18]
29 arete = grid2.getEdge(0)
30 grid3 = doc.cut(arete, tablen)
31 doc.saveVtk ("decoupe3.vtk")