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