Back to Nexara

Modifiers

A non-destructive stack on every object, including BSP booleans and Catmull-Clark subdivision.

Every object has a modifier stack. The viewport and picking use the evaluated mesh, and Component Mode draws the editable cage over the result.

Group Modifiers
Edit Weld
Generate Array, Bevel, Boolean, Mirror, Solidify, Subdivide, Subdivision Surface, Triangulate, Wireframe
Deform Cast, Displace, Simple Deform, Smooth

Each modifier has toggles for Component Mode, Viewport and Render, and a menu to apply, duplicate, move or delete it. Apply All Modifiers bakes the stack into the mesh and retains the Smooth Mesh Preview step.

Booleans

The Boolean modifier supports intersect, union and difference against one object or a whole collection. csg.cpp follows the BSP tree approach from Evan Wallace's csg.js, with two changes. It runs iteratively, which stops deep trees overflowing the stack, and it uses double precision.

The BSP step outputs loose polygons, and several passes turn them back into a usable mesh.

  1. Nearby points are welded, checking neighbouring cells for points on a cell border.
  2. T-junctions are repaired by inserting a vertex into any edge it lies on, which gives neighbouring fragments shared edges.
  3. Exact duplicate faces and unused vertices are removed.
  4. UVs and materials are copied from each fragment's source face.
  5. Fragments of the same original face are merged back into polygons.

Subdivision

Each Catmull-Clark step computes new positions from the old mesh only, which allows the points to be computed in parallel. The new quads are written into flat arrays for mesh_data::from_polygons.