Skip to content

Commit 9ead39d

Browse files
yannciivanimanishi
authored andcommitted
LiveSceneTest: Adjust for updated MeshAlgo::segment
Commit 0195899 updated `MeshAlgo::segment` to use the new `MeshSplitter` introduced in commit bf2040e. The MeshSplitter does not preserve Vertex order as of now, which leads to changes in corner and crease Ids. NOTE: The round trip from Houdini Geometry to a Cortex MeshPrimitive and back to Houdini Geometry still works correctly. Corner and crease data is applied at the correct point positions, just the point number changes
1 parent a695f97 commit 9ead39d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Build
1515
- Added `VDB_PYTHON_PATH` to USD tests.
1616
- Added `INSTALL_CREATE_SYMLINKS`, which allows you to disable the creation of version symlinks at the end of the install.
1717

18+
- CI :
19+
- IECoreHoudini tests updated to pass on newer environments.
20+
1821
10.5.10.0 (relative to 10.5.9.5)
1922
=========
2023

test/IECoreHoudini/LiveSceneTest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,16 +1337,16 @@ def testCornersAndCreasesForSplitLocations( self ) :
13371337
boxResult = scene.scene( [ "sub1", "box1" ] ).readObject( 0 )
13381338
self.assertTrue( boxResult.arePrimitiveVariablesValid() )
13391339
self.assertEqual( boxResult.keys(), [ "P" ] )
1340-
self.assertEqual( boxResult.cornerIds(), IECore.IntVectorData( [ 7 ] ) )
1340+
self.assertEqual( boxResult.cornerIds(), IECore.IntVectorData( [ 6 ] ) )
13411341
self.assertEqual( boxResult.cornerSharpnesses(), IECore.FloatVectorData( [ 10.0 ] ) )
13421342
self.assertEqual( boxResult.creaseLengths(), IECore.IntVectorData( [ 2 ] * 3 ) )
1343-
self.assertEqual( boxResult.creaseIds(), IECore.IntVectorData( [ 1, 5, 4, 5, 5, 6 ] ) )
1343+
self.assertEqual( boxResult.creaseIds(), IECore.IntVectorData( [ 3, 2, 1, 2, 2, 4 ] ) )
13441344
self.assertEqual( boxResult.creaseSharpnesses(), IECore.FloatVectorData( [ 1.29 ] * 3 ) )
13451345

13461346
torusResult = scene.scene( [ "sub1", "box1", "gap", "torus" ] ).readObject( 0 )
13471347
self.assertTrue( torusResult.arePrimitiveVariablesValid() )
13481348
self.assertEqual( torusResult.keys(), [ "P" ] )
1349-
self.assertEqual( torusResult.cornerIds(), IECore.IntVectorData( [ 6, 7, 8, 9, 10, 11 ] ) )
1349+
self.assertEqual( torusResult.cornerIds(), IECore.IntVectorData( [0, 1, 4, 6, 8, 10] ) )
13501350
self.assertEqual( torusResult.cornerSharpnesses(), IECore.FloatVectorData( [ 5.0 ] * 6 ) )
13511351
self.assertEqual( torusResult.creaseLengths(), IECore.IntVectorData( [ 2 ] * 6 ) )
13521352
self.assertEqual( torusResult.creaseIds(), IECore.IntVectorData( [ 30, 35, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35 ] ) )

0 commit comments

Comments
 (0)