]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/test_doc/cylinder/cylinders.py
Salome HOME
ParaView 4.1 / VTK 6.1 porting
[modules/hexablock.git] / doc / test_doc / cylinder / cylinders.py
1 # -*- coding: utf-8 -*-
2 ####### Make Cylinders Test ########## 
3
4 import hexablock
5 import math
6
7     
8 doc  = hexablock.addDocument ("Make Cylinders Test")
9
10 rext1 =  2*math.sqrt (2.0)
11 rext2 =  3*math.sqrt (2.0)
12 h1   =  16
13 h2   =  16
14 xl1  =  -8
15
16 orig1  = doc.addVertex ( 0, 0,  xl1)
17 orig2  = doc.addVertex (-8, 0,  0)
18 vz1   = doc.addVector ( 0, 0,  1)
19 vz2   = doc.addVector ( 1, 0,  0)
20    
21 cylinders = doc.makeCylinders (orig1, vz1, rext1, h1, orig2, vz2, rext2, h2)
22 cylinders.saveVtk("makeCylinders.vtk")