@@ -4413,11 +4413,18 @@ def testModelBound( self ) :
44134413 pxr .UsdGeom .Xform .Define ( stage , "/withoutModelAPI" )
44144414 pxr .UsdGeom .Xform .Define ( stage , "/withModelAPI" )
44154415 pxr .UsdGeom .Xform .Define ( stage , "/withModelAPIAndExtent" )
4416+ pxr .UsdGeom .Xform .Define ( stage , "/withKind" )
4417+ pxr .UsdGeom .Xform .Define ( stage , "/withKindAndExtent" )
44164418
44174419 pxr .UsdGeom .ModelAPI .Apply ( stage .GetPrimAtPath ( "/withModelAPI" ) )
44184420 modelAPI = pxr .UsdGeom .ModelAPI .Apply ( stage .GetPrimAtPath ( "/withModelAPIAndExtent" ) )
44194421 modelAPI .SetExtentsHint ( [ ( 1 , 2 , 3 ), ( 4 , 5 , 6 ) ] )
44204422
4423+ stage .GetPrimAtPath ( "/withKind" ).SetKind ( "group" )
4424+ stage .GetPrimAtPath ( "/withKindAndExtent" ).SetKind ( "group" )
4425+ modelAPI = pxr .UsdGeom .ModelAPI ( stage .GetPrimAtPath ( "/withKindAndExtent" ) )
4426+ modelAPI .SetExtentsHint ( [ ( 1 , 2 , 3 ), ( 4 , 5 , 6 ) ] )
4427+
44214428 stage .GetRootLayer ().Save ()
44224429 del stage
44234430
@@ -4428,6 +4435,9 @@ def testModelBound( self ) :
44284435 self .assertFalse ( root .child ( "withModelAPI" ).hasBound () )
44294436 self .assertTrue ( root .child ( "withModelAPIAndExtent" ).hasBound () )
44304437 self .assertEqual ( root .child ( "withModelAPIAndExtent" ).readBound ( 0 ), imath .Box3d ( imath .V3d ( 1 , 2 , 3 ), imath .V3d ( 4 , 5 , 6 ) ) )
4438+ self .assertFalse ( root .child ( "withKind" ).hasBound () )
4439+ self .assertTrue ( root .child ( "withKindAndExtent" ).hasBound () )
4440+ self .assertEqual ( root .child ( "withKindAndExtent" ).readBound ( 0 ), imath .Box3d ( imath .V3d ( 1 , 2 , 3 ), imath .V3d ( 4 , 5 , 6 ) ) )
44314441
44324442 def testAnimatedModelBound ( self ) :
44334443
0 commit comments