Table of Contents

Module: SrfReader DelphiViewer/SrfReader.py

File: SrfReader.py Date: 06.21.2000 Description: Converts a DelPhi/GRASP *.srf file to a VRML file.

Imports: - chimera - _cubes - * from struct - * from array - * from string

Classes: - SrfReader

Caveats: Much time is spent in colorVerticesByPhiValue, PhiReaders.parsePhiFile and writeVRMLMesh/Surface.

Last modified: 06.21.2000 - Added. 06.23.2000 - Fiddled around and got the scaling correct. Took out some stuff that really slowed down the writeVRML* routines. Added a few more detailed comments. 07.05.2000 - Modified the line parser for reading the number of vertices, the number of triangles and the grid size. 07.09.2000 - Modified coloring of GRASP surface to a 2D-texture. NOTE: SrfReader colors the GRASP surface, where MSMSTexturer textures the MSMS surface.

Imported modules   
from PhiReaders import parsePhiFile
from Texturer import RGBRampTexture
import _cubes
import chimera
from string import *
import struct
Functions   
RunTest
  RunTest 
RunTest ()

Classes   
SrfReader

Table of Contents

This document was automatically generated on Tue Nov 5 16:56:17 2002 by HappyDoc version 2.0.1