Templates For 3d Shapes