Class MDLVoxelArray

All Implemented Interfaces:
NSObjectProtocol, MDLNamed, ObjCProtocol

public class MDLVoxelArray
extends MDLObject
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • MDLVoxelArray

      public MDLVoxelArray()
    • MDLVoxelArray

      protected MDLVoxelArray​(NSObject.Handle h, long handle)
    • MDLVoxelArray

      protected MDLVoxelArray​(NSObject.SkipInit skipInit)
    • MDLVoxelArray

      public MDLVoxelArray​(MDLAsset asset, int divisions, float patchRadius)
    • MDLVoxelArray

      public MDLVoxelArray​(NSData voxelData, MDLAxisAlignedBoundingBox boundingBox, float voxelExtent)
  • Method Details

    • getCount

      public long getCount()
    • getVoxelIndexExtent

      public MDLVoxelIndexExtent getVoxelIndexExtent()
    • getBoundingBox

      public MDLAxisAlignedBoundingBox getBoundingBox()
    • isValidSignedShellField

      public boolean isValidSignedShellField()
    • getShellFieldInteriorThickness

      public float getShellFieldInteriorThickness()
    • setShellFieldInteriorThickness

      public void setShellFieldInteriorThickness​(float v)
    • getShellFieldExteriorThickness

      public float getShellFieldExteriorThickness()
    • setShellFieldExteriorThickness

      public void setShellFieldExteriorThickness​(float v)
    • init

      protected long init​(MDLAsset asset, int divisions, float patchRadius)
    • init

      protected long init​(NSData voxelData, MDLAxisAlignedBoundingBox boundingBox, float voxelExtent)
    • voxelExists

      public boolean voxelExists​(VectorInt4 index, boolean allowAnyX, boolean allowAnyY, boolean allowAnyZ, boolean allowAnyShell)
    • getVoxelsWithinExtent

      public NSData getVoxelsWithinExtent​(MDLVoxelIndexExtent extent)
    • getVoxelIndices

      public NSData getVoxelIndices()
    • setVoxel

      public void setVoxel​(VectorInt4 index)
    • setVoxels

      public void setVoxels​(MDLMesh mesh, int divisions, float patchRadius)
    • union

      public void union​(MDLVoxelArray voxels)
    • intersect

      public void intersect​(MDLVoxelArray voxels)
    • difference

      public void difference​(MDLVoxelArray voxels)
    • indexOfSpatialLocation

      public VectorInt4 indexOfSpatialLocation​(VectorFloat3 location)
    • getSpatialLocation

      public VectorFloat3 getSpatialLocation​(VectorInt4 index)
    • getVoxelBoundingBox

      public MDLAxisAlignedBoundingBox getVoxelBoundingBox​(VectorInt4 index)
    • convertToSignedShellField

      public void convertToSignedShellField()
    • coarseMesh

      public MDLMesh coarseMesh()
    • coarseMeshUsingAllocator

      public MDLMesh coarseMeshUsingAllocator​(MDLMeshBufferAllocator allocator)
    • getMesh

      public MDLMesh getMesh​(MDLMeshBufferAllocator allocator)