コード例 #1
0
ファイル: VtValue.cs プロジェクト: khunrobot/usd-unity-sdk
 public VtValue(VtIntArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_31(VtIntArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 public void swap(VtIntArray other)
 {
     UsdCsPINVOKE.VtIntArray_swap(swigCPtr, VtIntArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        public bool IsIdentical(VtIntArray other)
        {
            bool ret = UsdCsPINVOKE.VtIntArray_IsIdentical(swigCPtr, VtIntArray.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
        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);
        }
コード例 #12
0
        public bool GetFaceIndices(VtIntArray faceIndices)
        {
            bool ret = UsdCsPINVOKE.UsdGeomFaceSetAPI_GetFaceIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(faceIndices));

            return(ret);
        }
コード例 #13
0
        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);
        }
コード例 #14
0
        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);
        }
コード例 #15
0
        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);
        }
コード例 #16
0
        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);
        }
コード例 #17
0
 public VtIntArray(VtIntArray other) : this(UsdCsPINVOKE.new_VtIntArray__SWIG_3(VtIntArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #18
0
        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);
        }
コード例 #19
0
        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);
        }
コード例 #20
0
        public static UsdGeomCollectionAPI Create(UsdSchemaBase schemaObj, TfToken name, SdfPathVector targets, VtIntArray targetFaceCounts)
        {
            UsdGeomCollectionAPI ret = new UsdGeomCollectionAPI(UsdCsPINVOKE.UsdGeomCollectionAPI_Create__SWIG_5(UsdSchemaBase.getCPtr(schemaObj), TfToken.getCPtr(name), SdfPathVector.getCPtr(targets), VtIntArray.getCPtr(targetFaceCounts)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #21
0
        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);
        }
コード例 #22
0
        public bool GetTargetFaceIndices(VtIntArray targetFaceIndices)
        {
            bool ret = UsdCsPINVOKE.UsdGeomCollectionAPI_GetTargetFaceIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(targetFaceIndices));

            return(ret);
        }
コード例 #23
0
 public UsdSkelTopology(VtIntArray parentIndices) : this(UsdCsPINVOKE.new_UsdSkelTopology__SWIG_3(VtIntArray.getCPtr(parentIndices)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #24
0
        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);
        }
コード例 #25
0
        public bool GetIndices(VtIntArray indices)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPrimvar_GetIndices__SWIG_1(swigCPtr, VtIntArray.getCPtr(indices));

            return(ret);
        }
コード例 #26
0
        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);
        }