Technical note · CAD
MEKCAD: a material-first CAD kernel for design optimization
Mechanical AI · November 2026 · 5 min read
Abstract
MEKCAD is the CAD kernel of MEKINT: a robust implicit CAD kernel, built for massively parallel CAD-CAE optimization. Where a conventional kernel stores a part as the surfaces that bound it, MEKCAD stores it as the material it is made of, and derives surfaces, meshes and files from that description when they are asked for. This note explains the idea at a conceptual level: how an implicit description differs from an explicit one, what “material first” means, why the approach suits design loops that rebuild and analyse a part thousands of times, and what an engineer can model and export with it.
1Introduction
Most CAD kernels were designed for a person at a workstation. The designer adds a feature, looks at the result and, if a fillet fails or a cut leaves a sliver, adjusts a dimension and tries again. The kernel can afford to stop and ask, because someone is there to answer.
Design optimization removes that person. An AI agent or an optimizer changes dimensions that nobody has tried, rebuilds the part, sends it to analysis and repeats, often across many variants at once. In that setting a rebuild that fails is not an inconvenience; it is a hole in the design space, and a study that meets enough of them cannot be trusted. Most of those rebuilds are also exploratory: the loop needs to know roughly how heavy, how stiff or how large a candidate is, and has no use yet for a boundary resolved to the last micrometre.
MEKCAD was written for that second setting. Inside MEKINT, an agent uses it to author and revise geometry, to hand shapes to the analysis engines and to read back the masses, dimensions and clearances a design decision depends on.
2Explicit and implicit geometry
An explicit CAD model is a boundary: a set of faces, each a trimmed piece of a plane, cylinder or freeform surface, joined along shared edges into a closed skin. The solid is whatever that skin encloses. It is one of the classical representations of a solid [1]. This is an excellent description for drawing, dimensioning and exchanging a finished part, and it is the form in which neutral files such as STEP carry geometry.
Its difficulty is in changing the part. Every Boolean, shell or blend must compute where surfaces meet, cut each face along those curves and stitch the pieces back into a closed skin. When two surfaces are nearly tangent, when a fillet runs out of room, or when a parameter change makes a face vanish, that reconstruction can fail, and the feature, with everything built on it, fails to regenerate. Both difficulties are long documented: the robustness of geometric computation on boundaries [2], and the problem of keeping references to faces and edges meaningful when a parametric model is rebuilt [3]. The failures are rare for any one edit and common across the thousands of edits an automated study makes. Each successful rebuild must then be meshed again before analysis can use it.
An implicit model describes the solid differently: as a rule that says, for any point in space, whether there is material there. The idea has an established body of research behind it [4]. A block, a cylinder and a sphere are simple rules; a union is material where either operand has it, a cut is material where the first has it and the second does not. Combining two solids in this way gives a solid by construction, because there is no skin to cut and re-stitch. The boundary still exists, but it is something read from the model when needed, rather than something the model must maintain after every edit.
| Explicit (boundary) | Implicit (material) | |
|---|---|---|
| What is stored | The faces and edges that enclose the part | Where the part has material |
| Combining and cutting | Surfaces are intersected, trimmed and re-joined | Material rules are combined directly |
| Under parameter change | A feature can fail to regenerate | The material description stays well defined |
| The boundary | Maintained after every edit | Read from the design when needed |
| Natural strength | Final documentation and exchange | Repeated, automated change |
3Material first
MEKCAD’s guiding rule is that the material definition of a part is the design, and everything else is a view of it. The features an engineer authors, such as an extrusion, a hole, a shell or a fillet, each state what material they add, remove or reshape. Faces, edges, meshes, drawings and exported files are derived from that definition; none of them is ever edited in place of it or fed back as the next version of the part.
Two consequences follow. The first is that the design does not degrade as it is worked on. Authored dimensions are kept as authored, and looking at the part coarsely does not alter it: asking for a rough mesh, then a fine one, then a STEP file gives three views of the same design, and none leaves a trace on the others.
The second is that a design loop can ask for as much detail as a decision needs: a quick, coarse answer while exploring, and a fine one when it matters.
4Built for CAD–CAE optimization
These properties are what a coupled design and analysis loop needs. The kernel is designed so that geometry regenerates when the optimizer moves a parameter, and the study sees the design space rather than the part of it that happened to rebuild. Early iterations can ask for coarse shapes, which is enough to rank candidates on mass, envelope, clearance or a first structural estimate, and reserve fine detail for the few that survive.
The kernel runs unattended in large parallel studies. Shapes pass to the analysis engines of MEKINT as meshes, and to other systems as boundary models and meshes in standard exchange formats.
5What you can model and export
Table 2 summarises the modelling range at the level of families.
| Family | Includes |
|---|---|
| Sketches and profiles | Constrained two-dimensional sketches of lines, arcs and splines; regions and offsets |
| Solid features | Extrude, revolve, sweep and loft; primitives; union, intersection and difference |
| Detail features | Fillets and chamfers, shells, holes, patterns, ribs, draft, offset and thicken |
| Assemblies and sheet metal | Placed and mated parts with interference and clearance; walls, flanges and flat patterns |
| Measurement | Volume, area, mass properties, sections, distances, wall thickness and draft |
| Meshes | Surface meshes for analysis and display |
| Exchange | STEP, IGES, STL, 3MF, glTF, OBJ and DXF, and a native part format |
6Summary
MEKCAD treats the material of a part as the design and its boundary as a view. That choice trades the always-exact skin of an explicit kernel for solids designed to stay valid under automated change, and for answers as quick or as detailed as the design loop needs. It is the trade a design loop driven by an agent and an optimizer requires, and it leaves the conventional outputs, measures, meshes and neutral files, available wherever the design leaves the loop.
References
- [1]A. A. G. Requicha, “Representations for rigid solids: theory, methods, and systems,” ACM Computing Surveys, 12(4), 437–464, 1980.
- [2]C. M. Hoffmann, “Robustness in geometric computations,” Journal of Computing and Information Science in Engineering, 1(2), 143–155, 2001.
- [3]J. Kripac, “A mechanism for persistently naming topological entities in history-based parametric solid models,” Computer-Aided Design, 29(2), 113–122, 1997.
- [4]A. Pasko, V. Adzhiev, A. Sourin and V. Savchenko, “Function representation in geometric modeling: concepts, implementation and applications,” The Visual Computer, 11(8), 429–446, 1995.
