fem.gmsh.dc_surface_stl

fem.gmsh.dc_surface_stl(sdf, grid, **options)

Dual-contour sdf on grid and return its surface as STL text.

Parameters

Name Type Description Default
sdf Callable[[Any], Any] The field to extract; an SDF node or a plain callable. required
grid Any The :class:~cadjoint.meshing.GridSpec. required
**options Any Forwarded to :func:~cadjoint.meshing.extract_mesh. {}

Returns

Name Type Description
tuple[str, Any] (stl_text, mesh) — the STL and the mesh it was written from.