iOS Guides | Samples

SceneKit.SCNGeometryElement Class

Combines information about vertices and a drawing primitive. Maps to a single drawing command sent to the GPU.

See Also: SCNGeometryElement


[Foundation.Register("SCNGeometryElement", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public class SCNGeometryElement : NSObject, INSSecureCoding, IDisposable

Related content


Namespace: SceneKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of SceneKit.SCNGeometryElement are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

BytesPerIndexnint. Gets the byte stride of the data.
ClassHandleIntPtr. The handle for this class.
DataNSData. Getshe geometry data.
PrimitiveCountnint. Gets the number of primitives in the element.
PrimitiveTypeSCNGeometryPrimitiveType. Gets the drawing primitive for connecting vertices.

Public Methods

Encodes the state of the object on the provided encoder
FromData(NSData, SCNGeometryPrimitiveType, nint, nint) : SCNGeometryElement
Creates a new geometry element from the provided values.
FromSubmesh(MDLSubmesh) : SCNGeometryElement
Creates a new geometry element from the provided submesh.