HighMap library (C++)
Loading...
Searching...
No Matches
flatten_around_points_terrain_aware.cpp File Reference

Namespaces

namespace  hmap

Functions

void hmap::flatten_around_points_terrain_aware (Array &z, const std::vector< float > &xp, const std::vector< float > &yp, const std::vector< float > &zp, const std::vector< float > &radius, float slope_weight=1.f, float uphill_weight=2.f, float max_height_above=-1.f, float terrain_follow=0.5f, float strength=1.f, RadialProfile radial_profile=RadialProfile::RP_SMOOTHSTEP, float profile_param=1.f, Array *p_mask=nullptr, const UvRect &uv_rect=UvRect::unit())
 Terrain-aware flattening around a set of seed points.
void hmap::flatten_around_points_terrain_aware (Array &z, const std::vector< float > &xp, const std::vector< float > &yp, const std::vector< float > &zp, float radius, float slope_weight=1.f, float uphill_weight=2.f, float max_height_above=-1.f, float terrain_follow=0.5f, float strength=1.f, RadialProfile radial_profile=RadialProfile::RP_SMOOTHSTEP, float profile_param=1.f, Array *p_mask=nullptr, const UvRect &uv_rect=UvRect::unit())
 Overload with a single radius shared by all seeds.