|
| Path | hmap::squiggle (const Path &path, int iterations=4, std::uint32_t seed=0, float height_ratio=0.5f, int orientation=0, const Array *p_weights=nullptr, const Array *p_mask=nullptr, glm::vec4 bbox={0.f, 1.f, 0.f, 1.f}) |
| | Generates a continuous, non-self-intersecting squiggle curve by applying the squiggle recursive triangle subdivision algorithm to each edge of the input path.
|
| |
| std::vector< Path > | hmap::squiggle_branches (const Path &path, int iterations=4, std::uint32_t seed=0, float branch_probability=0.3f, int max_branches=8, float height_ratio=0.5f, int orientation=0, const Array *p_weights=nullptr, const Array *p_mask=nullptr, glm::vec4 bbox={0.f, 1.f, 0.f, 1.f}) |
| | Generates squiggle paths with secondary tributary branches along each edge.
|
| |