TextureMapToSphere
Introduction
vtkTextureMapToSphere generate texture coordinates by mapping points to sphere The TCoords DataArray is name 'Texture Coordinate'
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkTextureMapToSphere characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ITextureMapToSphere | No | (default: {}) |
getAutomaticSphereGeneration
Get whether the automatic sphere generation is set.
getCenter
Get the point defining the center of the sphere.
getCenterByReference
Get the normal object.
getPreventSeam
Get whether the prevent seam is set.
newInstance
Method used to create a new instance of vtkTextureMapToSphere
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ITextureMapToSphere | No | for pre-setting some of its content |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setAutomaticSphereGeneration
Turn on/off the automatic sphere generation.
| Argument | Type | Required | Description |
|---|---|---|---|
automaticSphereGeneration | Yes |
setCenter
Set the point defining the center of the sphere.
| Argument | Type | Required | Description |
|---|---|---|---|
x | Yes | ||
y | Yes | ||
z | Yes |
setCenter
Set the point defining the center of the sphere.
| Argument | Type | Required | Description |
|---|---|---|---|
center | Array[Number] | Yes | The center point coordinates. |
setCenterFrom
Set the point defining the center of the sphere.
| Argument | Type | Required | Description |
|---|---|---|---|
center | Array[Number] | Yes | The center point coordinates. |
setPreventSeam
Control how the texture coordinates are generated.
If PreventSeam is set, the s-coordinate ranges :
- from 0->1 and 1->0 corresponding to the theta angle variation between 0->180 and 180->0 degrees
- Otherwise, the s-coordinate ranges from 0->1 between 0->360 degrees.
| Argument | Type | Required | Description |
|---|---|---|---|
preventSeam | Yes |