Lines Matching defs:by
20 #Vertices are given as "v" followed by three numbers (x,y,z).
24 #Faces are given by a list of vertices
28 #Edges are given by a list of vertices. These will be broken down
33 #back-face culling, if selected. The parameter to sort the faces by
38 it under the terms of the GNU General Public License as published by
66 inkex.errormsg(_("Failed to import the numpy module. This module is required by this extension. Please install it and try again. On a Debian-like system this can be done with the command 'sudo apt-get install python-numpy'."))
236 def rot_z( matrix , a):#rotate around the z-axis by a radians
242 def rot_y( matrix , a):#rotate around the y-axis by a radians
248 def rot_x( matrix , a):#rotate around the x-axis by a radians
280 def get_z_sort_param(pts, face, method): #returns the z-sorting parameter specified by 'method' ('max', 'min', 'cent')
324 class Obj(object): #a 3d object defined by the vertices and the faces (eg a polyhedron)
488 trans_mat = trans_mat*so.scl #scale by linear factor (do this only after the transforms to reduce round-off)
520 z_list.sort(lambda x, y: cmp(x[0],y[0])) #sort by ascending sort parameter of the face