shapeworks::ParticleNeighborhood
#include <ParticleNeighborhood.h>
Public Functions
Name | |
---|---|
ParticleNeighborhood(ParticleSystem * ps, int domain_id =-1) | |
std::vector< ParticlePointIndexPair > | find_neighborhood_points(const itk::Point< double, 3 > & position, int id, std::vector< double > & weights, std::vector< double > & distances, double radius) |
std::vector< ParticlePointIndexPair > | find_neighborhood_points(const itk::Point< double, 3 > & position, int id, std::vector< double > & weights, double radius) |
std::vector< ParticlePointIndexPair > | find_neighborhood_points(const itk::Point< double, 3 > & position, int id, double radius) |
void | set_weighting_enabled(bool is_enabled) |
bool | is_weighting_enabled() const |
void | set_force_euclidean(bool is_enabled) |
bool | is_force_euclidean() const |
void | set_domain(ParticleDomain::Pointer domain) |
ParticleDomain::Pointer | get_domain() const |
void | set_domain_id(int id) |
Detailed Description
class shapeworks::ParticleNeighborhood;
A ParticleNeighborhood is responsible for computing neighborhoods of particles. Given a point position in a domain, and a neighborhood radius, the ParticleNeighborhood returns a list of points that are neighbors of that point.
Public Functions Documentation
function ParticleNeighborhood
inline explicit ParticleNeighborhood(
ParticleSystem * ps,
int domain_id =-1
)
function find_neighborhood_points
std::vector< ParticlePointIndexPair > find_neighborhood_points(
const itk::Point< double, 3 > & position,
int id,
std::vector< double > & weights,
std::vector< double > & distances,
double radius
)
function find_neighborhood_points
std::vector< ParticlePointIndexPair > find_neighborhood_points(
const itk::Point< double, 3 > & position,
int id,
std::vector< double > & weights,
double radius
)
function find_neighborhood_points
std::vector< ParticlePointIndexPair > find_neighborhood_points(
const itk::Point< double, 3 > & position,
int id,
double radius
)
function set_weighting_enabled
inline void set_weighting_enabled(
bool is_enabled
)
function is_weighting_enabled
inline bool is_weighting_enabled() const
function set_force_euclidean
inline void set_force_euclidean(
bool is_enabled
)
function is_force_euclidean
inline bool is_force_euclidean() const
function set_domain
inline void set_domain(
ParticleDomain::Pointer domain
)
function get_domain
inline ParticleDomain::Pointer get_domain() const
function set_domain_id
inline void set_domain_id(
int id
)
Updated on 2024-11-11 at 19:51:45 +0000