Repository navigation
Nurbforge 0.9.0
Meshing for solvers: local mesh sizes by face label, curvature-based sizing and BEM-ready
surface meshes (watertight, outward-oriented, as numpy arrays), plus a fix for the gmsh
transfer of Boolean results with trimmed cylinders, cones, spheres and tori. Wheels for
CPython 3.14. The API is not yet stable (0.x).
Added
- BEM-ready surface meshes:
nurbforge.mesh.bem_mesh(shell, size, order, curvature, refine, path)
andGmshSession.surface_mesh()return aSurfaceMesh(numpy nodes, linear or quadratic
triangles, groups per face label, normals, areas, volume) that is checked to be watertight
and oriented outward – into the void for cavities. The orientation is also applied to the
gmsh model, so written.msh/.stlfiles carry it; violations raiseMeshTopologyError. - Local mesh sizes:
GmshSession.refine(labels_or_tags, size, distance=0)– exact size on the
faces (by face label or gmsh surface tag) and, withdistance, linear growth to the global size
into the volume;mesh(curvature=n)for n elements per 2π of curvature. GmshSession.add_shell(remembers face labels) andGmshSession.face_tags(): current gmsh
surface tags per face label, robust against renumbering by duplicate removal.- Wheels for CPython 3.14 (all platforms).
Changed
- Releases are published on PyPI (
pip install nurbforge) via trusted publishing from the
wheels workflow, in addition to the GitHub release. - Wheels workflow:
actions/upload-artifactv4 → v7 (runs on Node.js 24; Node.js 20 is
deprecated on GitHub runners).
Fixed
nurbforge.mesh.add_shelltransferred Boolean results with trimmed closed faces (bores and
slots in cylinders, cut spheres, cones, tori) incorrectly to gmsh: faces vanished or the volume
was wrong, so meshes of such parts were invalid. Shells are now handed over through the native
STEP writer and OCC's STEP reader, which keeps shared and seam edges;add_shellreturns the
surface tags of this shell only, in face order.
Install
pip install nurbforge # from PyPI; nurbforge[mesh] adds gmshBinary wheels for Linux (manylinux_2_28 x86_64), Windows (win_amd64) and macOS 14+ (arm64, x86_64), CPython 3.10-3.14, and the sdist are also attached below.
Documentation
nurbforge-manual.pdf: the user manual (236 pages) with the complete command reference of this version.