Instance Property

floatComponents

A Boolean value that indicates whether vector components are floating-point values.

Declaration

@property(nonatomic, readonly) BOOL floatComponents;

Discussion

If YES, SceneKit interprets the geometry source’s data as an array of vectors whose components are floating-point values. The type of floating-point value is determined by the SCNGeometrySource property: 4 bytes for float values or 8 bytes for double values.

If NO, SceneKit interprets the geometry source’s data as an array of vectors whose components are integer values. The type of integer value is determined by the SCNGeometrySource property; for example, 2 bytes for unsigned short values or 4 bytes for unsigned int values.

See Also

Inspecting a Geometry Source

data

The data for the geometry source.

semantic

The semantic value (or attribute) the geometry source describes for each vertex.

vectorCount

The number of vectors in the data.

componentsPerVector

The number of scalar components in each vector.

bytesPerComponent

The size, in bytes, of each vector component.

dataOffset

The offset, in bytes, from the beginning of the data to the first vector component to be used in the geometry source.

dataStride

The number of bytes from a vector to the next one in the data.