A viewpoint into a volume, for volume rendering.
The camera represents the eye of an observer, which will be used to generate ray-cast volume renderings of the domain.
Parameters : | center : array_like
normal_vector : array_like
width : float or list of floats
resolution : int or list of ints
north_vector : array_like, optional
volume : yt.extensions.volume_rendering.HomogenizedVolume, optional
fields : list of fields, optional
log_fields : list of bool, optional
sub_samples : int, optional
pf : StaticOutput
|
---|
Examples
>>> cam = vr.Camera(c, L, W, (N,N), transfer_function = tf, pf = pf)
>>> image = cam.snapshot()
Methods
get_vector_plane(image) | |
look_at(new_center[, north_vector]) | Change the view direction based on a new focal point. |
snapshot() | Ray-cast the camera. |
zoom(factor) | Change the distance to the focal point. |
zoomin(final, n_steps) | Loop over a zoomin and return snapshots along the way. |