Initializer

init(normals:)

Creates a geometry source from an array of normal vectors.

Declaration

@nonobjc convenience init(normals: [SCNVector3])

Parameters

normals

An array of three-component vectors, each of which represents a surface normal for the geometry source.

Return Value

A new geometry source whose semantic property is normal.

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 init(sources:elements:) method.

See Also

Creating Geometry Sources

init(vertices: [SCNVector3])

Creates a geometry source from an array of vertex positions.

init(textureCoordinates: [CGPoint])

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