eltopo3d/dynamicsurface.cpp
// --------------------------------------------------------
///
/// Compute all vertex normals (unweighted average).
///
// --------------------------------------------------------
Compute all vertex normals (unweighted average).
Compute all vertex normals ( unweighted average ) .
void DynamicSurface::get_all_vertex_normals( std::vector<Vec3d>& normals ) const
{
    normals.resize( get_num_vertices() );
    for ( size_t i = 0; i < get_num_vertices(); ++i )
    {
        normals[i] = get_vertex_normal(i);
    }
}
void DynamicSurface :: get_all_vertex_normals ( std :: vector < Vec3d > & normals ) const { normals . resize ( get_num_vertices ( ) ) ; for ( size_t i = 0 ; i < get_num_vertices ( ) ; ++ i ) { normals [ i ] = get_vertex_normal ( i ) ; } }
Compute all vertex normals (unweighted average).
Compute all vertex normals ( unweighted average ) .