curve3d_tube_mesh — 3D surface op

• 資料種類:points → mesh

• 呼叫: import fullseye as fs; fs.ledger.curve3d_tube_mesh(points, radius=0.1, segments=12, closed=False)(要直接呼叫實作,import render3d; render3d.curve3d_tube_mesh(points, radius=0.1, segments=12, closed=False);從台帳取用則 ops3d.get("curve3d_tube_mesh"))

用法

把空間曲線做成管狀網格 —— MATLAB 的 `tubeplot`,但體積可以核對。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

Sweeps a circle of *radius* along the polyline using a parallel-transport

frame (no Frenet frame: the normal of a straight segment is undefined and the

binormal flips at an inflection, which twists the tube). Returns

`(vertices, faces)` for the existing 3-D viewers and mesh ops.

★Why this earns its place: for a closed circular centre line the tube is a

torus, whose volume `2 pi^2 R r^2 and area 4 pi^2 R r` are analytic —

and the existing `mesh_volume / mesh_area` ops measure the result. Two

independent implementations meeting at a closed form is a real check; "it

looks like a tube" is not.

Raises `ValueError`: fewer than 2 points; not (N, 3); radius not

positive; fewer than 3 segments; non-finite input; a curve with repeated

consecutive points (the direction is undefined there).

參考(範例資料・文獻)

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

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

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

• minimal_surfaces — py -3.11 examples_3d/minimal_surfaces.py

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

mesh_to_voxel · mesh_to_points · to_points · fuse_to_voxel · ambient_occlusion · cast_shadow · supersample_mesh · render_beauty

同類別(surface)

minimal_surface · minimal_surface_bend · gyroid_isosurface · gyroid_solid_mask


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

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