public aiMeshVector(aiMeshVector other) : this(AssimpPINVOKE.new_aiMeshVector__SWIG_1(aiMeshVector.getCPtr(other)), true) { if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } }
public aiMeshVectorEnumerator(aiMeshVector collection) { collectionRef = collection; currentIndex = -1; currentObject = null; currentSize = collectionRef.Count; }
private aiMeshVector GetmMeshes() { IntPtr cPtr = AssimpPINVOKE.aiScene_GetmMeshes(swigCPtr); aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true); return(ret); }
public void SetRange(int index, aiMeshVector values) { AssimpPINVOKE.aiMeshVector_SetRange(swigCPtr, index, aiMeshVector.getCPtr(values)); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } }
public static aiMeshVector Repeat(aiMesh value, int count) { IntPtr cPtr = AssimpPINVOKE.aiMeshVector_Repeat(aiMesh.getCPtr(value), count); aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public aiMeshVector GetRange(int index, int count) { IntPtr cPtr = AssimpPINVOKE.aiMeshVector_GetRange(swigCPtr, index, count); aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true); if (AssimpPINVOKE.SWIGPendingException.Pending) { throw AssimpPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
private void CacheMeshes(aiMeshVector meshes) { var numMeshes = meshes.Count; meshCache = new Mesh[numMeshes]; meshBoundsMin = new Vector3[numMeshes]; meshBoundsMax = new Vector3[numMeshes]; for (int i = 0; i < numMeshes; ++i) { var mesh = meshes[i]; switch (mesh.mPrimitiveTypes) { case aiPrimitiveType.aiPrimitiveType_TRIANGLE: Vector3 min, max; meshCache[i] = CreateMesh(mesh, out min, out max); meshBoundsMin[i] = min; meshBoundsMax[i] = max; break; } } }
private void CacheMeshes(aiMeshVector meshes) { var numMeshes = meshes.Count; meshCache = new Mesh[numMeshes]; meshBoundsMin = new Vector3[numMeshes]; meshBoundsMax = new Vector3[numMeshes]; for (int i = 0; i < numMeshes; ++i) { var mesh = meshes[i]; switch (mesh.mPrimitiveTypes) { case aiPrimitiveType.aiPrimitiveType_TRIANGLE: Vector3 min, max; meshCache[i] = CreateMesh(mesh, out min, out max); meshBoundsMin[i] = min; meshBoundsMax[i] = max; break; } } }
internal static HandleRef getCPtr(aiMeshVector obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }