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

Syntax

[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

Requirements

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

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

[read-only]
BytesPerIndexnint. Gets the byte stride of the data.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DataNSData. Getshe geometry data.
MaximumPointScreenSpaceRadiusnfloat.
MinimumPointScreenSpaceRadiusnfloat.
PointSizenfloat.
[read-only]
PrimitiveCountnint. Gets the number of primitives in the element.
PrimitiveRangeNSRange.
[read-only]
PrimitiveTypeSCNGeometryPrimitiveType. Gets the drawing primitive for connecting vertices.

Public Methods

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