HighMap library (C++)
Loading...
Searching...
No Matches
sdf.hpp File Reference

Header file for signed distance functions. More...

Go to the source code of this file.

Namespaces

namespace  hmap
namespace  hmap::gpu

Functions

Array hmap::sdf_2d_polyline (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr, bool use_bvh=true)
 Computes the signed distance field (SDF) of a 2D polyline.
Array hmap::sdf_2d_polyline_brute_force (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::sdf_2d_polyline_bvh (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::sdf_2d_polyline_bezier (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr, bool use_bvh=true)
 See hmap::sdf_2d_polyline, with a Bezier approximation of the path.
Array hmap::sdf_2d_polyline_bezier_brute_force (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::sdf_2d_polyline_bezier_bvh (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::sdf_2d_graph (const Graph &graph, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr, bool use_bvh=true)
 Computes the 2D unsigned distance field to a graph network.
Array hmap::sdf_2d_graph_brute_force (const Graph &graph, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::sdf_2d_graph_bvh (const Graph &graph, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
Array hmap::gpu::sdf_2d_polyline (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
 See hmap::sdf_2d_polyline.
Array hmap::gpu::sdf_2d_polyline_bezier (const Path &path, glm::ivec2 shape, const UvRect &uv_rect=UvRect::unit(), const Array *p_noise_x=nullptr, const Array *p_noise_y=nullptr)
 See hmap::sdf_2d_polyline_bezier.

Detailed Description

Header file for signed distance functions.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)