qadmesh affine transform parenting

This commit is contained in:
AndreaRigoni
2026-03-19 12:54:31 +00:00
parent 887b3b36f0
commit 4cb4560921
9 changed files with 103 additions and 33 deletions

View File

@@ -43,6 +43,17 @@ BOOST_AUTO_TEST_CASE(vtkQuadMeshConstruction) {
mesh.AddQuad(Vector4i(0, 1, 2, 3));
Vtk::vtkQuadMesh v_mesh(mesh);
Object::connect(&mesh, &QuadMesh::Updated, [&mesh]() {
Vector3f points[4];
points[0] = mesh.GetPoint(0);
points[1] = mesh.GetPoint(1);
points[2] = mesh.GetPoint(2);
points[3] = mesh.GetPoint(3);
std::cout << "mesh updated: " << points[0] << " " << points[1]
<< " " << points[2] << " " << points[3] << std::endl;
});
v_mesh.Update();
if (std::getenv("CTEST_PROJECT_NAME") == nullptr) {