Warning when calculating normals of trimesh with default traits
Hi, When I use a trimesh with default traits ( OpenMesh::TriMesh_ArrayKernelT<> mesh; ) the default scalar type that is used is float. So after adding some vertices and indices, when I call mesh.update_normals(); a compiler warning is generated, because 0.0 is interpreted as double in line 407 in PolyMeshT_impl.hh changing it to vectorize(_n, Scalar(0.0)); avoids this warning. The same probably also applies for other functions in PolyMeshT_impl.hh that use vectorize Best Regards! Martin -- Martin Schultz Developer - Integration ModuleWorks GmbH Henricistr. 50 52072 Aachen Germany martins@moduleworks.com<mailto:martins@moduleworks.com> https://www.moduleworks.com HRB 11871 Amtsgericht Aachen Geschäftsführer Yavuz Murtezaoglu
participants (1)
-
Martin Schultz