21 [[nodiscard]]
bool addIfGoodApprox(
const Vector3f& q,
float betaSq,
float& addTo )
const
23 const auto dp =
pos - q;
24 const auto dd = dp.lengthSq();
25 if ( dd <= betaSq *
rr )
27 if (
const auto d = std::sqrt( dd ); d > 0 )
33static_assert(
sizeof( Dipole ) == 8 *
sizeof( float ) );
45 const Vector3f & q,
float beta, FaceId skipFace );
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRAABBTree.h:41
auto dot(const Matrix2< T > &a, const Matrix2< T > &b) -> decltype(dot(a.x, b.x))
double-dot product: x = a : b
Definition MRMatrix2.h:142
float rr
Definition MRDipole.h:18
Vector3f dirArea
Definition MRDipole.h:17
void calcDipoles(Dipoles &dipoles, const AABBTree &tree, const Mesh &mesh)
calculates the dipoles of all nodes of given AABBTree of the mesh, a leaf has one dipole for all its ...
bool addIfGoodApprox(const Vector3f &q, float betaSq, float &addTo) const
Definition MRDipole.h:21
float area
Definition MRDipole.h:16
float calcFastWindingNumber(const Dipoles &dipoles, const AABBTree &tree, const Mesh &mesh, const Vector3f &q, float beta, FaceId skipFace)
Vector3f pos
Definition MRDipole.h:15
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8