Skip to content

Design decisions

Architecture decision records (ADRs) explain why geomcore is shaped the way it is. They are historical: a later ADR may supersede an earlier one, and the text says so where it happens. For the current API, use the reference; for the vocabulary, use CONTEXT.md.

Foundations

  • 0002 — No batch-transform architecture
  • 0006 — Angles derive from the confusion tolerance and the geometry's extent
  • 0009 — Equality is exact; coincidence takes a tolerance
  • 0022 — Each public item has one path, at the crate root
  • 0027 — One test sample list per shape enum
  • 0051 — A result does not depend on the model's size or placement

Types and the shape model

  • 0005 — Parameter ranges are given by trimmed curves
  • 0008 — B-spline poles stay Cartesian, their weights apart
  • 0010 — Surface normals are unit, with second-derivative and step-off recovery
  • 0013 — Only 2D types carry a dimension suffix
  • 0014 — The 2D curve tier mirrors the 3D one
  • 0015 — Shared behaviour lives on the traits
  • 0016 — Extrusion and revolution surfaces are first-class; offset is an operation
  • 0017 — Each shape enum lists its variants once
  • 0024 — Transform and reversal are shape traits
  • 0054 — A unit vector is a direction, by type

Results and queries

  • 0012 — Results describe themselves
  • 0018 — Exact results convert straight to family results
  • 0033 — Distance extrema are an operation; projection belongs to the shape
  • 0037 — Evaluation past the bounds clamps a spline
  • 0053 — A result pickles with its operands, in its own version

Discretization and fitting

  • 0003 — Discretization deviations are proven bounds
  • 0004 — Discretization fills caller-owned buffers
  • 0036 — An exact quartic is fitted within confusion
  • 0055 — A fit refuses points the confusion tolerance cannot tell from a lower shape
  • 0056 — A 2D curve offsets exactly or within a deviation, reporting its cusps

Intersections

  • 0001 — Intersections favour speed over ergonomics (superseded in part by 0011 and 0018)
  • 0007 — Numeric intersections report their completeness
  • 0011 — Intersections route to the exact solution, else numeric, and say which ran
  • 0019 — The subdivision searches share one driver
  • 0023 — One closed-form pair table owns routing
  • 0025 — Marching is a surface pair, a tracer and a seeding policy
  • 0026 — Any surface searches as patches with a map back
  • 0034 — A tangent contact within tolerance is one complete hit
  • 0039 — A trimmed surface clips the intersection of its basis
  • 0040 — A cone and a cylinder are read along the cylinder
  • 0041 — Two cones are read along the first cone
  • 0042 — An unbounded quartic branch is an exact curve
  • 0043 — Touching quadrics cross on the walk
  • 0044 — An apex on the other surface is a crossing on the walk
  • 0045 — Each apex on the other cone is a line and a cubic
  • 0046 — A march seeds around a singular point and reports a seed it cannot leave
  • 0047 — Circles do not seed a march against a torus
  • 0048 — Tube circles share the quartic walk
  • 0049 — Tube circles meet a cylinder or a cone in up to four points
  • 0050 — A second torus is read along the same tube circles
  • 0052 — A boundary curve lying on the other surface is one whole curve
  • 0057 — A contact is read where its curve stays within confusion

Curves on surfaces

  • 0030 — A UV curve maps to an exact curve or is refused
  • 0031 — The surface maps a 3D curve to its UV curve, and curves do not depend on surfaces
  • 0032 — A UV curve on a spline surface is composed exactly
  • 0035 — A UV curve maps within a deviation to one B-spline

Python bindings

  • 0021 — Python intersect always releases the interpreter lock
  • 0029 — Python stubs inherit the method sets
  • 0038 — The Python package is flat, like the crate root