Skip to content

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.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesITextureMapToSphereNo(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

ArgumentTypeRequiredDescription
initialValuesITextureMapToSphereNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setAutomaticSphereGeneration ​

Turn on/off the automatic sphere generation.

ArgumentTypeRequiredDescription
automaticSphereGenerationYes

setCenter ​

Set the point defining the center of the sphere.

ArgumentTypeRequiredDescription
xYes
yYes
zYes

setCenter ​

Set the point defining the center of the sphere.

ArgumentTypeRequiredDescription
centerArray[Number]YesThe center point coordinates.

setCenterFrom ​

Set the point defining the center of the sphere.

ArgumentTypeRequiredDescription
centerArray[Number]YesThe 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.
ArgumentTypeRequiredDescription
preventSeamYes