Skip to content

Commit 1b7502d

Browse files
committed
Fix typos
1 parent 8e13d08 commit 1b7502d

File tree

17 files changed

+25
-25
lines changed

17 files changed

+25
-25
lines changed

docs/docs/cut_meshes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cut Meshes
22

3-
`asmesh` has set of functions to cut mesh, you can find it in this [header](https://github.com/alpinebuster/meshsdk/blob/master/source/MRMesh/MRContoursCut.h).
3+
`meshsdk` has set of functions to cut mesh, you can find it in this [header](https://github.com/alpinebuster/meshsdk/blob/master/source/MRMesh/MRContoursCut.h).
44

55
![Cut Meshes - 1](./img/cut_meshes-1.png)
66
![Cut Meshes - 2](./img/cut_meshes-2.png)

docs/docs/distance_compare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Implement Distance Compare function.
66

77
Use this function:
88

9-
`asmesh/source/MRMesh/MRPointsToMeshProjector.h`
9+
`meshsdk/source/MRMesh/MRPointsToMeshProjector.h`
1010

1111
Lines 53 to 60 in d64341c
1212

docs/docs/extrude.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ One thing you can try is something like this:
1414
2.Call `fixUndercuts`
1515
3.Project saved polyline to mesh and move it a little up
1616

17-
`asmesh/source/MRMesh/MRContoursCut.h`
17+
`meshsdk/source/MRMesh/MRContoursCut.h`
1818

1919
Lines 97 to 106 in d717e06
2020

@@ -32,7 +32,7 @@ MRMESH_API Expected<OneMeshContours> convertMeshTriPointsSurfaceOffsetToMeshCont
3232
```
3333
3434
4.Cut mesh above old boundary
35-
`asmesh/source/MRMesh/MRContoursCut.h`
35+
`meshsdk/source/MRMesh/MRContoursCut.h`
3636
3737
Lines 219 to 235 in d717e06
3838
@@ -57,7 +57,7 @@ MRMESH_API CutMeshResult cutMesh( Mesh& mesh, const OneMeshContours& contours, c
5757
```
5858

5959
5.Stitch cut place with old boundary
60-
`asmesh/source/MRMesh/MRMeshFillHole.h`
60+
`meshsdk/source/MRMesh/MRMeshFillHole.h`
6161

6262
Lines 85 to 106 in d717e06
6363

docs/docs/hole_metrics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Current Hole Metrics option in fill hole menu, how can i get this informatio
66

77
Use these functions to calculate hole perimeter and area:
88

9-
`asmesh/source/MRMesh/MRMesh.h`
9+
`meshsdk/source/MRMesh/MRMesh.h`
1010

1111
Lines 182 to 187 in 40a8983
1212

docs/docs/mesh_traversal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Delete the faces between the contours.
217217

218218
The area inside will be to left from both of them
219219

220-
`asmesh/source/MRMesh/MRFillContour.h`
220+
`meshsdk/source/MRMesh/MRFillContour.h`
221221

222222
Lines 8 to 10 in ae1704c
223223

docs/docs/segment_mesh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In general the idea there is to build "Surrounding Contour" around picked pointe
88

99
Also it might be worth mentioning that we use this metric for contouring:
1010

11-
`asmesh/source/MRMesh/MREdgeMetric.h`
11+
`meshsdk/source/MRMesh/MREdgeMetric.h`
1212

1313
Lines 32 to 37 in f3c4381
1414

docs/docs/smooth_edge_path.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Get the EdgePath first, then use smooth function for EdgePath or PolyLine.
1111

1212
Use `buildShortestPath` with different metrics.
1313

14-
`asmesh/source/MRMesh/MREdgePaths.h`
14+
`meshsdk/source/MRMesh/MREdgePaths.h`
1515

1616
Lines 86 to 106 in f9b24b4
1717

docs/i18n/zh/docusaurus-plugin-content-docs/current/architecture/core_data_structure.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Mesh、点、边、三角形
44
5-
`asmesh` 使用**半边(Half-Edge)数据结构**来存储三角网格拓扑。其核心类是:
5+
`meshsdk` 使用**半边(Half-Edge)数据结构**来存储三角网格拓扑。其核心类是:
66

77
- **顶点(Vert)** 用类型 `MR::VertId` 表示,存储在连续数组中(`Mesh.points`),通过 `VertId` 索引访问坐标
88
- **三角面(Face)** 由三个半边闭合形成,存储顶点索引。三角面用 `MR::FaceId`
@@ -18,18 +18,18 @@
1818

1919
## STL 文件三角化处理
2020

21-
通过加载接口 `MR::MeshLoad::fromAnySupportedFormat(path)` 读取包括 STL 在内的多种格式。对于 STL 文件(无论 ASCII 还是二进制),库会解析每个面片的顶点坐标和法线信息,然后利用内部的网格构造器生成三角网格。具体地,`asmesh` 包含 `MeshBuilder` 功能:例如,可通过 `MR::Mesh::fromPointTriples(std::vector<Triangle3f>)` 构造 Mesh。该函数接受一组三角形顶点(`Triangle3f`),直接生成网格的顶点和三角面,默认情况下在非流形顶点处可选择复制顶点以确保流形性。
21+
通过加载接口 `MR::MeshLoad::fromAnySupportedFormat(path)` 读取包括 STL 在内的多种格式。对于 STL 文件(无论 ASCII 还是二进制),库会解析每个面片的顶点坐标和法线信息,然后利用内部的网格构造器生成三角网格。具体地,`meshsdk` 包含 `MeshBuilder` 功能:例如,可通过 `MR::Mesh::fromPointTriples(std::vector<Triangle3f>)` 构造 Mesh。该函数接受一组三角形顶点(`Triangle3f`),直接生成网格的顶点和三角面,默认情况下在非流形顶点处可选择复制顶点以确保流形性。
2222

23-
对于更一般的情形,`asmesh` 也支持“面片汤”(face soup):即使输入的多边形面包含任意顶点数,构造函数也会**自动将非三角形面划分为三角形**。这意味着用户给定多边形列表,系统会在内部三角化。在 STL 场景中,由于每个面已是三角形,此步骤通常可视为直接插入三角片。但以上机制保证了任意导入网格都被转换为稳定的三角网格表示。构造完成后,`asmesh` 会为网格分配唯一的顶点 ID、边 ID、面 ID,确保全局索引连续,并保留重映射信息以支持后续的几何查询或拓扑操作。
23+
对于更一般的情形,`meshsdk` 也支持“面片汤”(face soup):即使输入的多边形面包含任意顶点数,构造函数也会**自动将非三角形面划分为三角形**。这意味着用户给定多边形列表,系统会在内部三角化。在 STL 场景中,由于每个面已是三角形,此步骤通常可视为直接插入三角片。但以上机制保证了任意导入网格都被转换为稳定的三角网格表示。构造完成后,`meshsdk` 会为网格分配唯一的顶点 ID、边 ID、面 ID,确保全局索引连续,并保留重映射信息以支持后续的几何查询或拓扑操作。
2424

2525
## AABB 树的实现与用途
2626

27-
`asmesh` 为网格构建**轴对齐包围盒(AABB)树**作为加速数据结构,以支持空间查询和碰撞检测。`MR::Mesh` 类内部缓存两个 AABB 树:一个是针对三角面集合的 `AABBTree`,另一个是针对顶点集合的 `AABBTreePoints`。调用 `mesh.getAABBTree()` 时,如果树尚未构建则会自动生成,然后缓存以备后续使用;`getAABBTreePoints()` 同理用于顶点。
27+
`meshsdk` 为网格构建**轴对齐包围盒(AABB)树**作为加速数据结构,以支持空间查询和碰撞检测。`MR::Mesh` 类内部缓存两个 AABB 树:一个是针对三角面集合的 `AABBTree`,另一个是针对顶点集合的 `AABBTreePoints`。调用 `mesh.getAABBTree()` 时,如果树尚未构建则会自动生成,然后缓存以备后续使用;`getAABBTreePoints()` 同理用于顶点。
2828

2929
这些 AABB 树在多种任务中发挥关键作用:
3030

3131
- **网格投影(mesh projection)**:在执行点到网格的最近点投影时,算法首先利用 AABB 树进行广义排查快速锁定候选三角面,然后精确计算距离。这使得 `MR::Mesh::projectPoint(…)` 等函数能够在复杂网格上高效求解最近点。实际上,网格的包围盒(bounding box)计算就通过 `getAABBTree()` 实现,说明投影与最近点查询依赖 AABB 树
32-
- **网格修复(mesh repair)**:例如检测与消除自相交(self-intersections)时,算法需要查找可能相交的三角对。此时 AABB 树可极大地降低配对检查数量,只对树中包围盒相交的三角区域进行更精细的三角形-三角形相交测试,从而提高性能。`asmesh` 的布尔运算和自相交修复工具即利用此策略(类似常见的广义-狭义碰撞检测方法)
32+
- **网格修复(mesh repair)**:例如检测与消除自相交(self-intersections)时,算法需要查找可能相交的三角对。此时 AABB 树可极大地降低配对检查数量,只对树中包围盒相交的三角区域进行更精细的三角形-三角形相交测试,从而提高性能。`meshsdk` 的布尔运算和自相交修复工具即利用此策略(类似常见的广义-狭义碰撞检测方法)
3333
- **网格分割(mesh splitting)**:当将网格按给定平面或另一几何体切分时,需要判断哪些三角面被切割。AABB 树同样可快速定位与切割实体相交的三角面,减少不必要的计算,加速分割算法
3434
- **孔洞填充(hole filling)**:虽然寻找孔洞边缘主要依赖拓扑遍历(`MeshTopology::findHoleRepresentiveEdges()`),但填充算法中可能需要计算新顶点的位置和与原网格的距离,这些操作也会间接利用 AABB 树以加速空间搜索
3535

docs/i18n/zh/docusaurus-plugin-content-docs/current/cut_meshes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cut Meshes
22

3-
`asmesh` has set of functions to cut mesh, you can find it in this [header](https://github.com/alpinebuster/meshsdk/blob/master/source/MRMesh/MRContoursCut.h).
3+
`meshsdk` has set of functions to cut mesh, you can find it in this [header](https://github.com/alpinebuster/meshsdk/blob/master/source/MRMesh/MRContoursCut.h).
44

55
![Cut Meshes - 1](./img/cut_meshes-1.png)
66
![Cut Meshes - 2](./img/cut_meshes-2.png)

docs/i18n/zh/docusaurus-plugin-content-docs/current/distance_compare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Implement Distance Compare function.
66

77
Use this function:
88

9-
`asmesh/source/MRMesh/MRPointsToMeshProjector.h`
9+
`meshsdk/source/MRMesh/MRPointsToMeshProjector.h`
1010

1111
Lines 53 to 60 in d64341c
1212

0 commit comments

Comments
 (0)