One Logo Pool Ball
ModelIO · IOS API REFERENCE

MDLVoxelArray

class · iOS 9.0+ · SDK 27.1

class MDLVoxelArray

Members (25)

method · iOS 9.0+

coarseMesh

TypeScript
coarseMesh(): (MDLMesh) | null
Swift declaration
func coarseMesh() -> MDLMesh?
method · iOS 9.0+

coarseMesh

TypeScript
coarseMeshUsing(allocator?: (SDKHandle) | null): (MDLMesh) | null
Swift declaration
func coarseMesh(using allocator: (any MDLMeshBufferAllocator)?) -> MDLMesh?
method · iOS 9.0+

convertToSignedShellField

TypeScript
convertToSignedShellField(): void
Swift declaration
func convertToSignedShellField()
method · iOS 9.0+

difference

TypeScript
difference(voxels: MDLVoxelArray): void
Swift declaration
func difference(with voxels: MDLVoxelArray)
method · iOS 9.0+

index

TypeScript
index(location: SDKHandle): SDKHandle
Swift declaration
func index(ofSpatialLocation location: vector_float3) -> MDLVoxelIndex
init · iOS 9.0+

init

TypeScript
static initAssetDivisionsPatchRadius(asset: MDLAsset, divisions: number, patchRadius: number): MDLVoxelArray
Swift declaration
init(asset: MDLAsset, divisions: Int32, patchRadius: Float)
init · iOS 9.0+

init

TypeScript
static initDataBoundingBoxVoxelExtent(voxelData: ArrayBuffer, boundingBox: MDLAxisAlignedBoundingBox, voxelExtent: number): MDLVoxelArray
Swift declaration
init(data voxelData: Data, boundingBox: MDLAxisAlignedBoundingBox, voxelExtent: Float)
method · iOS 9.0+

intersect

TypeScript
intersect(voxels: MDLVoxelArray): void
Swift declaration
func intersect(with voxels: MDLVoxelArray)
method · iOS 9.0+

mesh

TypeScript
mesh(allocator?: (SDKHandle) | null): (MDLMesh) | null
Swift declaration
func mesh(using allocator: (any MDLMeshBufferAllocator)?) -> MDLMesh?
method · iOS 9.0+

setVoxelAtIndex

TypeScript
setVoxelAtIndex(index: SDKHandle): void
Swift declaration
func setVoxelAtIndex(_ index: MDLVoxelIndex)
method · iOS 9.0+

setVoxelsFor

TypeScript
setVoxelsFor(mesh: MDLMesh, divisions: number, patchRadius: number): void
Swift declaration
func setVoxelsFor(_ mesh: MDLMesh, divisions: Int32, patchRadius: Float)
method · iOS 9.0+

spatialLocation

TypeScript
spatialLocation(index: SDKHandle): SDKHandle
Swift declaration
func spatialLocation(ofIndex index: MDLVoxelIndex) -> vector_float3
method · iOS 9.0+

union

TypeScript
union(voxels: MDLVoxelArray): void
Swift declaration
func union(with voxels: MDLVoxelArray)
method · iOS 9.0+

voxelBoundingBox

TypeScript
voxelBoundingBox(index: SDKHandle): MDLAxisAlignedBoundingBox
Swift declaration
func voxelBoundingBox(atIndex index: MDLVoxelIndex) -> MDLAxisAlignedBoundingBox
method · iOS 9.0+

voxelExists

TypeScript
voxelExists(index: SDKHandle, allowAnyX: boolean, allowAnyY: boolean, allowAnyZ: boolean, allowAnyShell: boolean): boolean
Swift declaration
func voxelExists(atIndex index: MDLVoxelIndex, allowAnyX: Bool, allowAnyY: Bool, allowAnyZ: Bool, allowAnyShell: Bool) -> Bool
method · iOS 9.0+

voxelIndices

TypeScript
voxelIndices(): (ArrayBuffer) | null
Swift declaration
func voxelIndices() -> Data?
method · iOS 9.0+

voxels

TypeScript
voxels(extent: MDLVoxelIndexExtent): (ArrayBuffer) | null
Swift declaration
func voxels(within extent: MDLVoxelIndexExtent) -> Data?
get · iOS 9.0+

boundingBox

TypeScript
get boundingBox(): MDLAxisAlignedBoundingBox
Swift declaration
var boundingBox: MDLAxisAlignedBoundingBox { get }
get · iOS 9.0+

count

TypeScript
get count(): number
Swift declaration
var count: Int { get }
get · iOS 9.0+

isValidSignedShellField

TypeScript
get isValidSignedShellField(): boolean
Swift declaration
var isValidSignedShellField: Bool { get }
get · iOS 9.0+

shellFieldExteriorThickness

TypeScript
get shellFieldExteriorThickness(): number
Swift declaration
var shellFieldExteriorThickness: Float { get set }
set · iOS 9.0+

shellFieldExteriorThickness

TypeScript
set shellFieldExteriorThickness(value: number)
Swift declaration
var shellFieldExteriorThickness: Float { get set }
get · iOS 9.0+

shellFieldInteriorThickness

TypeScript
get shellFieldInteriorThickness(): number
Swift declaration
var shellFieldInteriorThickness: Float { get set }
set · iOS 9.0+

shellFieldInteriorThickness

TypeScript
set shellFieldInteriorThickness(value: number)
Swift declaration
var shellFieldInteriorThickness: Float { get set }
get · iOS 9.0+

voxelIndexExtent

TypeScript
get voxelIndexExtent(): MDLVoxelIndexExtent
Swift declaration
var voxelIndexExtent: MDLVoxelIndexExtent { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MDLVoxelArray.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All ModelIO types →