Returns the geometry sources for a specified semantic.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 3.0+
A constant identifying a semantic for which to return geometry sources. See Geometry Semantic Identifiers for possible values.
An array of
SCNGeometry objects, or
nil if the geometry has no source for the specified semantic.
SCNGeometry object describes an attribute of all vertices in the geometry (such as vertex position, surface normal vector, color, or texture mapping coordinates) identified by the source’s
semantic property. A geometry always has at least one source, for the
SCNGeometry semantic, typically has additional sources for use in lighting and shading, and may have other sources for skeletal animation or surface subdivision information.
The vertex, normal, and color semantics each refer to at most one source. A geometry may have multiple sources for the
SCNGeometry semantic—in this case, indices in the returned array correspond to values for the
mapping property used when attaching textures to materials.