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.