One Logo Pool Ball
SceneKit · IOS API REFERENCE

SCNGeometrySource

class · SDK 27.1

class SCNGeometrySource

Members (13)

init · iOS 9.0+

init

TypeScript
static initBufferVertexFormatSemanticVertexCountDataOffsetDataStride(buffer: SDKHandle, vertexFormat: _Metal_MTLVertexFormat, semantic: SCNGeometrySource_Semantic, vertexCount: number, offset: number, stride: number): SCNGeometrySource
Swift declaration
convenience init(buffer: any MTLBuffer, vertexFormat: MTLVertexFormat, semantic: SCNGeometrySource.Semantic, vertexCount: Int, dataOffset offset: Int, dataStride stride: Int)
init

init

TypeScript
static initDataSemanticVectorCountUsesFloatComponentsComponentsPerVectorBytesPerComponentDataOffsetDataStride(data: ArrayBuffer, semantic: SCNGeometrySource_Semantic, vectorCount: number, floatComponents: boolean, componentsPerVector: number, bytesPerComponent: number, offset: number, stride: number): SCNGeometrySource
Swift declaration
convenience init(data: Data, semantic: SCNGeometrySource.Semantic, vectorCount: Int, usesFloatComponents floatComponents: Bool, componentsPerVector: Int, bytesPerComponent: Int, dataOffset offset: Int, dataStride stride: Int)
get

bytesPerComponent

TypeScript
get bytesPerComponent(): number
Swift declaration
var bytesPerComponent: Int { get }
get

componentsPerVector

TypeScript
get componentsPerVector(): number
Swift declaration
var componentsPerVector: Int { get }
get

data

TypeScript
get data(): ArrayBuffer
Swift declaration
var data: Data { get }
get

dataOffset

TypeScript
get dataOffset(): number
Swift declaration
var dataOffset: Int { get }
get

dataStride

TypeScript
get dataStride(): number
Swift declaration
var dataStride: Int { get }
get

usesFloatComponents

TypeScript
get usesFloatComponents(): boolean
Swift declaration
var usesFloatComponents: Bool { get }
get

semantic

TypeScript
get semantic(): SCNGeometrySource_Semantic
Swift declaration
var semantic: SCNGeometrySource.Semantic { get }
get

vectorCount

TypeScript
get vectorCount(): number
Swift declaration
var vectorCount: Int { get }
init · iOS 8.0+

init

TypeScript
static initTextureCoordinates(textureCoordinates: Array<{ x: number; y: number }>): SCNGeometrySource
Swift declaration
@nonobjc convenience init(textureCoordinates: [CGPoint])
init · iOS 8.0+

init

TypeScript
static initNormals(normals: Array<SCNVector3>): SCNGeometrySource
Swift declaration
@nonobjc convenience init(normals: [SCNVector3])
init · iOS 8.0+

init

TypeScript
static initVertices(vertices: Array<SCNVector3>): SCNGeometrySource
Swift declaration
@nonobjc convenience init(vertices: [SCNVector3])

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

SCNGeometrySource.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All SceneKit types →