Release Notes
v0.10.10
The tet mesher's public surface. make_tet_mesh(polygons) returns the
tetrahedra and the tet_mesh_status alone; tf::return_report returns the
tet_mesh_report in its place, its diagnostics measured only when asked,
and composes with tf::return_index_map; the call takes one
tet_mesh_config — split_constraints, tolerance (plane pooling at the
entrance and every drain's band), and the integer site_budget_ratio —
and a form tagged with a frame, a tree, a face membership or a manifold
edge link is read as tagged. Crossings the recovery finds are cut inline by
the drains, whose points have one identity authority and whose lanes split
on the plane arrangement's own wave, and the drains end by a well-founded
measure that names a stall. The constraint recovery runs across regions
of the surface. A phase whose due set is large enough is divided by the
surface's partition, each region's walks run beside the others' on their
own rows, a walk that reaches another region's row stops where it stands
and is finished after the barrier, and the product is one mesh at any
worker count; on a 2.1M-vertex scan the recovery is a fifth faster at
sixteen workers and on an 0.8M one two fifths, while a mesh too small to
divide runs the serial kernel byte for byte. The kernel accounts for its
scratch. Every removal releases the ring counts it set, every table
states its lifetime and verifies its end, every loop that is not bounded
by its carrier counts its passes and refuses by name, and a retirement
passes a site no cell holds. The module remains in active development.
tf::make_tube_mesh winds its tubes outward. They were wound inward, so a renderer
culling back faces showed the far inner wall of every tube.
v0.10.9
Tetrahedral meshing. make_tet_mesh(polygons) states the solid a closed
surface winds as a constrained Delaunay tetrahedralization: coplanar
triangles wound alike merge into one facet, the facets and segments become
the constraints of an exact Delaunay tetrahedralization of the vertices,
every constraint is recovered by flips first and points last, and the
regions are labeled by winding and those the surface winds positively kept;
it returns the tetrahedra, the triangles covering each facet, the facets
each input face lies in, and a report naming what was refused. The module is
in active development. The isotropic remesher splits a boundary edge
soundly. The split now writes
both loop links of a boundary edge's halves, where a later boundary
collapse could splice through a stale link and the compaction read removed
slots. A carve that grows twice in a row is refused. The arrangement's
carve refuses as diverging (reseat_refusal::diverged) a round that states
more targets than it was given after a round that did the same, leaving
the arrangement as built; every carve that converged before converges
unchanged.
v0.10.8
Geodesic distances. make_geodesic_distances(polygons, seeds[, radius])
states the distance from the nearest seed at every vertex: a
label-correcting front over the two-neighbour unfolding update, run in
double and stated in the resolved output type, zero at a seed, infinity
where the front never arrives or past the radius; a large front splits into
one front per thread and every distance carries the seed that stated it.
Dirichlet fields over a sparse Cholesky. make_dirichlet_field(polygons, corner_weights, fixed_ids, fixed_values, order) holds one scalar at the
fixed vertices and lets it vanish under the Laplacian elsewhere, harmonic
or biharmonic, over the cotangent weights or the per-corner weights the
caller states, and names its refusal; underneath it tf::linalg is new —
analyze_cholesky once per pattern, factor_cholesky multifrontal over
supernodes, solve_cholesky for many right-hand sides in one pass. The
hole fill's chart tier. Between the enumeration of a tiny rim and the
Delaunay table of a general one, fill_holes charts a hole as a height
field over its rim's plane, a trend plus a biharmonic residual; an exactly
planar rim is lidded in its plane. hole_fill_config::split_rim states
whether a tier may split an original rim edge, every split a dyadic record
make_filled_mesh replays, and the result reports the chart's verdict
whichever tier held the rim. The census is a diff on the standing
arrangement. make_csg_graph runs to the census's fixed point by
statements against the built world — welds into the identity substrate,
carriers carved and re-seated in the caller's own id space — never by a
rebuild; census() records the rounds and statements, {0, 0} the green
path. The tolerance band pools by quantization. Every exact plane is
quantized, equal keys are one pool across all forms, every vertex of a
pooled face stands on the pool's plane exactly, pooling is transitive, a
rim vertex within the band of another form's face lands on that face's
nearest feature, interior vertices never move, and zero is the identity.
Folds and borders. A depth border fences a component only where the net
winding per form changes across it, so a wall folded into cancelling layers
makes no border. Sheets and fragments. make_csg_open_fragments(graph)
returns, per form, the live triangles of every component whose two sides
are one domain — exactly what make_csg_domains leaves out under the same
config — with the same return_source_ids and return_index_map
overloads; the volumes that hold a sheet's free rim are read off its sides
and named in every binding. Topology asks what a boundary is.has_holes is true when a boundary rim is a hole, has_flaps when a rim
is a flap; every rim is one or the other. tf::nth_element selects by
pattern-defeating quickselect, and the orient2d and incircle filters decide
from rounded coordinate differences. Repairs. The facade's integer
mean and norm answer in binary64; the MSVC build is clean again.
v0.10.7
Deterministic domains at any thread count. Components are ranked by
their first member once the labels close, so make_csg_domains returns the
same cells in the same order, with the index maps over them, single-threaded
or parallel. A radial fan certifies its order or withholds it, each
page's apex read against every other page's carrier with exact predicates
behind sound float filters (tf::exact::triple_product, projected_dot,
offset_dot). One seating law. The cut world's entrance and the
recovery wave seat their faces through seat_named_planes; the numeric
coplanarity allowance is deleted, and a point the wave mints within one
lattice unit of another piece lands on it, so near-collinear recovery
converges. The band pulls through committed planes: a plane commits
only when every corner of the face stands within the band, and an
identification the input states exactly outranks the band's. A fused
wall reads its sheets off its layers. Sub-lattice features are a
stated contract: the f64 one-shot, a band where the door can place, or
tf::cleaned with one tolerance on every operand.
v0.10.6
A mesh fills its own holes. fill_holes fills the rims
make_boundary_rims returns through a ladder of tiers on the exact
lattice — enumeration for a rim of at most five vertices, the constrained
Delaunay refiner in the rim's plane, otherwise a two-stage table over a
Delaunay tetrahedralization of its sites; hole_fill_config states the
request, every rim's status is named, and make_filled_mesh replays the
plans; the compiled facade carries the family sync and async. The
lattice gains its tetrahedralization. delaunay_tetrahedralizer builds
the exact incremental 3D Delaunay of lattice sites, parallel by default
and the same bytes at any worker count, with append_sites after a build;
insphere joins the exact predicates. Every floating solid is placed:
the nesting census sees every wall, sheets and welded rims included. The
construction rung meta<Int>::T3 carries the values that are themselves
products. The quadric toggle use_quadric lives only on
isotropic_remesh_config and length_collapse_config; decimate and
simplify always score by quadrics. exclude_outer_shell drops the
universe the volumes name on every build.
v0.10.5
One API change and a diagnostics family. The intersection request is
two facts: intersect_mode carries the classifier (primitives or
sos) and the within flag, spelled primitives | within; the resolve
flags (resolve_crossing_contours, resolve_self_crossing_contours,
resolve_contours, self_intersections) are removed. Crossings between
contour classes resolve unconditionally — every default already behaved
so and keeps its result byte for byte; the off-switch spellings no
longer exist. TypeScript curve entries now honor within (previously
stripped). The mesh states its own health:
compute_face_quality, compute_dihedral_angles, make_boundary_rims,
make_non_manifold_vertices, is_manifold,
split_non_manifold_vertices (with return_index_map), and
has_self_intersections — at all four tiers: core, the compiled facade
sync and async, Python, and TypeScript. Domain membership counts
winding: an N-operand within build no longer erases operand
membership in domain extraction (every bounded domain read "inside
operand 0" in 0.10.3/0.10.4) — the inclusion counts winding instead of
parity, so a double-covered pocket reads inside its own operand and a
zero-thickness fold encloses nothing, with clean inputs byte-identical;
and a multi-operand within build names self split points in the flat
vertex space, so a self-intersecting operand beside others cuts exactly
where it crosses itself instead of exhausting the recovery wave.
Repairs: a remesh under
machine load answers the mesh, not the schedule (identity minted in
input order, the collapse partition frozen before any task runs, the
vertex fan guard closing at its own vertex); binary STL reads are no
longer undefined on misaligned records; the facade's csg index map hands
through each tag's uncut span as the core states it.
v0.10.4
Two new tiers and a new spatial query. The volume module: dense
scalar fields with a two-type carrier (int16 samples on a float grid),
mesh and analytic SDF generation — exact winding-counted sign, banded
mode 10-45x — field CSG with posed operands, resampling, plane
slicing, and extraction by Flying Edges or sharp dual contouring, with
the same surface in Python over zero-copy NumPy. The compiled C++
facade (trueform/cpp, TF_BUILD_CPP=ON): the library precompiled
over an explicit type matrix — mesh assembly with a stamped structure
cache, build verbs, the module surface sync and async, a VTK mesh
source. Winding numbers: make_winding_moments rides the existing
tree with order-two moments; winding_number answers single or batch,
and signed_distance on a winding-tagged form signs by it — the
graceful answer for soups and open meshes, and how both binding tiers
now sign. NIfTI-1 IO with .nii.gz, the affine split into grid
and pose, and hardware-CRC gzip validation. Non-manifold edges are
sectored in every state, making make_outer_shell idempotent on
pinched inputs and domain counts match the mesh-tier oracle.
v0.10.1
Repairs; no API breaks. orient_faces_consistently and
ensure_positive_orientation now return whether the surface is
orientable: every reversal is decided against the input winding and
applied after the walk, so one call settles every orientable
manifold-edge component, and a non-orientable component is left
untouched rather than half-repaired. An integral coordinate type votes
by face count, its lattice not holding a squared area.
euler_characteristic counts boundary edges correctly — a disk is 1,
an uncapped tube 0. fit_similarity_alignment measures the source
spread in the same space as its covariance, so a scaled frame no longer
skews the recovered scale. The VTK wrappers delegate orientation to the
core and surface its verdict.
v0.10.0 — one engine
The engine
Every boolean runs on the CSG engine. tf::make_boolean builds the same
N-form arrangement that powers tf::make_csg_graph and evaluates the
operation as a boolean expression over it. One arrangement answers any number
of boolean expressions, domain reads, and curve extractions; there is one
pipeline, one triangulator, one classification tier.
The arrangement is two tiers. The local arrangement is the identity tier: polygon intersections are classified exactly, and every crossing, landing, and coincidence names one created identity on an exact integer lattice — a point's identity is a canonical name, not a coordinate. Coplanar faces, within a mesh and across meshes, pool onto one geometric plane, so one plane is one identity and coincident walls cannot disagree. The plane arrangement is the triangulation tier: each plane carrier triangulates against its own constraint set, and a statement that cannot stand as given is resolved — split at its crossings, welded at its coincidences — in recovery waves that repeat until nothing new is stated. Classification — components, fences, radial fans, domains — reads the finished arrangement, and every product (boolean meshes, domain cells, the outer shell, intersection curves) is a read.
Coincidence is resolved at the root. When quantization collapses geometry — duplicate vertices, sub-epsilon edges, folded slivers, vertices landing on the intersection curve — the arrangement resolves each such coincidence to a single created identity, and the surrounding faces re-emit conformed to it. Raw arrangements are watertight by construction at these sites.
tf::triangulated is the same engine with the face as the carrier. Every
face triangulates on its own boundary, a shared edge is one identity in both
faces, and a self-crossing or folded face is resolved — split at its own
crossings, its coincident vertices welded — never refused silently or
dropped. A resolved face's positions are unchanged; only its names are.
Refusals are a surface, not a silence. tf::return_refused on
tf::triangulated, tf::embedded_isocurves, and tf::make_isobands
returns the input faces a build declined, and failed() on a built graph
names the carriers still refusing after recovery. Nothing is dropped without
a name, and the surface costs zero when nothing refuses.
Tolerance is a statement about the input
A tolerance is the pitch the input's planes are quantized to; it never widens a predicate. One converter is built over the union of the input forms; every face's plane — direction and offset — is rounded onto a grid of that pitch, so two faces whose planes differ by less than it share one plane. Every original vertex is then placed, at most the tolerance away, onto the quantized planes its own faces stand on — the meet of three where it is a corner, a line of two where it lies on a crease, its own tangent plane where the surface is smooth. The result is the exact arrangement of that moved mesh: every predicate below the placement runs exact, and a weld is an identity, never a proximity. A tolerance of zero is the identity — nothing moves, no placement table is built, and the result is byte-identical to the exact arrangement of the input as given.
A wall doubled at less than the pitch becomes one wall; one doubled at more stays two. A vertex a weld retires has no output point of its own — the index map reports it absent. Plane identity is quantized-name equality, so results from calls with different converter domains are not identity-comparable; a session that needs one perturbation across calls pins one converter.
Provenance selection
One arrangement, any read. tf::csg::selection names which forms' faces
reach the output, orthogonally to the boolean algebra:
auto graph = tf::make_csg_graph(forms); // A=0, B=1, C=2
auto e = (tf::csg::op(0) | tf::csg::op(1)) - tf::csg::op(2);
auto solid = tf::make_csg_mesh(graph, e); // as always
auto partA = tf::make_csg_mesh(graph, tf::csg::selection(0, e)); // A's walls of it
auto inA = tf::make_csg_mesh(graph, tf::csg::inside(2, tf::csg::op(0))); // C inside A
auto embed = tf::make_csg_mesh(graph, tf::csg::selection({0})); // A cut by all, no boolean
The per-form parts partition the result face-for-face and re-weld into the
solid. tf::csg::inside reads the other side of the same question — the
named forms' surface lying INSIDE the expression's region, both sides of a
piece in it, kept in the form's stored winding, which is how a sheet's
surface within a solid is asked for. tf::make_csg_domains takes the same
selection — each cell's walls by contributor — in its boundary kind only.
Every existing expression call is unchanged.
The module map (breaking)
The cut module was named for the verb its first consumer needed. Its ground
is split by mechanism, and there is no compatibility shim: the old names are
gone, not deprecated.
<trueform/arrangement.hpp>— mesh, polygon, and segment arrangements: the arrangement of a set of forms and its reads.<trueform/iso.hpp>— the scalar-field tier:embedded_isocurves,make_isobands,make_isocontours,scalar_field_intersections.<trueform/csg.hpp>— booleans, the CSG graph, expressions, selections, domains, and the outer shell.
| Old | New |
|---|---|
<trueform/cut.hpp> | <trueform/arrangement.hpp> |
<trueform/cut/...> | <trueform/arrangement/...> |
tf::cut:: | tf::arrangement:: |
<trueform/intersect/make_isocurves.hpp> | <trueform/iso.hpp> |
<trueform/intersect/scalar_field_intersections.hpp> | <trueform/iso.hpp> |
tf::cut::iso:: | tf::iso:: |
tf::make_isocontours, tf::make_isobands, tf::embedded_isocurves and
tf::scalar_field_intersections keep their names; only their header and the
machinery namespace below them changed. See Iso.
tf::make_boolean keeps its name but not its umbrella. A boolean is the
two-operand case of the CSG arrangement, so the entry lives in
<trueform/csg.hpp> — not <trueform/arrangement.hpp>. See
CSG.
Removed entry points
| Removed | Use instead |
|---|---|
tf::embedded_intersection_curves | tf::make_mesh_arrangements |
tf::embedded_self_intersection_curves | tf::make_polygon_arrangements |
tf::intersections_between_polygons | tf::polygon_intersections |
tf::intersections_within_polygons | tf::polygon_intersections |
tf::triangulated_faces | tf::triangulated |
tf::triangulated_faces returned corners alone, against a point table it did
not return. That was sound only while a triangulation could name no point the
input did not carry, and it no longer can: a face whose loop crosses itself is
resolved, and the identity its crossing stands on is a corner the caller's own
array has no row for. tf::triangulated returns the corners with the table
they index. Code that needs the connectivity without the mesh reads the
arrangement mesh tier (<trueform/arrangement/mesh/mesh_triangulation.hpp>)
directly — it states the triangles, the minted identities and the refusal
surface as one product.
tf::polygon_intersections is not exported by <trueform/intersect.hpp>;
include <trueform/intersect/polygon_intersections.hpp> directly. Arity plus
tf::intersect_config decide between- and within-form records, so the two
alias types have no successor names.
Retired triangulators
The constrained Delaunay family is the library's one triangulation engine.
| Removed | Use instead |
|---|---|
tf::ear_cutter | tf::constrained_delaunay_triangulator, or tf::triangulated for a whole mesh |
tf::delaunay_triangulator | tf::unconstrained_delaunay_triangulator, or tf::make_cdt(points) |
tf::delaunay_flipper | — no replacement; it existed only for the batch triangulator |
tf::constrained_delaunay_triangulator::build and its siblings take a
trailing tf::cdt_region_mode
that states what region_labels() mean.
The exact lattice
The lattice integer is read off the coordinate type or named by the caller —
it is never a hardcoded default. Every entry point (tf::make_cdt, the
arrangements, the booleans, the iso cut) resolves it for you; direct class
instantiations are affected:
tf::constrained_delaunay_triangulatorandtf::unconstrained_delaunay_triangulatordefault theirIntfrom the coordinate type (float →int32, double →int64). A direct double-precision instantiation that leaned on the old fixed-int32default now computes on theint64lattice.- The planar-graph classes —
tf::planar_graph_regions,tf::face_hole_relations,tf::face_split_by_edges,tf::hole_patcher,tf::planar_embedding— carry no coordinate type, soInthas no default:tf::planar_embedding<int>does not compile; writetf::planar_embedding<int, tf::exact::int32>(or the lattice your coordinates call for).
API changes
make_boolean(a, b, op[, sheets][, config])— operands listed insheetsbound no volume and cut as oriented separators. An open operand is a volume unless declared a sheet; declare it a sheet for the previous open-mesh behavior.- Booleans take
tf::arrangement_config(anintersect_config, atriangulation_type, or both);boolean_configdoes not exist. Multi-nesting is always on. make_boolean(..., tf::return_index_map)returnstf::stitch_index_map— a producer-agnostic carrier consumed bytf::stitch_*.- A swapped difference does not reverse winding.
intersect_config::toleranceis the distance an input vertex may move to reach the lattice — a statement about the input, exact below it. A band on the predicates' comparisons does not exist.tf::intersections_within_segments::build(segments)takes nointersect_config: the segment tier is exact, like every tier.make_intersection_curvesdefaults toprimitives.triangulatedresolves rather than refuses: a self-crossing face is split at its crossings, coincident vertices weld into one identity at the same coordinate — a resolved face need not name every vertex it was given; positions are unchanged, only names. Region fill islabels != 0.fit_similarity_alignmentrecovers the scale independent of the point count; it wasntimes too small (#21).
Bindings
The Python and TypeScript layers follow the same map in the same release, so all three languages speak the same module names. See the Python release notes and the TypeScript release notes.
