One Logo Pool Ball
SceneKit · IOS API REFERENCE

SCNGeometry

class · SDK 27.1

class SCNGeometry

Members (30)

init

init

TypeScript
static initSourcesElements(sources: Array<SCNGeometrySource>, elements?: (Array<SCNGeometryElement>) | null): SCNGeometry
Swift declaration
convenience init(sources: [SCNGeometrySource], elements: [SCNGeometryElement]?)
init · iOS 16.0+

init

TypeScript
static initSourcesElementsSourceChannels(sources: Array<SCNGeometrySource>, elements?: (Array<SCNGeometryElement>) | null, sourceChannels?: (Array<_Foundation_NSNumber>) | null): SCNGeometry
Swift declaration
convenience init(sources: [SCNGeometrySource], elements: [SCNGeometryElement]?, sourceChannels: [NSNumber]?)
method

element

TypeScript
element(elementIndex: number): SCNGeometryElement
Swift declaration
func element(at elementIndex: Int) -> SCNGeometryElement
method

sources

TypeScript
sourcesFor(semantic: SCNGeometrySource_Semantic): Array<SCNGeometrySource>
Swift declaration
func sources(for semantic: SCNGeometrySource.Semantic) -> [SCNGeometrySource]
method

insertMaterial

TypeScript
insertMaterial(material: SCNMaterial, index: number): void
Swift declaration
func insertMaterial(_ material: SCNMaterial, at index: Int)
method

material

TypeScript
material(name: string): (SCNMaterial) | null
Swift declaration
func material(named name: String) -> SCNMaterial?
method

removeMaterial

TypeScript
removeMaterial(index: number): void
Swift declaration
func removeMaterial(at index: Int)
method

replaceMaterial

TypeScript
replaceMaterial(index: number, material: SCNMaterial): void
Swift declaration
func replaceMaterial(at index: Int, with material: SCNMaterial)
get

edgeCreasesElement

TypeScript
get edgeCreasesElement(): (SCNGeometryElement) | null
Swift declaration
var edgeCreasesElement: SCNGeometryElement? { get set }
set

edgeCreasesElement

TypeScript
set edgeCreasesElement(value: (SCNGeometryElement) | null)
Swift declaration
var edgeCreasesElement: SCNGeometryElement? { get set }
get

edgeCreasesSource

TypeScript
get edgeCreasesSource(): (SCNGeometrySource) | null
Swift declaration
var edgeCreasesSource: SCNGeometrySource? { get set }
set

edgeCreasesSource

TypeScript
set edgeCreasesSource(value: (SCNGeometrySource) | null)
Swift declaration
var edgeCreasesSource: SCNGeometrySource? { get set }
get

firstMaterial

TypeScript
get firstMaterial(): (SCNMaterial) | null
Swift declaration
var firstMaterial: SCNMaterial? { get set }
set

firstMaterial

TypeScript
set firstMaterial(value: (SCNMaterial) | null)
Swift declaration
var firstMaterial: SCNMaterial? { get set }
get

elementCount

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

elements

TypeScript
get elements(): Array<SCNGeometryElement>
Swift declaration
var elements: [SCNGeometryElement] { get }
get · iOS 16.0+

geometrySourceChannels

TypeScript
get geometrySourceChannels(): (Array<_Foundation_NSNumber>) | null
Swift declaration
var geometrySourceChannels: [NSNumber]? { get }
get

sources

TypeScript
get sources(): Array<SCNGeometrySource>
Swift declaration
var sources: [SCNGeometrySource] { get }
get

levelsOfDetail

TypeScript
get levelsOfDetail(): (Array<SCNLevelOfDetail>) | null
Swift declaration
var levelsOfDetail: [SCNLevelOfDetail]? { get set }
set

levelsOfDetail

TypeScript
set levelsOfDetail(value: (Array<SCNLevelOfDetail>) | null)
Swift declaration
var levelsOfDetail: [SCNLevelOfDetail]? { get set }
get

materials

TypeScript
get materials(): Array<SCNMaterial>
Swift declaration
var materials: [SCNMaterial] { get set }
set

materials

TypeScript
set materials(value: Array<SCNMaterial>)
Swift declaration
var materials: [SCNMaterial] { get set }
get

name

TypeScript
get name(): (string) | null
Swift declaration
var name: String? { get set }
set

name

TypeScript
set name(value: (string) | null)
Swift declaration
var name: String? { get set }
get

subdivisionLevel

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

subdivisionLevel

TypeScript
set subdivisionLevel(value: number)
Swift declaration
var subdivisionLevel: Int { get set }
get · iOS 11.0+

tessellator

TypeScript
get tessellator(): (SCNGeometryTessellator) | null
Swift declaration
var tessellator: SCNGeometryTessellator? { get set }
set · iOS 11.0+

tessellator

TypeScript
set tessellator(value: (SCNGeometryTessellator) | null)
Swift declaration
var tessellator: SCNGeometryTessellator? { get set }
get · iOS 11.0+

wantsAdaptiveSubdivision

TypeScript
get wantsAdaptiveSubdivision(): boolean
Swift declaration
var wantsAdaptiveSubdivision: Bool { get set }
set · iOS 11.0+

wantsAdaptiveSubdivision

TypeScript
set wantsAdaptiveSubdivision(value: boolean)
Swift declaration
var wantsAdaptiveSubdivision: Bool { get set }

Skipped declarations

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

SCNGeometry.init()

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

All SceneKit types →