ChiSquare
← Engineering Case Studies

MATHEMATICAL MODELLING / ALGORITHM DESIGN

Mathematical Curve Reconstruction from Discrete Geometry

Convert sampled road geometry into continuous curves that connect coherently.

Key idea Use cubic Bézier structure and boundary conditions to derive a parametric representation from the geometry.

From sampled points to a connected Bézier representationIndependently recreated explanatory diagram. All positions and curves are synthetic; no measured project performance is shown.DISCRETE GEOMETRYBOUNDARY-CONDITION CONSTRUCTIONP₀P₁P₂joinQ₁Q₂Q₃B(t) = (1−t)³P₀ + 3(1−t)²tP₁ + 3(1−t)t²P₂ + t³P₃Endpoint and tangent construction shown; not a project error comparison.
Conceptual explanation · synthetic illustration · not measured project results

An anonymised example from prior engineering experience, not a commercial client engagement delivered by ChiSquare.

01

The Problem

Road maps represented by discrete points needed to be converted into mathematical curves for an OpenDRIVE representation. A useful representation must describe the road between observations and connect adjacent road sections.

The work addressed parametric cubic geometry, alongside continuous road-width representations and branching road connections.

02

Data & Modelling Challenges

The available road geometry was sampled rather than continuous. Segment connections and branching introduce boundary constraints beyond fitting a separate curve through each set of points.

The historical project considered connection quality, representation error, conversion computation and data size. The source data is identified as confidential; neither those measurements nor employer-owned implementation code is reproduced here.

03

Mathematical Reasoning

A cubic Bézier curve is described by four control points. Its endpoint positions and endpoint derivatives have explicit relationships to those points. Boundary information can therefore constrain the parameters directly.

The documented method reformulated the representation around boundary conditions obtained from the road data and neighbouring sections. The engineering idea was to use geometric structure rather than rely solely on an iterative pointwise mean-squared-error objective. The equations shown here are standard Bézier identities, not a reproduction of the project’s parameter-derivation implementation.

04

Modelling & Engineering Approach

The project description records a Python algorithm that derives Bézier parameters from boundary conditions and converts them into a parametric cubic road representation. It describes calculating boundary relationships for preceding, following and branching road sections, as well as continuous road width.

The new diagrams show a generic endpoint-and-tangent construction. They do not specify the original proprietary solver or claim that all branching geometries are handled by a single unconstrained cubic curve.

Visual Explanation

01 / SAMPLED GEOMETRY
Discrete positions provide geometry; they do not yet define a continuous road section.
P₀P₁P₂P₃02 / BOUNDARY RELATIONSHIPS
Endpoint positions and tangent relationships constrain control points. Standard Bézier geometry is shown, not the original solver.
03 / CONNECTED REPRESENTATIONShared join
A generic position-and-tangent-continuous join. Branching and road-width constraints require their own construction.

B′(0) = 3(P₁ − P₀)   ·   B′(1) = 3(P₃ − P₂)

Standard mathematical identities · synthetic geometry · no project error or conversion-speed benchmark

06

Validation & Findings

The historical export contains curve-versus-sampled-geometry examples and connected-road construction examples. These support the documented reconstruction approach.

The export makes qualitative claims about computation and representation, but supplies no reproducible benchmark protocol or comparative error, speed or storage measurements. Those claims are not promoted as quantified improvements here. Full OpenDRIVE conformance and performance in a new mapping pipeline would require separate testing.

07 / ENGINEERING INSIGHT

Understanding geometric structure can enable direct formulations that reduce reliance on generic iterative fitting.

Evidence basis: Historical project description: Non-linear Curve Fitting (OpenDRIVE); accompanying reconstruction and boundary-condition examples.. No independently reproduced benchmark or commercial performance claim is included.

08 / RELEVANT ENGAGEMENT

Working on a Similar
Modelling Challenge?

If your team is facing a related forecasting, anomaly detection, optimisation, or mathematical modelling problem, we’d be interested in understanding the technical requirements.

Discuss Your Modelling Challenge ↗