6 using System.Runtime.InteropServices;
8 using System.Collections.Generic;
28 [StructLayout(LayoutKind.Sequential, Pack = 1)]
40 SurfaceNotPartOfShape,
44 SurfaceHeight_Between,
60 RectangleSize_Between,
65 RectangleLength_Between,
70 RectangleWidth_Between,
93 [StructLayout(LayoutKind.Sequential, Pack = 1)]
631 [StructLayout(LayoutKind.Sequential, Pack = 1)]
636 ConstraintCount = componentConstraints.Count;
654 RectanglesPerpendicular,
656 RectanglesSameLength,
668 [StructLayout(LayoutKind.Sequential, Pack = 1)]
841 [DllImport(
"SpatialUnderstanding", CallingConvention = CallingConvention.Cdecl)]
842 public static extern int QueryShape_FindPositionsOnShape(
843 [In, MarshalAs(UnmanagedType.LPStr)]
string shapeName,
844 [In]
float minRadius,
846 [In, Out] IntPtr shapeData);
856 [DllImport(
"SpatialUnderstanding", CallingConvention = CallingConvention.Cdecl)]
857 public static extern int QueryShape_FindShapeHalfDims(
858 [In, MarshalAs(UnmanagedType.LPStr)]
string shapeName,
860 [In, Out] IntPtr shapeData);
873 [DllImport(
"SpatialUnderstanding", CallingConvention = CallingConvention.Cdecl)]
874 public static extern int AddShape(
875 [In, MarshalAs(UnmanagedType.LPStr)]
string shapeName,
876 [In]
int componentCount,
877 [In] IntPtr components,
878 [In]
int shapeConstraints,
879 [In] IntPtr constraints);
885 [DllImport(
"SpatialUnderstanding", CallingConvention = CallingConvention.Cdecl)]
886 public static extern void ActivateShapeAnalysis();
891 [DllImport(
"SpatialUnderstanding", CallingConvention = CallingConvention.Cdecl)]
892 public static extern void RemoveAllShapes();