Skip to content

shapeworks::ParticleArea

Public Functions

Name
void assign_vertex_particles(vtkSmartPointer< vtkPolyData > poly_data, std::vector< itk::Point< double > > particles)
assign particle ids for each vertex based on closest geodesic distance
void assign_vertex_colors(vtkSmartPointer< vtkPolyData > poly_data, std::vector< QColor > colors)
assign vertex colors based on particle ids
void assign_vertex_areas(vtkSmartPointer< vtkPolyData > poly_data, Eigen::VectorXd areas)
assign vertex areas based on particle ids
std::vector< QColor > colors_from_lut(vtkSmartPointer< vtkLookupTable > lut)
convert lut to array of colors
Eigen::VectorXd compute_particle_triangle_areas(vtkSmartPointer< vtkPolyData > poly_data, std::vector< itk::Point< double > > particles)
compute the area assigned to each particle

Public Functions Documentation

function assign_vertex_particles

static void assign_vertex_particles(
    vtkSmartPointer< vtkPolyData > poly_data,
    std::vector< itk::Point< double > > particles
)

assign particle ids for each vertex based on closest geodesic distance

function assign_vertex_colors

static void assign_vertex_colors(
    vtkSmartPointer< vtkPolyData > poly_data,
    std::vector< QColor > colors
)

assign vertex colors based on particle ids

function assign_vertex_areas

static void assign_vertex_areas(
    vtkSmartPointer< vtkPolyData > poly_data,
    Eigen::VectorXd areas
)

assign vertex areas based on particle ids

function colors_from_lut

static std::vector< QColor > colors_from_lut(
    vtkSmartPointer< vtkLookupTable > lut
)

convert lut to array of colors

function compute_particle_triangle_areas

static Eigen::VectorXd compute_particle_triangle_areas(
    vtkSmartPointer< vtkPolyData > poly_data,
    std::vector< itk::Point< double > > particles
)

compute the area assigned to each particle


Updated on 2024-07-14 at 17:07:24 +0000