@@ -4425,11 +4425,18 @@ def testModelBound( self ) :
44254425 pxr .UsdGeom .Xform .Define ( stage , "/withoutModelAPI" )
44264426 pxr .UsdGeom .Xform .Define ( stage , "/withModelAPI" )
44274427 pxr .UsdGeom .Xform .Define ( stage , "/withModelAPIAndExtent" )
4428+ pxr .UsdGeom .Xform .Define ( stage , "/withKind" )
4429+ pxr .UsdGeom .Xform .Define ( stage , "/withKindAndExtent" )
44284430
44294431 pxr .UsdGeom .ModelAPI .Apply ( stage .GetPrimAtPath ( "/withModelAPI" ) )
44304432 modelAPI = pxr .UsdGeom .ModelAPI .Apply ( stage .GetPrimAtPath ( "/withModelAPIAndExtent" ) )
44314433 modelAPI .SetExtentsHint ( [ ( 1 , 2 , 3 ), ( 4 , 5 , 6 ) ] )
44324434
4435+ stage .GetPrimAtPath ( "/withKind" ).SetKind ( "group" )
4436+ stage .GetPrimAtPath ( "/withKindAndExtent" ).SetKind ( "group" )
4437+ modelAPI = pxr .UsdGeom .ModelAPI ( stage .GetPrimAtPath ( "/withKindAndExtent" ) )
4438+ modelAPI .SetExtentsHint ( [ ( 1 , 2 , 3 ), ( 4 , 5 , 6 ) ] )
4439+
44334440 stage .GetRootLayer ().Save ()
44344441 del stage
44354442
@@ -4440,6 +4447,9 @@ def testModelBound( self ) :
44404447 self .assertFalse ( root .child ( "withModelAPI" ).hasBound () )
44414448 self .assertTrue ( root .child ( "withModelAPIAndExtent" ).hasBound () )
44424449 self .assertEqual ( root .child ( "withModelAPIAndExtent" ).readBound ( 0 ), imath .Box3d ( imath .V3d ( 1 , 2 , 3 ), imath .V3d ( 4 , 5 , 6 ) ) )
4450+ self .assertFalse ( root .child ( "withKind" ).hasBound () )
4451+ self .assertTrue ( root .child ( "withKindAndExtent" ).hasBound () )
4452+ self .assertEqual ( root .child ( "withKindAndExtent" ).readBound ( 0 ), imath .Box3d ( imath .V3d ( 1 , 2 , 3 ), imath .V3d ( 4 , 5 , 6 ) ) )
44434453
44444454 def testAnimatedModelBound ( self ) :
44454455
0 commit comments