Created
November 6, 2020 22:50
-
-
Save wkentaro/c37df724d32861eea745b57d76227c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import trimesh | |
import pickpp | |
scene = trimesh.Scene() | |
coord = pickpp.geometry.Coordinate() | |
axis = trimesh.creation.axis() | |
axis.apply_transform(coord.matrix) | |
scene.add_geometry(axis) | |
coord.translate([0, 0, 1], "world") | |
axis = trimesh.creation.axis() | |
axis.apply_transform(coord.matrix) | |
# scene.add_geometry(axis) | |
coord.rotate([0, np.deg2rad(30), 0], "world") | |
axis = trimesh.creation.axis() | |
axis.apply_transform(coord.matrix) | |
scene.add_geometry(axis) | |
coord.rotate([np.deg2rad(30), 0, 0], "world") | |
axis = trimesh.creation.axis() | |
axis.apply_transform(coord.matrix) | |
scene.add_geometry(axis) | |
scene.show(resolution=(1280, 960)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment