Creates a geometry source from an array of normal vectors.
SDKs
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
+ (instancetype)geometrySourceWithNormals:(const SCNVector3 *)normals count:(NSInteger)count;
Parameters
normals
An array of three-component vectors, each of which represents a surface normal for the geometry source.
count
The number of normal vectors.
Return Value
A new geometry source whose SCNGeometry
property is SCNGeometry
.
Discussion
SceneKit converts this data to its own format to optimize rendering performance. To read the converted data, examine the properties of the created SCNGeometry
object.
To create a custom SCNGeometry
object from the geometry source, use the geometry
method.