Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-05 08:23:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-05 08:23:34 +0300
commit17e1e2bfd8dfbd6f6fc42cc305e93393342020f7 (patch)
tree8a164422f7eb7d3aa9f7473c19c80da535c29a05 /source/blender/editors/uvedit
parentb62b923f544fa1df0aecd56f3568dd5185601306 (diff)
Cleanup: correct spelling in comments
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_parametrizer.c14
-rw-r--r--source/blender/editors/uvedit/uvedit_smart_stitch.c6
2 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c
index ed9e5053f10..e94aaa49839 100644
--- a/source/blender/editors/uvedit/uvedit_parametrizer.c
+++ b/source/blender/editors/uvedit/uvedit_parametrizer.c
@@ -978,7 +978,7 @@ static int p_connect_pairs(PHandle *handle, PBool topology_from_uvs)
PChart *chart = handle->construction_chart;
int ncharts = 0;
- /* connect pairs, count edges, set vertex-edge pointer to a pairless edge */
+ /* Connect pairs, count edges, set vertex-edge pointer to a pair-less edge. */
for (first = chart->faces; first; first = first->nextlink) {
if (first->flag & PFACE_CONNECTED) {
continue;
@@ -1974,7 +1974,7 @@ static PBool p_collapse_allowed_geometric(PEdge *edge, PEdge *pair)
b[1] = p_vec_angle(v2->co, v1->co, keepv->co);
b[2] = M_PI - b[0] - b[1];
- /* abf criterion 1: avoid sharp and obtuse angles */
+ /* ABF criterion 1: avoid sharp and obtuse angles. */
minangle = 15.0f * M_PI / 180.0f;
maxangle = M_PI - minangle;
@@ -1991,7 +1991,7 @@ static PBool p_collapse_allowed_geometric(PEdge *edge, PEdge *pair)
} while (e && (e != oldv->edge));
if (p_vert_interior(oldv)) {
- /* hlscm criterion: angular defect smaller than threshold */
+ /* HLSCM criterion: angular defect smaller than threshold. */
if (fabsf(angulardefect) > (float)(M_PI * 30.0 / 180.0)) {
return P_FALSE;
}
@@ -2000,12 +2000,12 @@ static PBool p_collapse_allowed_geometric(PEdge *edge, PEdge *pair)
PVert *v1 = p_boundary_edge_next(oldv->edge)->vert;
PVert *v2 = p_boundary_edge_prev(oldv->edge)->vert;
- /* abf++ criterion 2: avoid collapsing verts inwards */
+ /* ABF++ criterion 2: avoid collapsing verts inwards. */
if (p_vert_interior(keepv)) {
return P_FALSE;
}
- /* don't collapse significant boundary changes */
+ /* Don't collapse significant boundary changes. */
angle = p_vec_angle(v1->co, oldv->co, v2->co);
if (angle < (M_PI * 160.0 / 180.0)) {
return P_FALSE;
@@ -3837,7 +3837,7 @@ static void p_chart_rotate_fit_aabb(PChart *chart)
/* Area Smoothing */
-/* 2d bsp tree for inverse mapping - that's a bit silly */
+/* 2d BSP tree for inverse mapping - that's a bit silly. */
typedef struct SmoothTriangle {
float co1[2], co2[2], co3[2];
@@ -4288,7 +4288,7 @@ static void p_smooth(PChart *chart)
MEM_freeN(hedges);
MEM_freeN(vedges);
- /* create bsp */
+ /* Create BSP. */
t = triangles = MEM_mallocN(sizeof(SmoothTriangle) * esize * 2, "PSmoothTris");
trip = tri = MEM_mallocN(sizeof(SmoothTriangle *) * esize * 2, "PSmoothTriP");
diff --git a/source/blender/editors/uvedit/uvedit_smart_stitch.c b/source/blender/editors/uvedit/uvedit_smart_stitch.c
index 7b27bb570cc..5c4dc90f112 100644
--- a/source/blender/editors/uvedit/uvedit_smart_stitch.c
+++ b/source/blender/editors/uvedit/uvedit_smart_stitch.c
@@ -224,13 +224,13 @@ enum StitchModes {
STITCH_EDGE,
};
-/* UvElement identification. */
+/** #UvElement identification. */
typedef struct UvElementID {
int faceIndex;
int elementIndex;
} UvElementID;
-/* StitchState initializition. */
+/** #StitchState initialization. */
typedef struct StitchStateInit {
int uv_selected_count;
UvElementID *to_select;
@@ -2050,7 +2050,7 @@ static StitchState *stitch_init(bContext *C,
BLI_ghash_free(edge_hash, NULL, NULL);
- /* refill an edge hash to create edge connnectivity data */
+ /* Refill an edge hash to create edge connectivity data. */
state->edge_hash = edge_hash = BLI_ghash_new(uv_edge_hash, uv_edge_compare, "stitch_edge_hash");
for (i = 0; i < total_edges; i++) {
BLI_ghash_insert(edge_hash, edges + i, edges + i);