Merge pull request #2116 from assimp/pointclout_test
Obj-Import: add missing unittest for poiuntcloud support.pull/2114/head^2
commit
394a15d989
|
@ -0,0 +1,17 @@
|
|||
####
|
||||
#
|
||||
# OBJ File Generated by Meshlab
|
||||
#
|
||||
####
|
||||
# Object up.obj
|
||||
#
|
||||
# Vertices: 3
|
||||
# Faces: 0
|
||||
#
|
||||
####
|
||||
vn -0.281034 -0.057252 0.957989
|
||||
v -0.207717 -0.953997 2.554110
|
||||
vn -0.139126 -0.135672 0.980937
|
||||
v -0.275607 -0.965401 2.541530
|
||||
vn -0.163133 -0.131576 0.977791
|
||||
v -0.270155 -0.963170 2.548000
|
|
@ -389,3 +389,10 @@ TEST_F( utObjImportExport, mtllib_after_g ) {
|
|||
ASSERT_EQ(aiReturn_SUCCESS, mat->Get(AI_MATKEY_NAME, name));
|
||||
EXPECT_STREQ("MyMaterial", name.C_Str());
|
||||
}
|
||||
|
||||
TEST_F(utObjImportExport, import_point_cloud) {
|
||||
::Assimp::Importer importer;
|
||||
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/OBJ/point_cloud.obj", 0 );
|
||||
ASSERT_NE(nullptr, scene);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue