15#include <lagrange/SurfaceMesh.h>
39 template <
typename Scalar,
typename Index>
91 bool is_inside(
const std::array<float, 3>& pos)
const;
100 float solid_angle(
const std::array<float, 3>& pos)
const;
A general purpose polygonal mesh class.
Definition SurfaceMesh.h:66
Smart pointer with value semantics.
Definition value_ptr.h:134
FastWindingNumber()
Constructs a new instance.
FastWindingNumber(FastWindingNumber &&other) noexcept
Constructs a new instance.
FastWindingNumber & operator=(FastWindingNumber &&other) noexcept
Assignment operator.
FastWindingNumber(const FastWindingNumber &other)=delete
Constructs a new instance.
~FastWindingNumber()
Destroys the object.
FastWindingNumber(const SurfaceMesh< Scalar, Index > &mesh)
Constructs an acceleration structure on a given mesh to speed up winding number queries.
Definition FastWindingNumber.cpp:88
bool is_inside(const std::array< float, 3 > &pos) const
Determines whether the specified query point is inside the volume.
Definition FastWindingNumber.cpp:105
value_ptr< Impl > m_impl
PIMPL to hide internal data structures.
Definition FastWindingNumber.h:107
FastWindingNumber & operator=(const FastWindingNumber &other)=delete
Assignment operator.
float solid_angle(const std::array< float, 3 > &pos) const
Computes the solid angle at the query point.
Definition FastWindingNumber.cpp:110
Main namespace for Lagrange.
Definition FastWindingNumber.cpp:29