Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNGeometryElementMBS class.

SCNGeometryElementMBS.Constructor(data as MemoryBlock, PrimitiveType as Integer, primitiveCount as Integer, bytesPerIndex as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a geometry element from the specified data and options.

data: The data describing the element.
primitiveType: The drawing primitive that connects vertices when rendering the geometry element. For possible values, see SCNGeometryPrimitiveType.
primitiveCount: The number of primitives in the element.
bytesPerIndex: The number of bytes that represent a single index value in the data.

Returns a new geometry element object.

An element’s data is an array of index values identifying vertices in a geometry source. SceneKit interprets the data as an array of unsigned integers (whose size is specified by the bytesPerIndex parameter), and then connects the vertices in the order specified by this array, arranged according to the primitiveType parameter.
To create a custom SCNGeometryMBS object from the geometry element, use the geometryWithSources() method.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...