Skip to content

Nurbforge 0.9.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 11:57
· 59 commits to main since this release
9a0778a

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)
    and GmshSession.surface_mesh() return a SurfaceMesh (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/.stl files carry it; violations raise MeshTopologyError.
  • Local mesh sizes: GmshSession.refine(labels_or_tags, size, distance=0) – exact size on the
    faces (by face label or gmsh surface tag) and, with distance, 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) and GmshSession.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-artifact v4 → v7 (runs on Node.js 24; Node.js 20 is
    deprecated on GitHub runners).

Fixed

  • nurbforge.mesh.add_shell transferred 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_shell returns the
    surface tags of this shell only, in face order.

Install

pip install nurbforge          # from PyPI; nurbforge[mesh] adds gmsh

Binary 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.