/[escript]/trunk/pyvisi/py_src/geometry.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/geometry.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1388 - (show annotations)
Fri Jan 11 07:45:58 2008 UTC (13 years, 1 month ago) by trankine
File MIME type: text/x-python
File size: 1232 byte(s)
And get the *(&(*&(* name right
1 """
2 @var __author__: name of author
3 @var __copyright__: copyrights
4 @var __license__: licence agreement
5 @var __url__: url entry point on documentation
6 @var __version__: version
7 @var __date__: date of the version
8 """
9
10 __author__="John Ngui, john.ngui@uq.edu.au"
11 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
12 http://www.access.edu.au
13 Primary Business: Queensland, Australia"""
14 __license__="""Licensed under the Open Software License version 3.0
15 http://www.opensource.org/licenses/osl-3.0.php"""
16 __url__="http://www.iservo.edu.au/esys"
17 __version__="$Revision$"
18 __date__="$Date$"
19
20
21 import vtk
22
23 class Geometry:
24 """
25 Class that extracts geometry from data and convert it to polygonal type.
26 """
27
28 def __init__(self, object):
29 """
30 Initialise the geometry filter.
31 """
32
33 self.__vtk_geometry_filter = vtk.vtkGeometryFilter()
34 self.__object = object
35 self.__setInput()
36
37 def __setInput(self):
38 """
39 Set the input for the geometry filter
40 """
41
42 self.__vtk_geometry_filter.SetInput(self.__object)
43
44 def _getGeometryOutput(self):
45 """
46 Return the output of the rotation.
47
48 @rtype: vtkPolyData
49 @return: Polygonal data
50 """
51 return self.__vtk_geometry_filter.GetOutput()

  ViewVC Help
Powered by ViewVC 1.1.26