gyroid_solid_mask — 3D surface op

• 数据种类:无 → voxel(仅由参数决定的算子 —— 不接受图像或数据输入)

• 调用: import fullseye as fs; fs.ledger.gyroid_solid_mask(shape=(64, 64, 64), level=0.0, periods=1.0, thickness=0.3)(要直接调用实现,import render3d; render3d.gyroid_solid_mask(shape=(64, 64, 64), level=0.0, periods=1.0, thickness=0.3);从台账取用则 ops3d.get("gyroid_solid_mask"))

用法

作为可打印实体的 gyroid —— 等值面 ±*thickness* 之内的壳。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

Returns a `volume` (float 0/1), so it feeds the existing voxel ops

(`vol_label / skeletonize_vol / mesh_slice_stack`) directly and needs

no marching cubes —— this form works on bare numpy, while

:func:gyroid_isosurface needs scikit-image.

★Why this earns its place: at `level = 0` the field is odd under the

body-centred inversion, so the solid fraction of the two sides is *exactly*

equal —— a symmetry fact the mask can be checked against (the measured

fraction above 0 converges on 0.5 as the grid refines), and the shell volume

grows linearly in *thickness* for small *thickness* because the level set has

finite area. Both are independent of how the field was sampled.

Raises `ValueError`: a grid below 8 per axis or over the cap;

non-positive periods; a non-finite level; a negative thickness.

参考(示例数据・文献)

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

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

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

• minimal_surfaces — py -3.11 examples_3d/minimal_surfaces.py

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

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

同类别(surface)

minimal_surface · minimal_surface_bend · gyroid_isosurface · curve3d_tube_mesh


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

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