texture_sphere
Synopsis
texture_sphere creates a sphere with a mapped image.
Input Port
texture
|
Field_Unif+Dim2+Space2+Byte
|
ui_parent
|
user interface parent object
|
Parameters
Output Port
out_fld
|
Mesh+Node_Data
|
out_obj
|
output renderable object
|
Description
texture_sphere creates a sphere (or part of a sphere) with specified parameters and uses the texture facility of the viewer to map an image onto it.
Input
texture
Field_Unif+Dim2+Space2. The image to texture onto in_field.
ui_parent
Used to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.)
Parameters
longitude dimension
UIslider. Number of longitude sub-divisions on the sphere. Default is 24.
latitude dimension
UIslider. Number of latitude sub-divisions on the sphere. Default is 24.
Radius
UIfield. Radius of a sphere, default is 6378000 (Earth).
Western Long
UIdial. Longitude in degrees of the beginning of sphere segment. Default is 0.
Eastern Long
UIdial. Longitude in degrees of the end of sphere segment. Default is 360.
Southern Lat
UIdial. Latitude in degrees of the beginning of sphere segment. Default is -90.
Northern Lat
UIdial. Latitude in degrees of the end of sphere segment. Default is 90.
Output Port
out_fld
Mesh+Node_Data. Contains the spherical mesh with the texture applied.
out_obj
Renderable object. Corresponds to out_fld.
Example
Libraries.Examples.Visualization.Texture_Sphere
v/dv_examp/txt_sphr.v
File
v/modules.v
See also related modules