Cleanup: Fix various typos in source/blender/geometry

Fixes various non-user-facing typos.

Pull Request: https://projects.blender.org/blender/blender/pulls/145794
This commit is contained in:
luz paz
2025-09-05 16:23:29 +02:00
committed by Hans Goudey
parent b9ba0a62ca
commit cfd5cddc41
3 changed files with 3 additions and 3 deletions

View File

@@ -1248,7 +1248,7 @@ static void merge_out_faces(Vector<OutFace> &faces)
}
}
/** Return true if the ponts p0, p1, p2 are approximately in a straight line. */
/** Return true if the points p0, p1, p2 are approximately in a straight line. */
static inline bool approx_in_line(const float3 &p0, const float3 &p1, const float3 &p2)
{
float cos_ang = math::dot(math::normalize(p1 - p0), math::normalize(p2 - p1));

View File

@@ -1782,7 +1782,7 @@ static int64_t pack_island_xatlas(const Span<std::unique_ptr<UVAABBIsland>> isla
* \param margin: Add `margin` units around islands before packing.
* \param params: Additional parameters. Scale and margin information is ignored.
* \param r_phis: Island layout information will be written here.
* \return Size of square covering the resulting packed UVs. The maximum `u` or `v` co-ordinate.
* \return Size of square covering the resulting packed UVs. The maximum `u` or `v` coordinate.
*/
static float pack_islands_scale_margin(const Span<PackIsland *> islands,
const float scale,

View File

@@ -4271,7 +4271,7 @@ void uv_parametrizer_average(ParamHandle *phandle, bool ignore_pinned, bool scal
s[0][1] = va->uv[1] - vc->uv[1];
s[1][0] = vb->uv[0] - vc->uv[0];
s[1][1] = vb->uv[1] - vc->uv[1];
/* Find the "U" axis and "V" axis in triangle co-ordinates. Normally this would require
/* Find the "U" axis and "V" axis in triangle coordinates. Normally this would require
* SVD, but in 2D we can use a cheaper matrix inversion instead. */
if (!invert_m2_m2(m, s)) {
continue;