From 54c5f123e449bfe5e21ab342d66746d18aff84a3 Mon Sep 17 00:00:00 2001 From: TheNumbat Date: Sat, 11 Jul 2020 18:38:42 -0700 Subject: [PATCH] fix typos --- docs/meshedit/remesh.md | 2 +- docs/meshedit/simplify.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/meshedit/remesh.md b/docs/meshedit/remesh.md index 9e53035..a27023c 100644 --- a/docs/meshedit/remesh.md +++ b/docs/meshedit/remesh.md @@ -23,7 +23,7 @@ Ultimately we want all of our triangles to be about the same size, which means w #### Edge Flipping -We want to flip an edge any time it reduces the total deviation from regular degree (degree 6). In particular, let _a1_, _a2_ be the degrees of an edge that we're thinking about flipping, and let _b1_, _b2_ be the degrees of the two vertices across from this edge. The total deviation in the initial configuration is `|_a1_-6| + |_a2_-6| + |_b1_-6| + |_b2_-6|`. You should be able to _easily_ compute the deviation after the edge flip **without actually performing the edge flip**; if this number decreases, then the edge flip should be performed. We recommend flipping all edges in a single pass, after the edge collapse step. +We want to flip an edge any time it reduces the total deviation from regular degree (degree 6). In particular, let _a1_, _a2_ be the degrees of an edge that we're thinking about flipping, and let _b1_, _b2_ be the degrees of the two vertices across from this edge. The total deviation in the initial configuration is `|a1-6| + |a2-6| + |b1-6| + |b2-6|`. You should be able to easily compute the deviation after the edge flip **without actually performing the edge flip**; if this number decreases, then the edge flip should be performed. We recommend flipping all edges in a single pass, after the edge collapse step. #### Vertex Averaging diff --git a/docs/meshedit/simplify.md b/docs/meshedit/simplify.md index bc98369..64fba15 100644 --- a/docs/meshedit/simplify.md +++ b/docs/meshedit/simplify.md @@ -113,11 +113,11 @@ The one final thing we want to think about is performance. At each iteration, we // surface if this edge is collapsed }; -Within ` Halfedge_Mesh::simplify`, you will create a dictionary `vertex_quadrics` (a `std::unordered_map`) mapping vertices (`VertexRef`) to quadric error matrices (`Mat4`). This is a hash map, and its usage is detailed in the [C++ documentation](https://en.cppreference.com/w/cpp/container/unordered_map). To initialize the record for a given edge `e`, you can use this dictionary to write +Within `Halfedge_Mesh::simplify`, you will create a dictionary `vertex_quadrics` mapping vertices to quadric error matrices. We will use a `std::unordered_map` for this purpose, which is the hash map provided by the STL. Its usage is detailed in the [C++ documentation](https://en.cppreference.com/w/cpp/container/unordered_map). To initialize the record for a given edge `e`, you can use this dictionary to write Edge_Record record(vertex_quadrics, e); -Similarly to how we created a mapping from vertices to quadric matrices, we will also want to associate this record with its edge using the `edge_records` map: +Similarly to how we created a dictionary mapping vertices to quadric matrices, we will also want to associate this record with its edge using the `edge_records` dictionary: edge_records[e] = record; -- GitLab