Changelog
All notable changes to microgen are documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
Each pull request that changes user-visible behaviour adds a line under
[Unreleased], in the matching Added / Changed / Deprecated / Removed /
Fixed subsection, with its PR number.
Unreleased
Changes since 2.0.0b1, on the way to 2.0.0.
Added
Phase.from_implicitandPhase.from_gridconstructors;Phasecaches its sampled grid (#144).Phase.translate,Phase.rotateandPhase.scaleact on the implicit field, bounds, iso-value, period, CAD shape, mesh and cached grid together (#144).Implicit-first Voronoi and strut lattices: convex
Polyhedronnow carries a half-space signed-distance field, and lattices exposegenerate_implicit()(#143).microgen.cadsub-package: direct OCP (OCCT) backend with theCadShapewrapper, primitive builders,import_stepand therequire_cadinstall gate (#142).Phase.from_shape,Phase.from_cad,Phase.from_mesh,Phase.surface_mesh,Phase.pieces(Piece) andPhase.center_of_mass(#142).shape_to_cadbridge converting any implicitShapeto a CAD solid, andmesh_to_periodic_shellsewing periodic triangle meshes (TPMS, spinodoids) into closed OCCT shells (#141).Rve.from_min_max,Rve.grid(),Rve.min_point/Rve.max_pointand per-axis periodicity flagspbc(#140).generate_surface_mesh(bounds=..., resolution=...)samples the implicit field on request forBox,SphereandSpinodoid(#139).GradedInfillandSweepare exported frommicrogen.shape(#139).Piece,CadShapeandshape_to_cadare importable from the top-levelmicrogenpackage.examples/ImplicitShapes/gyroid_implicit_phase.py, a tour of the implicit-first workflow.Sphinx-Gallery example gallery in the documentation, with interactive 3D scenes (PyVista), a new landing page with cards (sphinx-design), and the microgen colours on the
sphinx_rtd_themeshared with fedoo and simcoon.New examples: spinodoids (
examples/Spinodoids/spinodoid.py), periodic RVEs of random spheres and short fibres (examples/RVE/, with rounded or sharp fibres, periodic or cut by the cell), and boolean operations on implicit fields (examples/ImplicitShapes/implicit_booleans.py). The short fibre example draws its fibres with PyVista instead of exporting a CAD compound, and the preset lattices and gyroid-in-a-shell examples use the implicit path instead of CAD; all three now run at each documentation build.
Changed
The examples are grouped in one folder per gallery section (
examples/<Section>/<name>.py), read and write their files in their own directory, and end with a PyVista figure.run_examples.pyruns each one from its directory.Breaking:
Shape.funcis renamedShape.field(#144).Breaking: affine transforms follow the PyVista convention:
translate,rotateandscalereturn a new object by default and modify the current one only withinplace=True(#144).Phase.pieceslabels connected regions with 26-connectivity, so convex polyhedra are no longer split at sharp vertices (#143).Breaking:
Phase(shape=...)is replaced by thePhase.from_*constructors, and the CAD object is accessed throughPhase.cadinstead ofPhase.shape(#142).Breaking:
Rveis an immutable (frozen) dataclass (#140).The shared
try_make_solidhelper ofmicrogen.shape.periodic_shellupgrades sewn shells to solids for bothTpmsandSpinodoid(#145).The
honeycomb_*surface functions are annotated with array inputs and outputs, like the other TPMS surface functions (#147).
Removed
rotate_pv_euler(#139).The Jupyter notebooks of
examples/jupyter_notebooks/(v1 code) and the Binder badge.
2.0.0b1 - 2026-05-13
First beta of 2.0, covering all changes since 1.3.2 (including the
2.0.0dev0 and 2.0.0dev1 pre-releases). See the Migrating from 1.x
table below.
Added
Implicit (F-rep) modelling:
microgen.shape.implicit_ops(booleans, smooth blends,batch_smooth_union,repeat,shell,blend,from_field, …) and implicit-field support onShape, with|,&,-and~operators (#120).Signed-distance fields on
Box,Sphere,Cylinder,CapsuleandEllipsoid, so primitives compose directly with implicit operators (#133).Spinodoidshape built on a Gaussian random field (periodic Fourier-mode backend) (#127).Strut lattices:
AbstractLatticeand 12 presets (BodyCenteredCubic,FaceCenteredCubic,Cubic,Octahedron,Cuboctahedron,Diamond,OctetTruss,RhombicCuboctahedron,RhombicDodecahedron,TruncatedCube,TruncatedCuboctahedron,TruncatedOctahedron) (#99).orientationaccepts ascipy.spatial.transform.Rotation(#95).remesh_keeping_boundaries_for_fem, with aperiodicflag (#103).Python 3.14 support for the core install (#123).
CITATION.cffand Zenodo metadata (#125).Quick start and tutorials in the documentation (#111).
Changed
Breaking: CadQuery is no longer a dependency. The core install (mesh + implicit fields) needs only VTK/PyVista; CAD features need the
[cad]extra, which installscadquery-ocp-novtk(#123).Breaking:
generate_vtk()is renamedgenerate_surface_mesh()on every shape (#134).Surface meshes generated from implicit fields are watertight: they are capped at the bounding box (#137).
The mmg remeshing pipeline retries on failure and snaps coordinate drift that broke periodicity checks (#132).
mmg 5.8.0 (#96).
Removed
Fixed
Migrating from 1.x
1.x |
2.0 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Releases before 2.0 are listed on the GitHub releases page.