Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/m/a/mavsim-HEAD/blender/import_freecad.py   mavsim(Download)
	if end > 360: end = end % 360.0
 
	startmatrix = Mathutils.RotationMatrix(-start, 3, "Z")
	startpoint = startmatrix * Mathutils.Vector(radius, 0, 0)
	endmatrix = Mathutils.RotationMatrix(-end, 3, "Z")
		if pieces < 3: pieces = 3
		step = angle/pieces # set step so pieces * step = degrees in arc
		stepmatrix = Mathutils.RotationMatrix(-step, 3, "Z")
 
		points = [startpoint]
		if pieces < 2: pieces = 2
		step = angle/pieces # set step so pieces * step = degrees in arc
		stepmatrix = Mathutils.RotationMatrix(-step, 3, "Z")
 
		# correct Bezier curves representation for free segmented circles/arcs

src/b/l/blender2cal3d-HEAD/blender2cal3d.py   blender2cal3d(Download)
	Draw()
 
	rot_x_matrix = Blender.Mathutils.RotationMatrix(ROT_X, 4, "x")
	rot_y_matrix = Blender.Mathutils.RotationMatrix(ROT_Y, 4, "y")
	rot_z_matrix = Blender.Mathutils.RotationMatrix(ROT_Z, 4, "z")