PerspectiveCamera.
draw_coordinate_vectors
(im, length=0.05, thickness=1)¶Draws three coordinate vectors in the corner of a rendering.
Modifies an existing image to have three lines corresponding to the coordinate directions colored by {x,y,z} = {r,g,b}. Currently only functional for plane-parallel volume rendering.
Parameters: | im: Numpy ndarray :
length: float, optional :
thickness : int, optional
|
---|---|
Returns: | None : |
Examples
>>> im = cam.snapshot()
>>> cam.draw_coordinate_vectors(im)
>>> im.write_png('render_with_grids.png')