Skip to content

Commit

Permalink
Add docstring to creation.axis and use float color as default
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 21, 2018
1 parent 3a5873f commit 9423266
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion trimesh/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,24 @@ def random_soup(face_count=100):

def axis(transform=None,
origin_size=0.04,
origin_color=(255, 255, 255),
origin_color=(1.0, 1.0, 1.0),
axis_radius=0.01,
axis_length=0.4):
"""
Return XYZ axis as Trimesh, which represents position and orientation
Parameters
----------
transform: (4, 4) float, transformation matrix
origin_size: float, radius of sphere that represents the origin
origin_color: (3,) float or int, uint8 or float color of the origin
axis_radius: float, radius of cylinder that represents x, y, z axis
axis_length: float, length of cylinder that represents x, y, z axis
Returns
-------
axis: Trimesh object
"""
if transform is None:
transform = np.eye(4)

Expand Down

0 comments on commit 9423266

Please sign in to comment.