Skip to content

Commit b61c3e5

Browse files
committed
Update shapes.py
1 parent 5c20298 commit b61c3e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plotly_3d_primitives/shapes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def rectangular_grid(
196196
x_dir = (1, 0, 0)
197197
y_dir = (0, 1, 0)
198198
z_dir = (0, 0, 1)
199+
assumed_normal = z_dir
199200
norm = np.linalg.norm(normal)
200201
cos_alpha = np.dot(x_dir, normal) / norm
201202
cos_beta = np.dot(y_dir, normal) / norm
@@ -213,6 +214,7 @@ def rectangular_grid(
213214
[0, 0, 1]
214215
])
215216

217+
216218
# # The projection of the normal on each plane
217219
# xy_proj = np.array([normal[0], normal[1], 0])
218220
# yz_proj = np.array([0, normal[1], normal[2]])

0 commit comments

Comments
 (0)