Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit test for subdivision modifier on Blender importer #5345

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aavenel
Copy link
Contributor

@aavenel aavenel commented Nov 25, 2023

Catmul-Clark subdivision modifier is implemented in Assimp but was lacking unit-test.

This PR add an unit-test of a Blend file composed of default cube with subdivision modifier applied and same cube with subdivision modifier.
image

Vertices should match if Assimp is running the subdivision code correctly.

Blend file is composed of default cube with subdivision modifier applied
and same cube with subdivision modifier.
Assimp::Importer importer;
const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/BLEND/subdivision_test_277.blend", aiProcess_ValidateDataStructure);
EXPECT_NE(nullptr, scene);
EXPECT_EQ(scene->mNumMeshes, 2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be ASSERT_EQ to not crash on the next line in case of failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants