diff options
Diffstat (limited to 'libs/assimp/test/models/invalid')
-rw-r--r-- | libs/assimp/test/models/invalid/OutOfMemory.off | 16 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.3ds | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.ase | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.lwo | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.md5mesh | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.obj | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.off | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.ply | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.raw | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.smd | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/empty.x | 0 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/emptyIrrMesh.xml | 231 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/malformed.obj | 30 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/malformed2.obj | 30 | ||||
-rw-r--r-- | libs/assimp/test/models/invalid/readme.txt | 31 |
15 files changed, 338 insertions, 0 deletions
diff --git a/libs/assimp/test/models/invalid/OutOfMemory.off b/libs/assimp/test/models/invalid/OutOfMemory.off new file mode 100644 index 0000000..585fce0 --- /dev/null +++ b/libs/assimp/test/models/invalid/OutOfMemory.off @@ -0,0 +1,16 @@ +OFF +353535235358 6 0 +-0.500000 -0.500000 0.500000 +0.500000 -0.500000 0.500000 +-0.500000 0.500000 0.500000 +0.500000 0.500000 0.500000 +-0.500000 0.500000 -0.500000 +0.500000 0.500000 -0.500000 +-0.500000 -0.500000 -0.500000 +0.500000 -0.500000 -0.500000 +4 0 1 3 2 +4 2 3 5 4 +4 4 5 7 6 +4 6 7 1 0 +4 1 7 5 3 +4 6 0 2 4 diff --git a/libs/assimp/test/models/invalid/empty.3ds b/libs/assimp/test/models/invalid/empty.3ds new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.3ds diff --git a/libs/assimp/test/models/invalid/empty.ase b/libs/assimp/test/models/invalid/empty.ase new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.ase diff --git a/libs/assimp/test/models/invalid/empty.lwo b/libs/assimp/test/models/invalid/empty.lwo new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.lwo diff --git a/libs/assimp/test/models/invalid/empty.md5mesh b/libs/assimp/test/models/invalid/empty.md5mesh new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.md5mesh diff --git a/libs/assimp/test/models/invalid/empty.obj b/libs/assimp/test/models/invalid/empty.obj new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.obj diff --git a/libs/assimp/test/models/invalid/empty.off b/libs/assimp/test/models/invalid/empty.off new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.off diff --git a/libs/assimp/test/models/invalid/empty.ply b/libs/assimp/test/models/invalid/empty.ply new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.ply diff --git a/libs/assimp/test/models/invalid/empty.raw b/libs/assimp/test/models/invalid/empty.raw new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.raw diff --git a/libs/assimp/test/models/invalid/empty.smd b/libs/assimp/test/models/invalid/empty.smd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.smd diff --git a/libs/assimp/test/models/invalid/empty.x b/libs/assimp/test/models/invalid/empty.x new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/libs/assimp/test/models/invalid/empty.x diff --git a/libs/assimp/test/models/invalid/emptyIrrMesh.xml b/libs/assimp/test/models/invalid/emptyIrrMesh.xml new file mode 100644 index 0000000..01bc1f2 --- /dev/null +++ b/libs/assimp/test/models/invalid/emptyIrrMesh.xml @@ -0,0 +1,231 @@ +<?xml version="1.0"?> +<mesh xmlns="http://irrlicht.sourceforge.net/IRRMESH_09_2007" version="1.0"> +<!-- This file contains a static mesh in the Irrlicht Engine format with 5 materials.--> + <boundingBox minEdge="-856.310974 -268.159119 -55.100883" maxEdge="98.810463 248.437958 1227.140869" /> + <buffer> + <boundingBox minEdge="-1.189549 -13.579381 564.385864" maxEdge="98.810463 86.420624 664.385864" /> + <material> + <enum name="Type" value="solid" /> + <color name="Ambient" value="ff18cb00" /> + <color name="Diffuse" value="ffc000dc" /> + <color name="Emissive" value="00000000" /> + <color name="Specular" value="ff268800" /> + <float name="Shininess" value="0.100000" /> + <float name="Param1" value="0.000000" /> + <float name="Param2" value="0.000000" /> + <texture name="Texture1" value="" /> + <texture name="Texture2" value="" /> + <texture name="Texture3" value="" /> + <texture name="Texture4" value="" /> + <bool name="Wireframe" value="false" /> + <bool name="GouraudShading" value="true" /> + <bool name="Lighting" value="true" /> + <bool name="ZWriteEnable" value="true" /> + <int name="ZBuffer" value="1" /> + <bool name="BackfaceCulling" value="true" /> + <bool name="FogEnable" value="false" /> + <bool name="NormalizeNormals" value="false" /> + <bool name="BilinearFilter1" value="true" /> + <bool name="BilinearFilter2" value="true" /> + <bool name="BilinearFilter3" value="true" /> + <bool name="BilinearFilter4" value="true" /> + <bool name="TrilinearFilter1" value="false" /> + <bool name="TrilinearFilter2" value="false" /> + <bool name="TrilinearFilter3" value="false" /> + <bool name="TrilinearFilter4" value="false" /> + <bool name="AnisotropicFilter1" value="false" /> + <bool name="AnisotropicFilter2" value="false" /> + <bool name="AnisotropicFilter3" value="false" /> + <bool name="AnisotropicFilter4" value="false" /> + <enum name="TextureWrap1" value="texture_clamp_repeat" /> + <enum name="TextureWrap2" value="texture_clamp_repeat" /> + <enum name="TextureWrap3" value="texture_clamp_repeat" /> + <enum name="TextureWrap4" value="texture_clamp_repeat" /> + </material> + <vertices type="standard" vertexCount="0"> +</vertices> + <indices indexCount="0"> +</indices> + </buffer> + <buffer> + <boundingBox minEdge="-425.481689 -112.485245 -55.100883" maxEdge="-225.481689 87.514755 144.899109" /> + <material> + <enum name="Type" value="solid" /> + <color name="Ambient" value="ff00a19b" /> + <color name="Diffuse" value="ff6d0005" /> + <color name="Emissive" value="00000000" /> + <color name="Specular" value="ff510085" /> + <float name="Shininess" value="0.100000" /> + <float name="Param1" value="0.000000" /> + <float name="Param2" value="0.000000" /> + <texture name="Texture1" value="" /> + <texture name="Texture2" value="" /> + <texture name="Texture3" value="" /> + <texture name="Texture4" value="" /> + <bool name="Wireframe" value="false" /> + <bool name="GouraudShading" value="true" /> + <bool name="Lighting" value="true" /> + <bool name="ZWriteEnable" value="true" /> + <int name="ZBuffer" value="1" /> + <bool name="BackfaceCulling" value="true" /> + <bool name="FogEnable" value="false" /> + <bool name="NormalizeNormals" value="false" /> + <bool name="BilinearFilter1" value="true" /> + <bool name="BilinearFilter2" value="true" /> + <bool name="BilinearFilter3" value="true" /> + <bool name="BilinearFilter4" value="true" /> + <bool name="TrilinearFilter1" value="false" /> + <bool name="TrilinearFilter2" value="false" /> + <bool name="TrilinearFilter3" value="false" /> + <bool name="TrilinearFilter4" value="false" /> + <bool name="AnisotropicFilter1" value="false" /> + <bool name="AnisotropicFilter2" value="false" /> + <bool name="AnisotropicFilter3" value="false" /> + <bool name="AnisotropicFilter4" value="false" /> + <enum name="TextureWrap1" value="texture_clamp_repeat" /> + <enum name="TextureWrap2" value="texture_clamp_repeat" /> + <enum name="TextureWrap3" value="texture_clamp_repeat" /> + <enum name="TextureWrap4" value="texture_clamp_repeat" /> + </material> + <vertices type="standard" vertexCount="0"> +</vertices> + <indices indexCount="0"> +</indices> + </buffer> + <buffer> + <boundingBox minEdge="-594.103699 -268.159119 927.140869" maxEdge="-294.103699 31.840881 1227.140869" /> + <material> + <enum name="Type" value="solid" /> + <color name="Ambient" value="ff620086" /> + <color name="Diffuse" value="ff2f3e00" /> + <color name="Emissive" value="00000000" /> + <color name="Specular" value="ffa12600" /> + <float name="Shininess" value="0.100000" /> + <float name="Param1" value="0.000000" /> + <float name="Param2" value="0.000000" /> + <texture name="Texture1" value="" /> + <texture name="Texture2" value="" /> + <texture name="Texture3" value="" /> + <texture name="Texture4" value="" /> + <bool name="Wireframe" value="false" /> + <bool name="GouraudShading" value="true" /> + <bool name="Lighting" value="true" /> + <bool name="ZWriteEnable" value="true" /> + <int name="ZBuffer" value="1" /> + <bool name="BackfaceCulling" value="true" /> + <bool name="FogEnable" value="false" /> + <bool name="NormalizeNormals" value="false" /> + <bool name="BilinearFilter1" value="true" /> + <bool name="BilinearFilter2" value="true" /> + <bool name="BilinearFilter3" value="true" /> + <bool name="BilinearFilter4" value="true" /> + <bool name="TrilinearFilter1" value="false" /> + <bool name="TrilinearFilter2" value="false" /> + <bool name="TrilinearFilter3" value="false" /> + <bool name="TrilinearFilter4" value="false" /> + <bool name="AnisotropicFilter1" value="false" /> + <bool name="AnisotropicFilter2" value="false" /> + <bool name="AnisotropicFilter3" value="false" /> + <bool name="AnisotropicFilter4" value="false" /> + <enum name="TextureWrap1" value="texture_clamp_repeat" /> + <enum name="TextureWrap2" value="texture_clamp_repeat" /> + <enum name="TextureWrap3" value="texture_clamp_repeat" /> + <enum name="TextureWrap4" value="texture_clamp_repeat" /> + </material> + <vertices type="standard" vertexCount="0"> +</vertices> + <indices indexCount="0"> +</indices> + </buffer> + <buffer> + <boundingBox minEdge="-387.523499 -151.562042 573.689575" maxEdge="12.476517 248.437958 973.689575" /> + <material> + <enum name="Type" value="solid" /> + <color name="Ambient" value="ff0014a9" /> + <color name="Diffuse" value="ffc97b00" /> + <color name="Emissive" value="00000000" /> + <color name="Specular" value="ffb40000" /> + <float name="Shininess" value="0.100000" /> + <float name="Param1" value="0.000000" /> + <float name="Param2" value="0.000000" /> + <texture name="Texture1" value="" /> + <texture name="Texture2" value="" /> + <texture name="Texture3" value="" /> + <texture name="Texture4" value="" /> + <bool name="Wireframe" value="false" /> + <bool name="GouraudShading" value="true" /> + <bool name="Lighting" value="true" /> + <bool name="ZWriteEnable" value="true" /> + <int name="ZBuffer" value="1" /> + <bool name="BackfaceCulling" value="true" /> + <bool name="FogEnable" value="false" /> + <bool name="NormalizeNormals" value="false" /> + <bool name="BilinearFilter1" value="true" /> + <bool name="BilinearFilter2" value="true" /> + <bool name="BilinearFilter3" value="true" /> + <bool name="BilinearFilter4" value="true" /> + <bool name="TrilinearFilter1" value="false" /> + <bool name="TrilinearFilter2" value="false" /> + <bool name="TrilinearFilter3" value="false" /> + <bool name="TrilinearFilter4" value="false" /> + <bool name="AnisotropicFilter1" value="false" /> + <bool name="AnisotropicFilter2" value="false" /> + <bool name="AnisotropicFilter3" value="false" /> + <bool name="AnisotropicFilter4" value="false" /> + <enum name="TextureWrap1" value="texture_clamp_repeat" /> + <enum name="TextureWrap2" value="texture_clamp_repeat" /> + <enum name="TextureWrap3" value="texture_clamp_repeat" /> + <enum name="TextureWrap4" value="texture_clamp_repeat" /> + </material> + <vertices type="standard" vertexCount="0"> +</vertices> + <indices indexCount="0"> +</indices> + </buffer> + <buffer> + <boundingBox minEdge="-856.310974 -267.823242 115.341156" maxEdge="-356.310974 232.176758 615.341187" /> + <material> + <enum name="Type" value="trans_vertex_alpha" /> + <color name="Ambient" value="ff00516f" /> + <color name="Diffuse" value="ffb20800" /> + <color name="Emissive" value="00000000" /> + <color name="Specular" value="ff00aebe" /> + <float name="Shininess" value="0.100000" /> + <float name="Param1" value="0.170000" /> + <float name="Param2" value="0.000000" /> + <texture name="Texture1" value="" /> + <texture name="Texture2" value="" /> + <texture name="Texture3" value="" /> + <texture name="Texture4" value="" /> + <bool name="Wireframe" value="false" /> + <bool name="GouraudShading" value="true" /> + <bool name="Lighting" value="true" /> + <bool name="ZWriteEnable" value="true" /> + <int name="ZBuffer" value="1" /> + <bool name="BackfaceCulling" value="true" /> + <bool name="FogEnable" value="false" /> + <bool name="NormalizeNormals" value="false" /> + <bool name="BilinearFilter1" value="true" /> + <bool name="BilinearFilter2" value="true" /> + <bool name="BilinearFilter3" value="true" /> + <bool name="BilinearFilter4" value="true" /> + <bool name="TrilinearFilter1" value="false" /> + <bool name="TrilinearFilter2" value="false" /> + <bool name="TrilinearFilter3" value="false" /> + <bool name="TrilinearFilter4" value="false" /> + <bool name="AnisotropicFilter1" value="false" /> + <bool name="AnisotropicFilter2" value="false" /> + <bool name="AnisotropicFilter3" value="false" /> + <bool name="AnisotropicFilter4" value="false" /> + <enum name="TextureWrap1" value="texture_clamp_repeat" /> + <enum name="TextureWrap2" value="texture_clamp_repeat" /> + <enum name="TextureWrap3" value="texture_clamp_repeat" /> + <enum name="TextureWrap4" value="texture_clamp_repeat" /> + </material> + <vertices type="standard" vertexCount="0"> + +</vertices> + <indices indexCount="0"> +</indices> + </buffer> +</mesh>
\ No newline at end of file diff --git a/libs/assimp/test/models/invalid/malformed.obj b/libs/assimp/test/models/invalid/malformed.obj new file mode 100644 index 0000000..2253c47 --- /dev/null +++ b/libs/assimp/test/models/invalid/malformed.obj @@ -0,0 +1,30 @@ +# Vertices: 8 +# Points: 0 +# Lines: 0 +# Faces: 6 +# Materials: 1 + +o 1 + +# Vertex list + +v -0.5 -0.5 0.5 +v -0.5 -0.5 -0.5 +v -0.5 0.5 -0.5 +v -0.5 0.5 0.5 +v 0.5 -0.5 0.5 +v 0.5 -0.5 -0.5 +v 0.5 0.5 -0.5 +v 0.5 0.5 0.5 + +# Point/Line/Face list + +usemtl Default +f 4 12 2 1 +f 2 6 5 1 +f -1 7 6 2 +f 8 7 3 4 +f 5 8 8 1 +f 0 7 8 5 + +# End of file diff --git a/libs/assimp/test/models/invalid/malformed2.obj b/libs/assimp/test/models/invalid/malformed2.obj new file mode 100644 index 0000000..054bc0a --- /dev/null +++ b/libs/assimp/test/models/invalid/malformed2.obj @@ -0,0 +1,30 @@ +# Vertices: 8 +# Points: 0 +# Lines: 0 +# Faces: 6 +# Materials: 1 + +o -1 + +# Vertex list + +v -0.5 -0.5 0.5 +v -0.5 -0.5 -0.5 +v -0.5 0.5 -0.5 +v -0.5 0.5 0.5 +v 0.5 -0.5 0.5 +v 0.5 -0.5 -0.5 +v 0.5 0.5 -0.5 +v 0.5 0.5 0.5 + +# Point/Line/Face list + +usemtl DefaultDoesNotExist +f +f 2 6 5 1 +f 3 7 6 2 +f 8 7 3 4 +f 5 8 4 1 +f 6 7 8 5 + +# End of file diff --git a/libs/assimp/test/models/invalid/readme.txt b/libs/assimp/test/models/invalid/readme.txt new file mode 100644 index 0000000..6ad8b43 --- /dev/null +++ b/libs/assimp/test/models/invalid/readme.txt @@ -0,0 +1,31 @@ + +********************************************************* +GENERAL +********************************************************* + + +The files in this directory are invalid ... some of them are empty, +others have invalid vertices or faces, others are prepared to make + assimp allocate a few hundreds gigs of memory ... most are +actually regression tests, i.e. there was once a bugfix that +fixed the respective loaders. + +This test case is successful if the library (and the viewer) don't +crash. + + +********************************************************* +FILES +********************************************************* + +OutOfMemory.off - the number of faces is invalid. There won't be + enough memory so std::vector::reserve() will most likely fail. + The exception should be caught in Importer.cpp. + +empty.<x> - These files are completely empty. The corresponding + loaders should not crash. + +malformed.obj - out-of-range vertex indices +malformed2.obj - non-existent material referenced + + |