boundary_vertices — 3D mesh_process op

• 数据种类:mesh → indices

• 调用: import fullseye as fs; fs.ledger.boundary_vertices(mesh) -> 'np.ndarray'(要直接调用实现,import mesh_props; mesh_props.boundary_vertices(mesh) -> 'np.ndarray';从台账取用则 ops3d.get("boundary_vertices"))

用法

位于开放边缘(边界)上的顶点 index → (K,)。

收集并返回无向边中恰好只被 1 个面使用的边(边界边)的端点。闭合流形则为空数组 —— 也就是说 len(boundary_vertices(mesh)) == 0 即可作为 水密性(watertight)的判定。补洞、体积计算、曲率都会因有无边界而改变含义,所以先看这里。

Args:

mesh: (vertices (N,3), faces (M,3)) 的元组。

Returns:

升序、无重复的 (K,) int64。若无边界则 shape == (0,)。

Raises:

ValueError: mesh 不是 (vertices, faces) 这 2 个元素、形状不正确、

坐标非有限、index 非整数、越界、为空时。

局限(honest): 返回的是顶点集合,而不是边缘的环路(环绕顺序)。即使有多个孔也会合并为 1 个数组,所以若要按孔分开,需要自己追踪连通分量(还没有提取环路的 op)。被 3 个以上面共享的非流形边不会出现在这里(见 mesh_edge_stats 的 non_manifold_edges)。

背景知识指南(该算子背后的物理与约定)

• blender_interop — 与 Blender 配合使用 —— 在 Blender 中建形、用 fullseye 测量(坐标轴、单位、真值数据的陷阱)

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

可运行的示例(实际调用该算子并已验证的样例)

• mesh_decimate — py -3.11 examples_3d/mesh_decimate.py

• mesh_props — py -3.11 examples_3d/mesh_props.py

类型可衔接的下一个算子(可接受 indices 作为输入)

fuse_to_voxel

同类别(mesh_process)

laplacian_smooth · taubin_smooth · decimate_qem · face_normals · vertex_normals · mesh_area · vertex_curvature · face_areas


*Provenance: mesh_props.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.