Type Method

geometrySourceWithTextureCoordinates:count:

Creates a geometry source from an array of texture coordinate points.

Declaration

+ (instancetype)geometrySourceWithTextureCoordinates:(const CGPoint *)texcoord count:(NSInteger)count;

Parameters

texcoord

An array of points, each of which represents a texture coordinate pair for the geometry source.

count

The number of texture coordinate points.

Return Value

A new geometry source whose SCNGeometrySource property is SCNGeometrySourceSemanticTexcoord.

Discussion

SceneKit converts this data to its own format to optimize rendering performance. To read the converted data, examine the properties of the created SCNGeometrySource object.

To create a custom SCNGeometry object from the geometry source, use the geometryWithSources:elements: method.

See Also

Creating Geometry Sources

+ geometrySourceWithVertices:count:

Creates a geometry source from an array of vertex positions.

+ geometrySourceWithNormals:count:

Creates a geometry source from an array of normal vectors.