Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

cts adjustments

- FMax.py: adjust to using OpenCOLLADAImporter/OpenCOLLADAExporter
- StandardDataSets: fixing some python-scripts, having invalid copyright
in line1 (not as comment!)
- adding .gitignore (removing some temporary / run directories)
  • Loading branch information...
commit f30490d1a7482208c734916bf0dd5407771383e0 1 parent 9aa4b4d
@GerhardMaier GerhardMaier authored
Showing with 2,444 additions and 2,436 deletions.
  1. +4 −0 .gitignore
  2. +6 −2 Scripts/FMax.py
  3. +69 −69 ...rary_geometries/geometry/mesh/_reference/_reference_concave_triangulated/_reference_concave_triangulated.py
  4. +69 −69 ...ibrary_geometries/geometry/mesh/_reference/_reference_convex_triangulated/_reference_convex_triangulated.py
  5. +69 −69 ...s/geometry/mesh/_reference/_reference_polygons_polylist_triangles/_reference_polygons_polylist_triangles.py
  6. +68 −68 ...ollada/library_geometries/geometry/mesh/_reference/_reference_semantic_normal/_reference_semantic_normal.py
  7. +79 −79 StandardDataSets/collada/library_geometries/geometry/mesh/customized/3d/3d.py
  8. +80 −80 StandardDataSets/collada/library_geometries/geometry/mesh/customized/4d/4d.py
  9. +78 −78 ...s/collada/library_geometries/geometry/mesh/mixed/polygons_polylist_triangles/polygons_polylist_triangles.py
  10. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polygons/collada_polygons/collada_polygons.py
  11. +71 −71 StandardDataSets/collada/library_geometries/geometry/mesh/polygons/concave_polygons/concave_polygons.py
  12. +71 −71 StandardDataSets/collada/library_geometries/geometry/mesh/polygons/convex_polygons/convex_polygons.py
  13. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polygons/duck_polygons/duck_polygons.py
  14. +72 −72 ...ibrary_geometries/geometry/mesh/polygons/multi_geometries_multi_polygons/multi_geometries_multi_polygons.py
  15. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polygons/normal_polygons/normal_polygons.py
  16. +72 −72 ...ollada/library_geometries/geometry/mesh/polygons/one_geometry_multi_polygons/one_geometry_multi_polygons.py
  17. +88 −88 ...ts/collada/library_geometries/geometry/mesh/polygons/one_geometry_one_polygons/one_geometry_one_polygons.py
  18. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/collada_polylist/collada_polylist.py
  19. +71 −71 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/concave_polylist/concave_polylist.py
  20. +71 −71 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/convex_polylist/convex_polylist.py
  21. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/duck_polylist/duck_polylist.py
  22. +72 −72 ...ibrary_geometries/geometry/mesh/polylist/multi_geometries_multi_polylist/multi_geometries_multi_polylist.py
  23. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/normal_polylist/normal_polylist.py
  24. +72 −72 ...ollada/library_geometries/geometry/mesh/polylist/one_geometry_multi_polylist/one_geometry_multi_polylist.py
  25. +88 −88 ...ts/collada/library_geometries/geometry/mesh/polylist/one_geometry_one_polylist/one_geometry_one_polylist.py
  26. +72 −72 StandardDataSets/collada/library_geometries/geometry/mesh/polylist/overlap_polylist/overlap_polylist.py
  27. +69 −69 StandardDataSets/collada/library_geometries/geometry/mesh/source/id/id.py
  28. +72 −72 StandardDataSets/collada/library_geometries/geometry/mesh/triangles/collada_triangles/collada_triangles.py
  29. +72 −72 StandardDataSets/collada/library_geometries/geometry/mesh/triangles/duck_triangles/duck_triangles.py
  30. +72 −72 ...ary_geometries/geometry/mesh/triangles/multi_geometries_multi_triangles/multi_geometries_multi_triangles.py
  31. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/triangles/normal_triangles/normal_triangles.py
  32. +72 −72 ...ada/library_geometries/geometry/mesh/triangles/one_geometry_multi_triangles/one_geometry_multi_triangles.py
  33. +89 −89 ...collada/library_geometries/geometry/mesh/triangles/one_geometry_one_triangles/one_geometry_one_triangles.py
  34. +73 −73 StandardDataSets/collada/library_geometries/geometry/mesh/vertices/input/position_normal/position_normal.py
  35. +72 −72 ...ry_geometries/geometry/mesh/vertices/input/position_texcoord_color_normal/position_texcoord_color_normal.py
View
4 .gitignore
@@ -0,0 +1,4 @@
+ApplicationSettings/
+PackagedResults/
+TestProcedures/
+*.pyc
View
8 Scripts/FMax.py
@@ -141,6 +141,7 @@ def RunScript(self):
"""Calls 3DS MAX to run the script."""
print ("start running " + os.path.basename(self.__script.name))
+ # print "XXXX"
returnValue = self.RunApplication(self.configDict["maxPath"] +
" -U MAXScript \"" + self.__script.name + "\"",
@@ -179,7 +180,7 @@ def WriteImport(self, filename, logname, outputDir, settings, isAnimated, camera
if (FUtils.GetExtension(filename) == FMax.__EXTENSION[1:]):
command = " loadMaxFile my_importfilename useFileUnits:true quiet:true\n"
else:
- command = " importFile my_importfilename #noprompt\n"
+ command = " importFile my_importfilename #noprompt using:OpenCOLLADAImporter\n"
cfgFilename = os.path.normpath(
self.configDict["maxColladaExporterFilename"])
@@ -216,6 +217,7 @@ def WriteRender(self, logname, outputDir, settings, isAnimated, cameraRig, light
Implements FApplication.WriteRender()
"""
+ # print ("cameraRig: " + str(cameraRig))
command = "try (\n render "
for setting in settings:
prettyName = setting.GetPrettyName()
@@ -266,6 +268,8 @@ def WriteRender(self, logname, outputDir, settings, isAnimated, cameraRig, light
if (value == ""):
value = self.FindDefault(FMax.__RENDER_OPTIONS,
setting.GetPrettyName())
+
+ # print ("prettyName: " + prettyName +" value: " + value)
command = (command + setting.GetCommand() + ":" + value + " ")
@@ -321,7 +325,7 @@ def WriteExport(self, logname, outputDir, settings, isAnimated, cameraRig, light
"try (\n" +
options +
" outfile_name = \"" + output + "\"\n" +
- " exportFile outfile_name #noprompt\n" +
+ " exportFile outfile_name #noprompt using:OpenCOLLADAExporter\n" +
" print \"Export succeeded with " + output + "\"\n" +
") catch (\n" +
" print \"Export error with " + output + "\"\n" +
View
138 ...ometry/mesh/_reference/_reference_concave_triangulated/_reference_concave_triangulated.py
@@ -1,75 +1,75 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images
- self.__assistant.CompareRenderedImages(context)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images
+ self.__assistant.CompareRenderedImages(context)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
138 ...geometry/mesh/_reference/_reference_convex_triangulated/_reference_convex_triangulated.py
@@ -1,75 +1,75 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images
- self.__assistant.CompareRenderedImages(context)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images
+ self.__assistant.CompareRenderedImages(context)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
138 ...eference/_reference_polygons_polylist_triangles/_reference_polygons_polylist_triangles.py
@@ -1,75 +1,75 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images
- self.__assistant.CompareRenderedImages(context)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images
+ self.__assistant.CompareRenderedImages(context)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
136 ...metries/geometry/mesh/_reference/_reference_semantic_normal/_reference_semantic_normal.py
@@ -1,74 +1,74 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: just verifies that the standard steps did not crash.
-# JudgeSuperior: also verifies that the validation steps are not in error.
-# JudgeExemplary: same as intermediate badge.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- self.status_baseline = self.__assistant.GetResults()
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- # if superior fails, no point in further checking
- if (self.status_superior == False):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
- # Compare the rendered images between import and export
- self.__assistant.CompareRenderedImages(context)
-
- self.status_exemplary = self.__assistant.DeferJudgement(context)
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: just verifies that the standard steps did not crash.
+# JudgeSuperior: also verifies that the validation steps are not in error.
+# JudgeExemplary: same as intermediate badge.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ self.status_baseline = self.__assistant.GetResults()
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ # if superior fails, no point in further checking
+ if (self.status_superior == False):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+ # Compare the rendered images between import and export
+ self.__assistant.CompareRenderedImages(context)
+
+ self.status_exemplary = self.__assistant.DeferJudgement(context)
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
158 StandardDataSets/collada/library_geometries/geometry/mesh/customized/3d/3d.py
@@ -1,85 +1,85 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = ['library_geometries', 'geometry', 'mesh', 'source', 'Name_array']
-primTagLstArray = [['library_geometries', 'geometry', 'mesh', 'polylist', 'input'], ['library_geometries', 'geometry', 'mesh', 'triangles', 'input'], ['library_geometries', 'geometry', 'mesh', 'polygons', 'input']]
-attrName = 'semantic'
-attrVal = 'CUSTOM'
-dataToCheck = 'a b c d e f g h i j k l'
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _primTagLstArray, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.primTagListArray = _primTagLstArray
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- self.status_baseline = self.__assistant.GetResults()
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- if (self.status_baseline == False):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # Check for preservation of element data and then semantic attribute
- if ( self.__assistant.ElementDataCheck(context, self.tagList, self.dataToCheck, "string") ):
- attributePreserved = False
- for eachPrimTagList in self.primTagListArray:
- if ( self.__assistant.AttributeCheck(context, eachPrimTagList, self.attrName, self.attrVal) ):
- attributePreserved = True
- break
-
- self.status_superior = attributePreserved
- else:
- self.status_superior = self.__assistant.DeferJudgement(context)
-
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = ['library_geometries', 'geometry', 'mesh', 'source', 'Name_array']
+primTagLstArray = [['library_geometries', 'geometry', 'mesh', 'polylist', 'input'], ['library_geometries', 'geometry', 'mesh', 'triangles', 'input'], ['library_geometries', 'geometry', 'mesh', 'polygons', 'input']]
+attrName = 'semantic'
+attrVal = 'CUSTOM'
+dataToCheck = 'a b c d e f g h i j k l'
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _primTagLstArray, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.primTagListArray = _primTagLstArray
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ self.status_baseline = self.__assistant.GetResults()
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ if (self.status_baseline == False):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # Check for preservation of element data and then semantic attribute
+ if ( self.__assistant.ElementDataCheck(context, self.tagList, self.dataToCheck, "string") ):
+ attributePreserved = False
+ for eachPrimTagList in self.primTagListArray:
+ if ( self.__assistant.AttributeCheck(context, eachPrimTagList, self.attrName, self.attrVal) ):
+ attributePreserved = True
+ break
+
+ self.status_superior = attributePreserved
+ else:
+ self.status_superior = self.__assistant.DeferJudgement(context)
+
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, primTagLstArray, attrName, attrVal, dataToCheck);
View
160 StandardDataSets/collada/library_geometries/geometry/mesh/customized/4d/4d.py
@@ -1,86 +1,86 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = ['library_geometries', 'geometry', 'mesh', 'source', 'Name_array']
-primTagLstArray = [['library_geometries', 'geometry', 'mesh', 'polylist', 'input'], ['library_geometries', 'geometry', 'mesh', 'triangles', 'input'], ['library_geometries', 'geometry', 'mesh', 'polygons', 'input']]
-attrName = 'semantic'
-attrVal = 'CUSTOM'
-dataToCheck = 'a b c d e f g h i j k l'
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _primTagLstArray, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.primTagListArray = _primTagLstArray
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- self.status_baseline = self.__assistant.GetResults()
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- # if superior fails, no point in further checking
- if (self.status_superior == False):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
- # Check for preservation of element data and then semantic attribute
- if ( self.__assistant.ElementDataCheck(context, self.tagList, self.dataToCheck, "string") ):
- attributePreserved = False
- for eachPrimTagList in self.primTagListArray:
- if ( self.__assistant.AttributeCheck(context, eachPrimTagList, self.attrName, self.attrVal) ):
- attributePreserved = True
- break
-
- self.status_exemplary = attributePreserved
- else:
- self.status_exemplary = self.__assistant.DeferJudgement(context)
-
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = ['library_geometries', 'geometry', 'mesh', 'source', 'Name_array']
+primTagLstArray = [['library_geometries', 'geometry', 'mesh', 'polylist', 'input'], ['library_geometries', 'geometry', 'mesh', 'triangles', 'input'], ['library_geometries', 'geometry', 'mesh', 'polygons', 'input']]
+attrName = 'semantic'
+attrVal = 'CUSTOM'
+dataToCheck = 'a b c d e f g h i j k l'
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _primTagLstArray, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.primTagListArray = _primTagLstArray
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ self.status_baseline = self.__assistant.GetResults()
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ # if superior fails, no point in further checking
+ if (self.status_superior == False):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+ # Check for preservation of element data and then semantic attribute
+ if ( self.__assistant.ElementDataCheck(context, self.tagList, self.dataToCheck, "string") ):
+ attributePreserved = False
+ for eachPrimTagList in self.primTagListArray:
+ if ( self.__assistant.AttributeCheck(context, eachPrimTagList, self.attrName, self.attrVal) ):
+ attributePreserved = True
+ break
+
+ self.status_exemplary = attributePreserved
+ else:
+ self.status_exemplary = self.__assistant.DeferJudgement(context)
+
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, primTagLstArray, attrName, attrVal, dataToCheck);
View
156 ...geometries/geometry/mesh/mixed/polygons_polylist_triangles/polygons_polylist_triangles.py
@@ -1,84 +1,84 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = ['library_geometries', 'geometry']
-attrName = 'id'
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for non equivalence
- if ( self.__assistant.CompareRenderedImages(context) ):
- self.__assistant.CompareImagesAgainst(context, "_reference_polygons_polylist_triangles", None, None, 5, True, True)
-
- self.status_baseline = self.__assistant.GetResults()
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- # if superior fails, no point in further checking
- if (self.status_superior == False):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
- self.__assistant.AttributePreserved(context, self.tagList, self.attrName)
-
- self.status_exemplary = self.__assistant.DeferJudgement(context)
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = ['library_geometries', 'geometry']
+attrName = 'id'
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for non equivalence
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ self.__assistant.CompareImagesAgainst(context, "_reference_polygons_polylist_triangles", None, None, 5, True, True)
+
+ self.status_baseline = self.__assistant.GetResults()
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ # if superior fails, no point in further checking
+ if (self.status_superior == False):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+ self.__assistant.AttributePreserved(context, self.tagList, self.attrName)
+
+ self.status_exemplary = self.__assistant.DeferJudgement(context)
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
146 ...ts/collada/library_geometries/geometry/mesh/polygons/collada_polygons/collada_polygons.py
@@ -1,79 +1,79 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for non equivalence
- # Last, check for preservation of element data
- if ( self.__assistant.CompareRenderedImages(context) ):
- if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
- self.__assistant.ElementTransformed(context, self.tagList)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for non equivalence
+ # Last, check for preservation of element data
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
+ self.__assistant.ElementTransformed(context, self.tagList)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
142 ...ts/collada/library_geometries/geometry/mesh/polygons/concave_polygons/concave_polygons.py
@@ -1,77 +1,77 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for equivalence
- if ( self.__assistant.CompareRenderedImages(context) ):
- self.__assistant.CompareImagesAgainst(context, "_reference_concave_triangulated", None, None, 5, True, True)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for equivalence
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ self.__assistant.CompareImagesAgainst(context, "_reference_concave_triangulated", None, None, 5, True, True)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
142 ...Sets/collada/library_geometries/geometry/mesh/polygons/convex_polygons/convex_polygons.py
@@ -1,77 +1,77 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for equivalence
- if ( self.__assistant.CompareRenderedImages(context) ):
- self.__assistant.CompareImagesAgainst(context, "_reference_convex_triangulated", None, None, 5, True, True)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for equivalence
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ self.__assistant.CompareImagesAgainst(context, "_reference_convex_triangulated", None, None, 5, True, True)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
146 ...DataSets/collada/library_geometries/geometry/mesh/polygons/duck_polygons/duck_polygons.py
@@ -1,79 +1,79 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for non equivalence
- # Last, check for preservation of element data
- if ( self.__assistant.CompareRenderedImages(context) ):
- if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
- self.__assistant.ElementTransformed(context, self.tagList)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for non equivalence
+ # Last, check for preservation of element data
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
+ self.__assistant.ElementTransformed(context, self.tagList)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
144 ...geometry/mesh/polygons/multi_geometries_multi_polygons/multi_geometries_multi_polygons.py
@@ -1,78 +1,78 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images
- self.__assistant.CompareRenderedImages(context)
-
- # Check for preservation of element
- self.__assistant.ElementTransformed(context, self.tagList)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images
+ self.__assistant.CompareRenderedImages(context)
+
+ # Check for preservation of element
+ self.__assistant.ElementTransformed(context, self.tagList)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
146 ...Sets/collada/library_geometries/geometry/mesh/polygons/normal_polygons/normal_polygons.py
@@ -1,79 +1,79 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = []
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- self.status_baseline = self.__assistant.GetResults()
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- # if superior fails, no point in further checking
- if (self.status_superior == False):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
- # Compare the rendered images between import and export
- # Then compare images against reference test for non equivalence
- if ( self.__assistant.CompareRenderedImages(context) ):
- if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
- self.__assistant.CompareImagesAgainst(context, "_reference_semantic_normal", None, None, 5, True, False)
-
- self.status_exemplary = self.__assistant.DeferJudgement(context)
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = []
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ self.status_baseline = self.__assistant.GetResults()
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ # if superior fails, no point in further checking
+ if (self.status_superior == False):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+ # Compare the rendered images between import and export
+ # Then compare images against reference test for non equivalence
+ if ( self.__assistant.CompareRenderedImages(context) ):
+ if ( self.__assistant.CompareImagesAgainst(context, "_reference_no_geometry", None, None, 5, True, False) ):
+ self.__assistant.CompareImagesAgainst(context, "_reference_semantic_normal", None, None, 5, True, False)
+
+ self.status_exemplary = self.__assistant.DeferJudgement(context)
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
144 ...metries/geometry/mesh/polygons/one_geometry_multi_polygons/one_geometry_multi_polygons.py
@@ -1,78 +1,78 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
-# This sample judging object does the following:
-#
-# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
-# the rendered images match, and the required element(s) has been preserved
-# JudgeExemplary: returns Baseline status.
-# JudgeSuperior: returns Baseline status.
-
-# We import an assistant script that includes the common verifications
-# methods. The assistant buffers its checks, so that running them again
-# does not incurs an unnecessary performance hint.
-from StandardDataSets.scripts import JudgeAssistant
-
-# Please feed your node list here:
-tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
-attrName = ''
-attrVal = ''
-dataToCheck = ''
-
-class SimpleJudgingObject:
- def __init__(self, _tagLst, _attrName, _attrVal, _data):
- self.tagList = _tagLst
- self.attrName = _attrName
- self.attrVal = _attrVal
- self.dataToCheck = _data
- self.status_baseline = False
- self.status_superior = False
- self.status_exemplary = False
- self.__assistant = JudgeAssistant.JudgeAssistant()
-
- def JudgeBaseline(self, context):
- # No step should not crash
- self.__assistant.CheckCrashes(context)
-
- # Import/export/validate must exist and pass, while Render must only exist.
- self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
-
- if (self.__assistant.GetResults() == False):
- self.status_baseline = False
- return False
-
- # Compare the rendered images
- self.__assistant.CompareRenderedImages(context)
-
- # Check for preservation of element
- self.__assistant.ElementTransformed(context, self.tagList)
-
- self.status_baseline = self.__assistant.DeferJudgement(context)
- return self.status_baseline
-
- # To pass intermediate you need to pass basic, this object could also include additional
- # tests that were specific to the intermediate badge.
- def JudgeSuperior(self, context):
- self.status_superior = self.status_baseline
- return self.status_superior
-
- # To pass advanced you need to pass intermediate, this object could also include additional
- # tests that were specific to the advanced badge
- def JudgeExemplary(self, context):
- self.status_exemplary = self.status_superior
- return self.status_exemplary
-
-# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
-# The dynamic loader looks very specifically for a class instance named "judgingObject".
-#
+# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
+
+# See Core.Logic.FJudgementContext for the information
+# of the 'context' parameter.
+#
+
+# This sample judging object does the following:
+#
+# JudgeBaseline: verifies that app did not crash, the required steps have been performed,
+# the rendered images match, and the required element(s) has been preserved
+# JudgeExemplary: returns Baseline status.
+# JudgeSuperior: returns Baseline status.
+
+# We import an assistant script that includes the common verifications
+# methods. The assistant buffers its checks, so that running them again
+# does not incurs an unnecessary performance hint.
+from StandardDataSets.scripts import JudgeAssistant
+
+# Please feed your node list here:
+tagLst = [['library_geometries', 'geometry', 'mesh', 'triangles'], ['library_geometries', 'geometry', 'mesh', 'polygons'], ['library_geometries', 'geometry', 'mesh', 'polylist']]
+attrName = ''
+attrVal = ''
+dataToCheck = ''
+
+class SimpleJudgingObject:
+ def __init__(self, _tagLst, _attrName, _attrVal, _data):
+ self.tagList = _tagLst
+ self.attrName = _attrName
+ self.attrVal = _attrVal
+ self.dataToCheck = _data
+ self.status_baseline = False
+ self.status_superior = False
+ self.status_exemplary = False
+ self.__assistant = JudgeAssistant.JudgeAssistant()
+
+ def JudgeBaseline(self, context):
+ # No step should not crash
+ self.__assistant.CheckCrashes(context)
+
+ # Import/export/validate must exist and pass, while Render must only exist.
+ self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"])
+
+ if (self.__assistant.GetResults() == False):
+ self.status_baseline = False
+ return False
+
+ # Compare the rendered images
+ self.__assistant.CompareRenderedImages(context)
+
+ # Check for preservation of element
+ self.__assistant.ElementTransformed(context, self.tagList)
+
+ self.status_baseline = self.__assistant.DeferJudgement(context)
+ return self.status_baseline
+
+ # To pass intermediate you need to pass basic, this object could also include additional
+ # tests that were specific to the intermediate badge.
+ def JudgeSuperior(self, context):
+ self.status_superior = self.status_baseline
+ return self.status_superior
+
+ # To pass advanced you need to pass intermediate, this object could also include additional
+ # tests that were specific to the advanced badge
+ def JudgeExemplary(self, context):
+ self.status_exemplary = self.status_superior
+ return self.status_exemplary
+
+# This is where all the work occurs: "judgingObject" is an absolutely necessary token.
+# The dynamic loader looks very specifically for a class instance named "judgingObject".
+#
judgingObject = SimpleJudgingObject(tagLst, attrName, attrVal, dataToCheck);
View
176 ..._geometries/geometry/mesh/polygons/one_geometry_one_polygons/one_geometry_one_polygons.py
@@ -1,94 +1,94 @@
-Copyright (C) 2007 - 2009 Khronos Group
-
+# Copyright (C) 2007 - 2009 Khronos Group
+
# Copyright (c) 2012 The Khronos Group Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Materials.
-# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
-
-# See Core.Logic.FJudgementContext for the information
-# of the 'context' parameter.
-#
-
<