Пример #1
0
 public GfCamera(GfMatrix4d transform, GfCamera.Projection projection, float horizontalAperture, float verticalAperture, float horizontalApertureOffset, float verticalApertureOffset, float focalLength, GfRange1f clippingRange, GfVec4fVector clippingPlanes, float fStop) : this(UsdCsPINVOKE.new_GfCamera__SWIG_1(GfMatrix4d.getCPtr(transform), (int)projection, horizontalAperture, verticalAperture, horizontalApertureOffset, verticalApertureOffset, focalLength, GfRange1f.getCPtr(clippingRange), GfVec4fVector.getCPtr(clippingPlanes), fStop), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public GfFrustum(GfMatrix4d camToWorldXf, GfRange2d window, GfRange1d nearFar, GfFrustum.ProjectionType projectionType) : this(UsdCsPINVOKE.new_GfFrustum__SWIG_4(GfMatrix4d.getCPtr(camToWorldXf), GfRange2d.getCPtr(window), GfRange1d.getCPtr(nearFar), (int)projectionType), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #3
0
 public VtValue(GfMatrix4d obj) : this(UsdCsPINVOKE.new_VtValue__SWIG_7(GfMatrix4d.getCPtr(obj)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #4
0
 public GfCamera(GfMatrix4d transform) : this(UsdCsPINVOKE.new_GfCamera__SWIG_10(GfMatrix4d.getCPtr(transform)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #5
0
 public GfCamera(GfMatrix4d transform, GfCamera.Projection projection, float horizontalAperture) : this(UsdCsPINVOKE.new_GfCamera__SWIG_8(GfMatrix4d.getCPtr(transform), (int)projection, horizontalAperture), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #6
0
 public GfCamera(GfMatrix4d transform, GfCamera.Projection projection) : this(UsdCsPINVOKE.new_GfCamera__SWIG_9(GfMatrix4d.getCPtr(transform), (int)projection), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #7
0
 public GfBBox3d(GfRange3d box, GfMatrix4d matrix) : this(UsdCsPINVOKE.new_GfBBox3d__SWIG_3(GfRange3d.getCPtr(box), GfMatrix4d.getCPtr(matrix)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        static public UnityEngine.Matrix4x4 FromMatrix(GfMatrix4d gfMat)
        {
            // Note that USD is row-major and Unity is column-major, the arguments below are pivoted
            // to account for this.
            UnityEngine.Matrix4x4 ret = new UnityEngine.Matrix4x4();
            double[] tmp = UsdIo.ArrayAllocator.Malloc <double>(16);
            gfMat.CopyToArray(tmp);

            ret[0, 0] = (float)tmp[0];
            ret[1, 0] = (float)tmp[1];
            ret[2, 0] = (float)tmp[2];
            ret[3, 0] = (float)tmp[3];

            ret[0, 1] = (float)tmp[4 + 0];
            ret[1, 1] = (float)tmp[4 + 1];
            ret[2, 1] = (float)tmp[4 + 2];
            ret[3, 1] = (float)tmp[4 + 3];

            ret[0, 2] = (float)tmp[8 + 0];
            ret[1, 2] = (float)tmp[8 + 1];
            ret[2, 2] = (float)tmp[8 + 2];
            ret[3, 2] = (float)tmp[8 + 3];

            ret[0, 3] = (float)tmp[12 + 0];
            ret[1, 3] = (float)tmp[12 + 1];
            ret[2, 3] = (float)tmp[12 + 2];
            ret[3, 3] = (float)tmp[12 + 3];
            UsdIo.ArrayAllocator.Free(tmp.GetType(), (uint)tmp.Length, tmp);
            return(ret);
        }
Пример #9
0
 public VtMatrix4dArray(uint n, GfMatrix4d value) : this(UsdCsPINVOKE.new_VtMatrix4dArray__SWIG_4(n, GfMatrix4d.getCPtr(value)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #10
0
 public GfMatrix4f(GfMatrix4d m) : this(UsdCsPINVOKE.new_GfMatrix4f__SWIG_9(GfMatrix4d.getCPtr(m)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #11
0
 protected void SetValue(int index, GfMatrix4d value)
 {
     UsdCsPINVOKE.VtMatrix4dArray_SetValue(swigCPtr, index, GfMatrix4d.getCPtr(value));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #12
0
 public void SetPositionAndRotationFromMatrix(GfMatrix4d camToWorldXf)
 {
     UsdCsPINVOKE.GfFrustum_SetPositionAndRotationFromMatrix(swigCPtr, GfMatrix4d.getCPtr(camToWorldXf));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #13
0
 public void SetTransform(GfMatrix4d val)
 {
     UsdCsPINVOKE.GfCamera_SetTransform(swigCPtr, GfMatrix4d.getCPtr(val));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #14
0
 public void SetMatrix(GfMatrix4d matrix)
 {
     UsdCsPINVOKE.GfBBox3d_SetMatrix(swigCPtr, GfMatrix4d.getCPtr(matrix));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #15
0
 public void push_back(GfMatrix4d elem)
 {
     UsdCsPINVOKE.VtMatrix4dArray_push_back(swigCPtr, GfMatrix4d.getCPtr(elem));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #16
0
 public static void DecomposeRotation(GfMatrix4d rot, GfVec3d TwAxis, GfVec3d FBAxis, GfVec3d LRAxis, double handedness, ref double thetaTw, ref double thetaFB, ref double thetaLR)
 {
     UsdCsPINVOKE.GfRotation_DecomposeRotation__SWIG_3(GfMatrix4d.getCPtr(rot), GfVec3d.getCPtr(TwAxis), GfVec3d.getCPtr(FBAxis), GfVec3d.getCPtr(LRAxis), handedness, ref thetaTw, ref thetaFB, ref thetaLR);
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #17
0
 public void assign(uint n, GfMatrix4d fill)
 {
     UsdCsPINVOKE.VtMatrix4dArray_assign(swigCPtr, n, GfMatrix4d.getCPtr(fill));
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #18
0
        public static bool ComputeExtent(VtVec3fArray points, GfMatrix4d transform, VtVec3fArray extent)
        {
            bool ret = UsdCsPINVOKE.UsdGeomPointBased_ComputeExtent__SWIG_1(VtVec3fArray.getCPtr(points), GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #19
0
        public static bool ComputeExtent(double height, double radius, TfToken axis, GfMatrix4d transform, VtVec3fArray extent)
        {
            bool ret = UsdCsPINVOKE.UsdGeomCone_ComputeExtent__SWIG_1(height, radius, TfToken.getCPtr(axis), GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent));

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

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #21
0
        public GfMatrix4d SetRotate(GfRotation rot)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetRotate__SWIG_1(swigCPtr, GfRotation.getCPtr(rot)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #22
0
        public GfMatrix4d SetLookAt(GfVec3d eyePoint, GfRotation orientation)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetLookAt__SWIG_1(swigCPtr, GfVec3d.getCPtr(eyePoint), GfRotation.getCPtr(orientation)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #23
0
        public GfMatrix4d SetTransform(GfMatrix3d rotmx, GfVec3d translate)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetTransform__SWIG_1(swigCPtr, GfMatrix3d.getCPtr(rotmx), GfVec3d.getCPtr(translate)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #24
0
        public GfMatrix4d SetTranslateOnly(GfVec3d t)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetTranslateOnly(swigCPtr, GfVec3d.getCPtr(t)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #25
0
        public GfMatrix4d SetScale(GfVec3d scaleFactors)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetScale__SWIG_1(swigCPtr, GfVec3d.getCPtr(scaleFactors)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #26
0
        public GfMatrix4d SetRotateOnly(GfMatrix3d mx)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetRotateOnly__SWIG_2(swigCPtr, GfMatrix3d.getCPtr(mx)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #27
0
        public static bool IntersectsViewVolume(GfBBox3d bbox, GfMatrix4d vpMat)
        {
            bool ret = UsdCsPINVOKE.GfFrustum_IntersectsViewVolume(GfBBox3d.getCPtr(bbox), GfMatrix4d.getCPtr(vpMat));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #28
0
        public static bool ComputeExtent(double size, GfMatrix4d transform, VtVec3fArray extent)
        {
            bool ret = UsdCsPINVOKE.UsdGeomCube_ComputeExtent__SWIG_1(size, GfMatrix4d.getCPtr(transform), VtVec3fArray.getCPtr(extent));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #29
0
        public GfRay Transform(GfMatrix4d matrix)
        {
            GfRay ret = new GfRay(UsdCsPINVOKE.GfRay_Transform(swigCPtr, GfMatrix4d.getCPtr(matrix)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #30
0
        public GfMatrix4d SetDiagonal(GfVec4d arg0)
        {
            GfMatrix4d ret = new GfMatrix4d(UsdCsPINVOKE.GfMatrix4d_SetDiagonal__SWIG_1(swigCPtr, GfVec4d.getCPtr(arg0)), false);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }