/// <summary> /// Get a list of centers of rotations from the cpp mesh, copied /// </summary> /// <returns></returns> public Vector3[] GetCentersOfRotation() { int count = GetCenterCount(); var centers = new Vector3[count]; var handle = GCHandle.Alloc(centers, GCHandleType.Pinned); NativeInterface.GetCentersOfRotation(this._cppMesh, handle.AddrOfPinnedObject(), count); handle.Free(); return(centers); }