diff options
author | Philip Cote <cotejrp@gmail.com> | 2012-09-18 03:36:42 +0400 |
---|---|---|
committer | Philip Cote <cotejrp@gmail.com> | 2012-09-18 03:36:42 +0400 |
commit | b255b59a931b7c27192f907c40e8f22695263ec7 (patch) | |
tree | 12bd36ce2b0476b3c86164ad8283e93157cfbf7e /add_mesh_extra_objects/add_mesh_pyramid.py | |
parent | 3b3ae2d2fb760c4111cebce82b8dbdd5ff250caf (diff) |
Slightly more sensible way to set up the initial vector list
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_pyramid.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_pyramid.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py index e99ffd9a..7c9ee6cf 100644 --- a/add_mesh_extra_objects/add_mesh_pyramid.py +++ b/add_mesh_extra_objects/add_mesh_pyramid.py @@ -50,8 +50,7 @@ def create_step(width, base_level, step_height, num_sides): quaternions = [Quaternion(axis, quat_angle) for quat_angle in quat_angles] - init_vectors = [Vector([rad, 0, base_level]) - for quat in quaternions] + init_vectors = [Vector([rad, 0, base_level])] * len(quaternions) quat_vector_pairs = list(zip(quaternions, init_vectors)) vectors = [quaternion * vec for quaternion, vec in quat_vector_pairs] |