Skip to content

Commit

Permalink
adding new unv tests and data (#19322) (#19323)
Browse files Browse the repository at this point in the history
  • Loading branch information
markcmiller86 committed Feb 16, 2024
1 parent 7b6ba56 commit 5494918
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/unv_test_data.tar.xz
Git LFS file not shown
30 changes: 30 additions & 0 deletions src/test/tests/databases/unv.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,34 @@
SaveWindow()
Test("unv_06", SaveWindowAtts)

DeleteAllPlots()
CloseDatabase(pjoin(datapath, "small_sur.unv"))

OpenDatabase(pjoin(datapath, "poly.msh"))

AddPlot("Mesh", "mesh", 1, 1)
MeshAtts = MeshAttributes()
MeshAtts.legendFlag = 1
MeshAtts.lineWidth = 3
MeshAtts.meshColor = (0, 0, 255, 255)
MeshAtts.meshColorSource = MeshAtts.MeshCustom # Foreground, MeshCustom, MeshRandom
SetPlotOptions(MeshAtts)

AddPlot("Mesh", "freemesh", 1, 1)
MeshAtts = MeshAttributes()
MeshAtts.legendFlag = 1
MeshAtts.lineWidth = 2
MeshAtts.meshColor = (255, 0, 0, 255)
MeshAtts.meshColorSource = MeshAtts.MeshCustom # Foreground, MeshCustom, MeshRandom
SetPlotOptions(MeshAtts)

AddPlot("Vector", "free_normals", 1, 1)
AddPlot("Vector", "normals2d", 1, 1)

DrawPlots()
SaveWindowAtts = SaveWindowAttributes()
SaveWindowAtts.width = 1024
SaveWindowAtts.height = 1024
Test("unv_07", SaveWindowAtts)

Exit()
3 changes: 3 additions & 0 deletions test/baseline/databases/unv/unv_07.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5494918

Please sign in to comment.