public VtIntArray(VtIntArray other) : this(UsdCsPINVOKE.new_VtIntArray__SWIG_3(VtIntArray.getCPtr(other)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public UsdSkelTopology(VtIntArray parentIndices) : this(UsdCsPINVOKE.new_UsdSkelTopology__SWIG_3(VtIntArray.getCPtr(parentIndices)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public VtValue(VtIntArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_31(VtIntArray.getCPtr(obj)), true) { if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public void swap(VtIntArray other) { UsdCsPINVOKE.VtIntArray_swap(swigCPtr, VtIntArray.getCPtr(other)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public static void Triangulate(VtIntArray faceVertexIndices, VtIntArray faceVertexCounts) { UsdCsPINVOKE.UsdGeomMesh_Triangulate(VtIntArray.getCPtr(faceVertexIndices), VtIntArray.getCPtr(faceVertexCounts)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } }
public bool ComputeVaryingJointInfluences(uint numPoints, VtIntArray indices, VtFloatArray weights, UsdTimeCode time) { bool ret = UsdCsPINVOKE.UsdSkelSkinningQuery_ComputeVaryingJointInfluences__SWIG_0(swigCPtr, numPoints, VtIntArray.getCPtr(indices), VtFloatArray.getCPtr(weights), UsdTimeCode.getCPtr(time)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool IsIdentical(VtIntArray other) { bool ret = UsdCsPINVOKE.VtIntArray_IsIdentical(swigCPtr, VtIntArray.getCPtr(other)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool ComputeFlattened(VtValue value, VtValue attrVal, VtIntArray indices, /*cstype*/ out string errString) { bool ret = UsdCsPINVOKE.UsdGeomPrimvar_ComputeFlattened__SWIG_4(VtValue.getCPtr(value), VtValue.getCPtr(attrVal), VtIntArray.getCPtr(indices), out errString); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetIndices(VtIntArray indices, UsdTimeCode time) { bool ret = UsdCsPINVOKE.UsdGeomPrimvar_GetIndices__SWIG_0(swigCPtr, VtIntArray.getCPtr(indices), UsdTimeCode.getCPtr(time)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool ValidateTopology(VtIntArray faceVertexIndices, VtIntArray faceVertexCounts, uint numPoints) { bool ret = UsdCsPINVOKE.UsdGeomMesh_ValidateTopology__SWIG_1(VtIntArray.getCPtr(faceVertexIndices), VtIntArray.getCPtr(faceVertexCounts), numPoints); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static VtIntArray GetUnassignedIndices(UsdGeomSubsetVector subsets, uint elementCount) { VtIntArray ret = new VtIntArray(UsdCsPINVOKE.UsdGeomSubset_GetUnassignedIndices__SWIG_1(UsdGeomSubsetVector.getCPtr(subsets), elementCount), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetFaceCounts(VtIntArray faceCounts, UsdTimeCode time) { bool ret = UsdCsPINVOKE.UsdGeomFaceSetAPI_SetFaceCounts__SWIG_0(swigCPtr, VtIntArray.getCPtr(faceCounts), UsdTimeCode.getCPtr(time)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetIndices(VtIntArray indices) { bool ret = UsdCsPINVOKE.UsdGeomPrimvar_SetIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(indices)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool AddTarget(SdfPath target, VtIntArray faceIndices) { bool ret = UsdCsPINVOKE.UsdGeomCollectionAPI_AddTarget__SWIG_1(swigCPtr, SdfPath.getCPtr(target), VtIntArray.getCPtr(faceIndices)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool GetTargetFaceIndices(VtIntArray targetFaceIndices, UsdTimeCode time) { bool ret = UsdCsPINVOKE.UsdGeomCollectionAPI_GetTargetFaceIndices__SWIG_0(swigCPtr, VtIntArray.getCPtr(targetFaceIndices), UsdTimeCode.getCPtr(time)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool SetTargetFaceIndices(VtIntArray targetFaceIndices) { bool ret = UsdCsPINVOKE.UsdGeomCollectionAPI_SetTargetFaceIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(targetFaceIndices)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool Equals(VtIntArray lhs, VtIntArray rhs) { bool ret = UsdCsPINVOKE.VtIntArray_Equals(VtIntArray.getCPtr(lhs), VtIntArray.getCPtr(rhs)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool AppendFaceGroup(VtIntArray faceIndices) { bool ret = UsdCsPINVOKE.UsdGeomFaceSetAPI_AppendFaceGroup__SWIG_2(swigCPtr, VtIntArray.getCPtr(faceIndices)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool AppendFaceGroup(VtIntArray faceIndices, SdfPath bindingTarget, UsdTimeCode time) { bool ret = UsdCsPINVOKE.UsdGeomFaceSetAPI_AppendFaceGroup__SWIG_0(swigCPtr, VtIntArray.getCPtr(faceIndices), SdfPath.getCPtr(bindingTarget), UsdTimeCode.getCPtr(time)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public UsdGeomSubset CreateMaterialBindSubset(TfToken subsetName, VtIntArray indices) { UsdGeomSubset ret = new UsdGeomSubset(UsdCsPINVOKE.UsdShadeMaterialBindingAPI_CreateMaterialBindSubset__SWIG_1(swigCPtr, TfToken.getCPtr(subsetName), VtIntArray.getCPtr(indices)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
static public VtIntArray ToVtArray(int[] input) { var output = new VtIntArray((uint)input.Length); unsafe { fixed(int *p = input) { output.CopyFromArray((IntPtr)p); } } return(output); }
static public void FromVtArray(VtIntArray input, ref int[] output) { if (output.Length != input.size()) { output = UsdIo.ArrayAllocator.Malloc <int>(input.size()); } unsafe { fixed(int *p = output) { input.CopyToArray((IntPtr)p); } } }
public static void TestTriangulation() { VtIntArray indices = new VtIntArray(); VtIntArray faceCounts = new VtIntArray(); faceCounts.push_back(5); indices.push_back(0); indices.push_back(1); indices.push_back(2); indices.push_back(3); indices.push_back(4); faceCounts.push_back(4); indices.push_back(5); indices.push_back(6); indices.push_back(7); indices.push_back(8); faceCounts.push_back(3); indices.push_back(9); indices.push_back(10); indices.push_back(11); // Degenerate face. faceCounts.push_back(2); indices.push_back(12); indices.push_back(13); UsdGeomMesh.Triangulate(indices, faceCounts); AssertEqual((int)faceCounts.size(), 6); for (int i = 0; i < faceCounts.size(); i++) { AssertEqual((int)faceCounts[i], 3); } AssertEqual((int)indices.size(), 18); AssertEqual(indices[0], 0); AssertEqual(indices[1], 1); AssertEqual(indices[2], 2); AssertEqual(indices[3], 0); AssertEqual(indices[4], 2); AssertEqual(indices[5], 3); AssertEqual(indices[6], 0); AssertEqual(indices[7], 3); AssertEqual(indices[8], 4); AssertEqual(indices[9], 5); AssertEqual(indices[10], 6); AssertEqual(indices[11], 7); AssertEqual(indices[12], 5); AssertEqual(indices[13], 7); AssertEqual(indices[14], 8); AssertEqual(indices[15], 9); AssertEqual(indices[16], 10); AssertEqual(indices[17], 11); }
public static UsdGeomSubset CreateUniqueGeomSubset(UsdGeomImageable geom, TfToken subsetName, TfToken elementType, VtIntArray indices) { UsdGeomSubset ret = new UsdGeomSubset(UsdCsPINVOKE.UsdGeomSubset_CreateUniqueGeomSubset__SWIG_2(UsdGeomImageable.getCPtr(geom), TfToken.getCPtr(subsetName), TfToken.getCPtr(elementType), VtIntArray.getCPtr(indices)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
// Convenience API: generates garbage, do not use when performance matters. static public int[] FromVtArray(VtIntArray input) { int[] output = UsdIo.ArrayAllocator.Malloc <int>(input.size()); FromVtArray(input, ref output); return(output); }
public bool GetIndices(VtIntArray indices) { bool ret = UsdCsPINVOKE.UsdGeomPrimvar_GetIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(indices)); return(ret); }
public static bool ComputeInstanceTransformsAtTime(VtMatrix4dArray xforms, UsdStageWeakPtr stage, UsdTimeCode time, VtIntArray protoIndices, VtVec3fArray positions, VtVec3fArray velocities, UsdTimeCode velocitiesSampleTime, VtVec3fArray accelerations, VtVec3fArray scales, VtQuathArray orientations, VtVec3fArray angularVelocities, UsdTimeCode angularVelocitiesSampleTime, SdfPathVector protoPaths, UsdGeomBoolVector mask) { bool ret = UsdCsPINVOKE.UsdGeomPointInstancer_ComputeInstanceTransformsAtTime__SWIG_4(VtMatrix4dArray.getCPtr(xforms), UsdStageWeakPtr.getCPtr(stage), UsdTimeCode.getCPtr(time), VtIntArray.getCPtr(protoIndices), VtVec3fArray.getCPtr(positions), VtVec3fArray.getCPtr(velocities), UsdTimeCode.getCPtr(velocitiesSampleTime), VtVec3fArray.getCPtr(accelerations), VtVec3fArray.getCPtr(scales), VtQuathArray.getCPtr(orientations), VtVec3fArray.getCPtr(angularVelocities), UsdTimeCode.getCPtr(angularVelocitiesSampleTime), SdfPathVector.getCPtr(protoPaths), UsdGeomBoolVector.getCPtr(mask)); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool ComputeVaryingJointInfluences(uint numPoints, VtIntArray indices, VtFloatArray weights) { bool ret = UsdCsPINVOKE.UsdSkelSkinningQuery_ComputeVaryingJointInfluences__SWIG_1(swigCPtr, numPoints, VtIntArray.getCPtr(indices), VtFloatArray.getCPtr(weights)); return(ret); }
public bool GetFaceIndices(VtIntArray faceIndices) { bool ret = UsdCsPINVOKE.UsdGeomFaceSetAPI_GetFaceIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(faceIndices)); return(ret); }
static public List <int> ListFromVtArray(VtIntArray input) { return(FromVtArray(input).ToList()); }