Пример #1
0
 public VtMatrix4dArray(VtMatrix4dArray other) : this(UsdCsPINVOKE.new_VtMatrix4dArray__SWIG_1(VtMatrix4dArray.getCPtr(other)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public VtValue(VtMatrix4dArray obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_34(VtMatrix4dArray.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public void swap(VtMatrix4dArray other)
 {
     UsdCsPINVOKE.VtMatrix4dArray_swap(swigCPtr, VtMatrix4dArray.getCPtr(other));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
        public bool IsIdentical(VtMatrix4dArray other)
        {
            bool ret = UsdCsPINVOKE.VtMatrix4dArray_IsIdentical(swigCPtr, VtMatrix4dArray.getCPtr(other));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #5
0
        public bool RemapTransforms(VtMatrix4dArray source, VtMatrix4dArray target, int elementSize)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimMapper_RemapTransforms__SWIG_0(swigCPtr, VtMatrix4dArray.getCPtr(source), VtMatrix4dArray.getCPtr(target), elementSize);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #6
0
        public float ComputeExtentsPadding(VtMatrix4dArray skelRestXforms, UsdGeomBoundable boundable)
        {
            float ret = UsdCsPINVOKE.UsdSkelSkinningQuery_ComputeExtentsPadding(swigCPtr, VtMatrix4dArray.getCPtr(skelRestXforms), UsdGeomBoundable.getCPtr(boundable));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #7
0
        public static bool Equals(VtMatrix4dArray lhs, VtMatrix4dArray rhs)
        {
            bool ret = UsdCsPINVOKE.VtMatrix4dArray_Equals(VtMatrix4dArray.getCPtr(lhs), VtMatrix4dArray.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #8
0
        public bool GetTransforms(VtMatrix4dArray xforms, UsdTimeCode time)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimation_GetTransforms__SWIG_0(swigCPtr, VtMatrix4dArray.getCPtr(xforms), UsdTimeCode.getCPtr(time));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #9
0
        public bool ComputeSkinnedPoints(VtMatrix4dArray xforms, VtVec3fArray points)
        {
            bool ret = UsdCsPINVOKE.UsdSkelSkinningQuery_ComputeSkinnedPoints__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms), VtVec3fArray.getCPtr(points));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #10
0
        public bool ComputeInstanceTransformsAtTime(VtMatrix4dArray xforms, UsdTimeCode time, UsdTimeCode baseTime)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPointInstancer_ComputeInstanceTransformsAtTime__SWIG_2(swigCPtr, VtMatrix4dArray.getCPtr(xforms), UsdTimeCode.getCPtr(time), UsdTimeCode.getCPtr(baseTime));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #11
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);
        }
Пример #12
0
        static public List <UnityEngine.Matrix4x4> ListFromVtArray(VtMatrix4dArray input)
        {
            var output = UsdIo.ArrayAllocator.Malloc <UnityEngine.Matrix4x4>(input.size());

            for (int i = 0; i < output.Length; i++)
            {
                output[i] = FromMatrix(input[i]);
            }
            return(output.ToList());
        }
Пример #13
0
        public bool ComputeInstanceTransformsAtTime(VtMatrix4dArray xforms, UsdTimeCode time, UsdTimeCode baseTime, UsdGeomPointInstancer.ProtoXformInclusion doProtoXforms, UsdGeomPointInstancer.MaskApplication applyMask)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPointInstancer_ComputeInstanceTransformsAtTime__SWIG_0(swigCPtr, VtMatrix4dArray.getCPtr(xforms), UsdTimeCode.getCPtr(time), UsdTimeCode.getCPtr(baseTime), (int)doProtoXforms, (int)applyMask);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #14
0
        // ----------------------------------------------------------------------------------------- //
        // Matrix4x4[] / VtArray<GfMatrix4d>
        // ----------------------------------------------------------------------------------------- //
        static public VtMatrix4dArray ToVtArray(UnityEngine.Matrix4x4[] input)
        {
            var output = new VtMatrix4dArray((uint)input.Length);

            for (int i = 0; i < input.Length; i++)
            {
                output[i] = ToGfMatrix(input[i]);
            }
            return(output);
        }
Пример #15
0
        public bool SetTransforms(VtMatrix4dArray xforms)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimation_SetTransforms__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #16
0
        public bool ComputeSkinnedTransform(VtMatrix4dArray xforms, GfMatrix4d xform)
        {
            bool ret = UsdCsPINVOKE.UsdSkelSkinningQuery_ComputeSkinnedTransform__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms), GfMatrix4d.getCPtr(xform));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #17
0
        public bool ComputeJointLocalTransforms(VtMatrix4dArray xforms, UsdTimeCode time)
        {
            bool ret = UsdCsPINVOKE.UsdSkelSkeletonQuery_ComputeJointLocalTransforms__SWIG_3(swigCPtr, VtMatrix4dArray.getCPtr(xforms), UsdTimeCode.getCPtr(time));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #18
0
        static public UnityEngine.Matrix4x4[] FromVtArray(VtMatrix4dArray input)
        {
            var output = UsdIo.ArrayAllocator.Malloc <UnityEngine.Matrix4x4>(input.size());

            for (int i = 0; i < output.Length; i++)
            {
                output[i] = FromMatrix(input[i]);
            }

            /* This doesn't work because we're converting double/float.
             * Should add a specialized C++ function to do this conversion.
             * unsafe
             * {
             * fixed (UnityEngine.Matrix4x4* p = output) {
             *  input.CopyToArray((IntPtr)p);
             * }
             * }
             */
            return(output);
        }
Пример #19
0
        public bool ComputeJointWorldTransforms(VtMatrix4dArray xforms, UsdGeomXformCache xfCache)
        {
            bool ret = UsdCsPINVOKE.UsdSkelSkeletonQuery_ComputeJointWorldTransforms__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms), UsdGeomXformCache.getCPtr(xfCache));

            return(ret);
        }
Пример #20
0
        public bool GetTransforms(VtMatrix4dArray xforms)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimation_GetTransforms__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms));

            return(ret);
        }
Пример #21
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VtMatrix4dArray obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Пример #22
0
        public bool GetJointWorldBindTransforms(VtMatrix4dArray xforms)
        {
            bool ret = UsdCsPINVOKE.UsdSkelSkeletonQuery_GetJointWorldBindTransforms(swigCPtr, VtMatrix4dArray.getCPtr(xforms));

            return(ret);
        }
Пример #23
0
        public bool ComputeJointLocalTransforms(VtMatrix4dArray xforms)
        {
            bool ret = UsdCsPINVOKE.UsdSkelAnimQuery_ComputeJointLocalTransforms__SWIG_1(swigCPtr, VtMatrix4dArray.getCPtr(xforms));

            return(ret);
        }