Skip to content

Commit

Permalink
added vectors to ground
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Lee committed Oct 16, 2023
1 parent b49c482 commit d2e16d2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@
x = [startX, end["x"].item()]
y = [startY-offset, end["y"].item()-offset]
z = [startZ, end["z"].item()]

to_ground_x = [end["x"].item(), ground[name][0]]
to_ground_y = [end["y"].item()-offset, ground[name][1]]
to_ground_z = [end["z"].item(), ground[name][2]]

else:
if 'nose' in name:
start = lmk.loc[lmk['landmark_name'] == 'nose']
Expand All @@ -197,8 +202,13 @@
x = [start["x"].item(), end["x"].item()]
y = [start["y"].item()-offset, end["y"].item()-offset]
z = [start["z"].item(), end["z"].item()]

to_ground_x = [end["x"].item(), ground[name][0]]
to_ground_y = [end["y"].item()-offset, ground[name][1]]
to_ground_z = [end["z"].item(), ground[name][2]]
c = color_list[component]
ax1.plot(x, z, y, color=c)
ax1.plot(to_ground_x, to_ground_z, to_ground_y, color=c, linestyle='dashed')

# plot pointing vectors

Expand Down
Binary file modified plot/1_left_n_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/1_left_y_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/2_left_n_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/2_left_y_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/3_left_n_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/3_left_y_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/4_left_n_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified plot/4_right_n_1.png_3D.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d2e16d2

Please sign in to comment.