|
| Array | hmap::cloud_sdf_to_array (const Cloud &cloud, glm::ivec2 shape, glm::vec4 bbox_array={0.f, 1.f, 0.f, 1.f}, const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr) |
| | Compute a distance field from a point cloud.
|
| |
| bool | hmap::has_duplicates (const Cloud &cloud, float eps=1e-9f, bool xy_only=true) |
| | Checks whether the point cloud contains duplicate points.
|
| |
| std::vector< float > | hmap::interpolate_values_from_array (const Cloud &cloud, const Array &array, glm::vec4 bbox) |
| | Interpolate values from an array at the points' (x, y) locations.
|
| |
| void | hmap::rejection_filter_density (Cloud &cloud, const Array &density_mask, std::uint32_t seed, const glm::vec4 &bbox={0.f, 1.f, 0.f, 1.f}) |
| | Filter a point cloud using rejection sampling based on a density mask.
|
| |
| Cloud | hmap::scale (const Cloud &cloud, glm::vec2 scale, glm::vec2 center={0.5f, 0.5f}) |
| | Scales the point coordinates in a cloud relative to a center point.
|
| |
| Cloud | hmap::scale (const Cloud &cloud, float scale, glm::vec2 center={0.5f, 0.5f}) |
| |