mesh_area — 3D mesh_process op

• 資料種類:mesh → measurement

• 呼叫: import fullseye as fs; fs.ledger.mesh_area(mesh) -> 'float'(要直接呼叫實作,import mesh_props; mesh_props.mesh_area(mesh) -> 'float';從台帳取用則 ops3d.get("mesh_area"))

用法

三角網格的表面積(全部三角形面積之和)。→ float。

面積 = Σ 0.5·|cross(v1−v0, v2−v0)|。不是以頂點數乘上常數的樸素近似,而是累加實際面的大小,因此能正確跟隨網格的尺度與形狀。

Args:

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

Returns:

表面積(非負 float)。

Raises:

ValueError: mesh 不是 (vertices, faces) 這 2 個元素、形狀不正確、座標非有限、index 非整數、

越界、為空,或存在 3 個頂點中有相同 index 的三角形時。

注意: 與 face_normals 不同,座標幾乎排成一直線的退化三角形(面積 0)不會被拒絕,而是以 0 累加。重複面或正反 2 片貼合的面會照樣計數 2 次。單位是座標單位的 2 次方。

背景知識指南(該運算子背後的物理與規範)

• blender_interop — 與 Blender 搭配使用 —— 在 Blender 中建形、用 fullseye 量測(座標軸、單位、真值資料的陷阱)

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• dl_mesh_curvature — py -3.11 examples_3d/dl_mesh_curvature.py

• mesh_props — py -3.11 examples_3d/mesh_props.py

• minimal_surfaces — py -3.11 examples_3d/minimal_surfaces.py

型別可銜接的下一個運算子(可接受 measurement 作為輸入)

vol_gaussian_psf · fuse_to_voxel · fresnel_reflectance · snell_angle

同類別(mesh_process)

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


*Provenance: mesh_props.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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