Python 3 package for illustrating crystallography
PyCrystallography contains many 3D geometries that can be loaded and viewed interactively. The models can then have there normals identified and converted to Stereographic Projections.
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from PyCrystallography.geometry import *
fig = plt.figure()
ax = fig.add_subplot(111,projection='3d')
######################################
# which ever 3d model you want to load
cuboid(ax,5,5,5)
######################################
plt.show()
def cuboid(ax,h,w,d):
def pryamid(ax,h,num_of_side):
def bipryamid(ax,h,num_of_side):
def prism(ax,h,num_of_side):
(not sure what its proper name is)
def biprismid(ax,h,num_of_side):
def tetrakis(ax,h,dh):