Loading 3d-viewer/3d_mesh_model.cpp +21 −15 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,10 @@ #include <3d_mesh_model.h> #include <3d_mesh_model.h> #include <boost/geometry/algorithms/area.hpp> #include <boost/geometry/algorithms/area.hpp> #ifdef USE_OPENMP #include <omp.h> #endif /* USE_OPENMP */ S3D_MESH::S3D_MESH() S3D_MESH::S3D_MESH() { { isPerFaceNormalsComputed = false; isPerFaceNormalsComputed = false; Loading Loading @@ -359,7 +363,9 @@ void S3D_MESH::calcPerPointNormals () m_PerFaceVertexNormals.resize( m_CoordIndex.size() ); m_PerFaceVertexNormals.resize( m_CoordIndex.size() ); // for each face A in mesh // for each face A in mesh #ifdef USE_OPENMP #pragma omp parallel for #pragma omp parallel for #endif for( unsigned int each_face_A_idx = 0; each_face_A_idx < m_CoordIndex.size(); each_face_A_idx++ ) for( unsigned int each_face_A_idx = 0; each_face_A_idx < m_CoordIndex.size(); each_face_A_idx++ ) { { // n = face A facet normal // n = face A facet normal Loading Loading
3d-viewer/3d_mesh_model.cpp +21 −15 Original line number Original line Diff line number Diff line Loading @@ -31,6 +31,10 @@ #include <3d_mesh_model.h> #include <3d_mesh_model.h> #include <boost/geometry/algorithms/area.hpp> #include <boost/geometry/algorithms/area.hpp> #ifdef USE_OPENMP #include <omp.h> #endif /* USE_OPENMP */ S3D_MESH::S3D_MESH() S3D_MESH::S3D_MESH() { { isPerFaceNormalsComputed = false; isPerFaceNormalsComputed = false; Loading Loading @@ -359,7 +363,9 @@ void S3D_MESH::calcPerPointNormals () m_PerFaceVertexNormals.resize( m_CoordIndex.size() ); m_PerFaceVertexNormals.resize( m_CoordIndex.size() ); // for each face A in mesh // for each face A in mesh #ifdef USE_OPENMP #pragma omp parallel for #pragma omp parallel for #endif for( unsigned int each_face_A_idx = 0; each_face_A_idx < m_CoordIndex.size(); each_face_A_idx++ ) for( unsigned int each_face_A_idx = 0; each_face_A_idx < m_CoordIndex.size(); each_face_A_idx++ ) { { // n = face A facet normal // n = face A facet normal Loading