1 # -*- coding: utf-8 -*-
4 from geomsmesh import geompy
6 # -----------------------------------------------------------------------------
9 def blocDefaut(blocDim):
11 Le bloc contenant la fissure est un cube construit centre a l'origine, dont on donne la demi arete.
12 @param blocdim : demi arete
13 @return cube (geomObject)
16 geomObj_1 = geompy.MakeVertex(-blocDim, -blocDim, -blocDim)
17 geomObj_2 = geompy.MakeVertex( blocDim, blocDim, blocDim)
18 Box = geompy.MakeBoxTwoPnt(geomObj_1, geomObj_2)
19 #geompy.addToStudy( Box_1, 'Box_1' )