1 # -*- coding: utf-8 -*-
2 ####### Make Cylinders Test ##########
8 doc = hexablock.addDocument ("Make Cylinders Test")
10 rext1 = 2*math.sqrt (2.0)
11 rext2 = 3*math.sqrt (2.0)
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)
21 cylinders = doc.makeCylinders (orig1, vz1, rext1, h1, orig2, vz2, rext2, h2)
22 cylinders.saveVtk("makeCylinders.vtk")