Table of Contents

Class: Habitus experiment/habitus.py

Crystal description in the form of faces.

Methods   
BuildHabitus
FillCanvas
Into
PointList
Widget
WriteOff
  BuildHabitus 
BuildHabitus ( self )

BuildHabitus finds the edges of the crystal given the plane normals (in self.n) and the plane distances (in self.p)

Results are stored in: self.lines : list of 4-tuples (point1,point2,iplane1,iplane2) where the pointX are vectors, and iplane1 and 2 are the numbers of the two planes that intersect in each line. self.facemidpoint[iplane] : array of all midpoints of all lines involving plane iplane. This can be used to calculate the center of the crystal face.

  FillCanvas 
FillCanvas ( self,  w )

Add a drawing of the crystal to the 3D Canvas "w", or, if they exist to the composite3D objects w.hablines and w.habfindex instead

  Into 
Into ( self,  win )

Add a representation of ourselves to an existing gui.obj3d canvas.

  PointList 
PointList ( self )

Return a list of from,to points that define the crystal plot.

  Widget 
Widget ( self,  parent )

Create a user-interactable 3D GUI

  WriteOff 
WriteOff ( self,  offfilename )

Write and OFF file with the crystal description. OFF files can be read by geomview and by a JAVA applet for presentation.


Table of Contents

This document was automatically generated on Fri Jul 3 09:28:36 2009 by HappyDoc version WORKING