示例#1
0
 public GfBBox3d(GfBBox3d rhs) : this(UsdCsPINVOKE.new_GfBBox3d__SWIG_1(GfBBox3d.getCPtr(rhs)), true)
 {
     if (UsdCsPINVOKE.SWIGPendingException.Pending)
     {
         throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
        public GfBBox3d ComputeUntransformedBound(UsdPrim prim, SWIGTYPE_p_std__setT_SdfPath_t pathsToSkip, SWIGTYPE_p_TfHashMapT_SdfPath_GfMatrix4d_SdfPath__Hash_t ctmOverrides)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomBBoxCache_ComputeUntransformedBound__SWIG_1(swigCPtr, UsdPrim.getCPtr(prim), SWIGTYPE_p_std__setT_SdfPath_t.getCPtr(pathsToSkip), SWIGTYPE_p_TfHashMapT_SdfPath_GfMatrix4d_SdfPath__Hash_t.getCPtr(ctmOverrides)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#3
0
        public bool Intersect(GfBBox3d box)
        {
            bool ret = UsdCsPINVOKE.GfRay_Intersect__SWIG_13(swigCPtr, GfBBox3d.getCPtr(box));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#4
0
        public static GfBBox3d Combine(GfBBox3d b1, GfBBox3d b2)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.GfBBox3d_Combine(GfBBox3d.getCPtr(b1), GfBBox3d.getCPtr(b2)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#5
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);
        }
示例#6
0
        public bool Intersect(GfBBox3d box, out double enterDistance)
        {
            bool ret = UsdCsPINVOKE.GfRay_Intersect__SWIG_12(swigCPtr, GfBBox3d.getCPtr(box), out enterDistance);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public GfBBox3d ComputeRelativeBound(UsdPrim prim, UsdPrim relativeToAncestorPrim)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomBBoxCache_ComputeRelativeBound(swigCPtr, UsdPrim.getCPtr(prim), UsdPrim.getCPtr(relativeToAncestorPrim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#8
0
        public bool Intersects(GfBBox3d bbox)
        {
            bool ret = UsdCsPINVOKE.GfFrustum_Intersects__SWIG_0(swigCPtr, GfBBox3d.getCPtr(bbox));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public GfBBox3d ComputeUntransformedBound(UsdPrim prim)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomBBoxCache_ComputeUntransformedBound__SWIG_0(swigCPtr, UsdPrim.getCPtr(prim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#10
0
        public GfBBox3d ComputePointInstanceUntransformedBound(UsdGeomPointInstancer instancer, long instanceId)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomBBoxCache_ComputePointInstanceUntransformedBound(swigCPtr, UsdGeomPointInstancer.getCPtr(instancer), instanceId), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#11
0
        public GfBBox3d ComputePointInstanceRelativeBound(UsdGeomPointInstancer instancer, long instanceId, UsdPrim relativeToAncestorPrim)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomBBoxCache_ComputePointInstanceRelativeBound(swigCPtr, UsdGeomPointInstancer.getCPtr(instancer), instanceId, UsdPrim.getCPtr(relativeToAncestorPrim)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#12
0
        public static bool Equals(GfBBox3d lhs, GfBBox3d rhs)
        {
            bool ret = UsdCsPINVOKE.GfBBox3d_Equals(GfBBox3d.getCPtr(lhs), GfBBox3d.getCPtr(rhs));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#13
0
        public GfBBox3d ComputeUntransformedBound(UsdTimeCode time)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomImageable_ComputeUntransformedBound__SWIG_4(swigCPtr, UsdTimeCode.getCPtr(time)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#14
0
        public GfBBox3d ComputeUntransformedBound(UsdTimeCode time, TfToken purpose1, TfToken purpose2, TfToken purpose3, TfToken purpose4)
        {
            GfBBox3d ret = new GfBBox3d(UsdCsPINVOKE.UsdGeomImageable_ComputeUntransformedBound__SWIG_0(swigCPtr, UsdTimeCode.getCPtr(time), TfToken.getCPtr(purpose1), TfToken.getCPtr(purpose2), TfToken.getCPtr(purpose3), TfToken.getCPtr(purpose4)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#15
0
        public static bool operator==(GfBBox3d lhs, GfBBox3d rhs)
        {
            // The Swig binding glue will re-enter this operator comparing to null, so
            // that case must be handled explicitly to avoid an infinite loop. This is still
            // not great, since it crosses the C#/C++ barrier twice. A better approache might
            // be to return a simple value from C++ that can be compared in C#.
            bool lnull = lhs as object == null;
            bool rnull = rhs as object == null;

            return((lnull == rnull) && ((lnull && rnull) || GfBBox3d.Equals(lhs, rhs)));
        }
示例#16
0
        public bool ComputePointInstanceUntransformedBounds(UsdGeomPointInstancer instancer, long[] instanceIdBegin, uint numIds, GfBBox3d result)
        {
            bool ret = UsdCsPINVOKE.UsdGeomBBoxCache_ComputePointInstanceUntransformedBounds(swigCPtr, UsdGeomPointInstancer.getCPtr(instancer), instanceIdBegin, numIds, GfBBox3d.getCPtr(result));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#17
0
        public bool ComputePointInstanceRelativeBounds(UsdGeomPointInstancer instancer, long[] instanceIdBegin, uint numIds, UsdPrim relativeToAncestorPrim, GfBBox3d result)
        {
            bool ret = UsdCsPINVOKE.UsdGeomBBoxCache_ComputePointInstanceRelativeBounds(swigCPtr, UsdGeomPointInstancer.getCPtr(instancer), instanceIdBegin, numIds, UsdPrim.getCPtr(relativeToAncestorPrim), GfBBox3d.getCPtr(result));

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#18
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GfBBox3d obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
示例#19
0
 override public bool Equals(object rhs)
 {
     return(GfBBox3d.Equals(this, rhs as GfBBox3d));
 }