@spiceErrorCheck<EOL>def dskmi2(vrtces, plates, finscl, corscl, worksz, voxpsz, voxlsz, makvtl, spxisz):
nv     = ctypes.c_int(len(vrtces))<EOL>vrtces = stypes.toDoubleMatrix(vrtces)<EOL>np     = ctypes.c_int(len(plates))<EOL>plates = stypes.toIntMatrix(plates)<EOL>finscl = ctypes.c_double(finscl)<EOL>corscl = ctypes.c_int(corscl)<EOL>worksz = ctypes.c_int(worksz)<EOL>voxpsz = ctypes.c_int(voxpsz)<EOL>voxlsz = ctypes.c_int(voxlsz)<EOL>makvtl = ctypes.c_int(makvtl)<EOL>spxisz = ctypes.c_int(spxisz)<EOL>work   = stypes.emptyIntMatrix(<NUM_LIT:2>, worksz)<EOL>spaixd = stypes.emptyDoubleVector(<NUM_LIT:10>) <EOL>spaixi = stypes.emptyIntVector(spxisz)<EOL>libspice.dskmi2_c(nv, vrtces, np, plates, finscl, corscl, worksz, voxpsz, voxlsz, makvtl, spxisz, work, spaixd, spaixi)<EOL>return stypes.cVectorToPython(spaixd), stypes.cVectorToPython(spaixi)<EOL>
Make spatial index for a DSK type 2 segment. The index is returned
as a pair of arrays, one of type int and one of type
float. These arrays are suitable for use with the DSK type 2
writer dskw02.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskmi2_c.html

:param vrtces: Vertices
:type vrtces: NxM-Element Array of floats
:param plates: Plates
:type plates: NxM-Element Array of ints
:param finscl: Fine voxel scale
:type finscl: float
:param corscl: Coarse voxel scale
:type corscl: int
:param worksz: Workspace size
:type worksz: int
:param voxpsz: Voxel plate pointer array size
:type voxpsz: int
:param voxlsz: Voxel plate list array size
:type voxlsz: int
:param makvtl: Vertex plate list flag
:type makvtl: bool
:param spxisz: Spatial index integer component size
:type spxisz: int
:return: double precision and integer components of the spatial index of the segment.
:rtype: tuple