---
title: "init(vertices:)"
framework: scenekit
role: symbol
role_heading: Initializer
path: "scenekit/scngeometrysource/init(vertices:)"
---

# init(vertices:)

Creates a geometry source from an array of vertex positions.

## Declaration

```swift
@nonobjc convenience init(vertices: [SCNVector3])
```

## Parameters

- `vertices`: An array of three-component vectors, each of which represents a vertex position for the geometry source.

## Return Value

Return Value A new geometry source whose semantic property is vertex.

## Discussion

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(data:semantic:vectorCount:usesFloatComponents:componentsPerVector:bytesPerComponent:dataOffset:dataStride:)](scenekit/scngeometrysource/init(data:semantic:vectorcount:usesfloatcomponents:componentspervector:bytespercomponent:dataoffset:datastride:).md)
- [init(normals:)](scenekit/scngeometrysource/init(normals:).md)
- [init(textureCoordinates:)](scenekit/scngeometrysource/init(texturecoordinates:).md)
