Resources
Numerical accuracy
The calculations in our apps: the policy each one is under, the precision it runs at, and the code itself.
This device: processor, memory, graphics The standard Precision is not robustness
Calculation policies
A policy says how one family of calculations keeps its precision. Open one to see its calculations, by source file, and their code.
-
Regulation checks of rooms, doors, windows and outlets
Works out what the model has for each rule of the active regulation pack: room area and least dimension, window area and openable area as a share of the floor, escape openings, egress door width, outlet spacing along the walls.
- BimCraft
- 11 calculations in 2 files
64-bit -
Regulation limits in force and how values are written
Gives an app's tools the tightest limit of a rule across the ticked regulation packs, and writes required and found values in problems and on the code summary sheet.
- CadCraft
- BimCraft
- CivilCraft
- DetailCraft
- 4 calculations in 2 files
64-bit Open item -
Regulation limits read from the pack's tables
Looks up the footing size, stud spacing and height, header span, joist and rafter span and wall insulation a regulation pack asks for, and compares the model with them.
- BimCraft
- 10 calculations
64-bit Open item -
Release, fire, explosion and toxic screening
Works out how much escapes through a hole, how far fire radiation, blast overpressure and a toxic or flammable cloud reach, and the chance of harm from a dose.
- CadCraft
- BimCraft
- 19 calculations in 3 files
64-bit Open item -
Relief valve sizing, depressuring and flare loads
Works out the orifice area a relief valve needs for gas, liquid, steam or two-phase flow, the heat input from a fire, the back pressure in the outlet line and flare header, flare radiation distance and the pressure of a vessel as it is vented.
- CadCraft
- BimCraft
- 17 calculations in 2 files
64-bit Open item -
Render hand-off manifest
The camera, sun, lamps, materials, exposure and frame numbers written into the package that an outside render engine reads.
- BimCraft
- ModelCraft
- 8 calculations
64-bit Open item -
Rendered picture size
Works out the width and height in pixels of a picture an assistant asks the Render dialog for.
- BimCraft
- 1 calculation
64-bit -
Rendered picture: mixing, post and color
The pixel values of a high-quality render as shown and as saved to an 8-bit or 16-bit picture, after light mixing, denoising, exposure, bloom, the view transform and the sRGB curve.
- BimCraft
- ModelCraft
- 14 calculations in 5 files
32-bit in part Open item -
Rendered picture: sample sums and color tables
Adds up the light samples of a CPU render into the picture and applies .cube color tables to it.
- BimCraft
- ModelCraft
- 5 calculations in 2 files
32-bit, display only -
Rendered pictures
Draws still pictures and video frames of the model: the fast render, the path-traced render and the textures of the material library.
- BimCraft
- ModelCraft
- 4 calculations in 4 files
32-bit, display only -
Rendering: sun direction, lamps and painted faces
Prepares the 3D model for a rendered picture: the sun's direction, the light fixtures as lamps, and which library material each painted face shows.
- BimCraft
- 3 calculations in 2 files
32-bit, display only -
Replacement schedule and cost over the building's life
Lists when each part of the building is replaced over a study period, what that costs with inflation and discounting, and how much embodied carbon the replacements add.
- BimCraft
- 6 calculations in 2 files
64-bit Open item -
Reverberation time of a box room
Works out the reverberation time of a box-shaped room in each frequency band by four formulas: Sabine, Eyring, Fitzroy and Arau-Puchades.
- BimCraft
- 2 calculations
64-bit -
Rigid-body dynamics of a mechanism
Joint torques for a given motion, the mass matrix, joint accelerations for given torques, energy, and a simulated motion over time.
Every app 64-bit, stated limit- 6 calculations
64-bit -
Roof faces, gable ends, fascia and soffit
Matches each roof edge to the wall under it and builds the roof's sloped slabs, gable walls, fascia boards and soffit panels with their areas and lengths.
- BimCraft
- 7 calculations
64-bit -
Roof faces, ridges and areas from an outline
Works out the roof over a building outline: the plan of every roof face, the ridge, hip and valley lines with their heights, the eave and fascia lines, and the roof's area and line lengths.
- CadCraft
- BimCraft
- ModelCraft
- PartCraft
- 23 calculations in 2 files
64-bit -
Roof planes over an outline
Works out the sloping faces, ridges, eave and area of a roof from the building's outline, a pitch and an overhang, and the roof's height over any plan point.
- BimCraft
- 8 calculations
64-bit -
Room acoustic measures from an impulse response
Reads a recorded or computed impulse response and works out reverberation times, early decay time, clarity, definition and center time.
- BimCraft
- 4 calculations
32-bit in part Open item -
Room impulse response and listening
Builds a room's impulse response from its reverberation times, and the sound of a clap, speech or music heard through it, to play or save.
- BimCraft
- 9 calculations
32-bit in part Open item -
Room modes and low-frequency wave solver
Lists the standing-wave frequencies of a box-shaped room, the frequency below which the room behaves as separate modes, and runs a small wave simulation to find the resonances at a listener.
- BimCraft
- 5 calculations
32-bit in part Open item -
Room outline, walls and openings
Builds the room a cabinet job sits in: its corners, the frame of each wall, inside tests, distances to walls, and the doors and windows along the walls.
- CadCraft
- BimCraft
- ModelCraft
- PartCraft
- 19 calculations in 2 files
64-bit Open item -
Room reverberation time
Works out how long sound takes to die away in each room, per octave band, from the room's volume, its surfaces and the air.
- BimCraft
- 11 calculations in 2 files
64-bit Open item -
Room, floor and ceiling quantities
Writes the shape, areas, perimeter and volume of rooms, floor slabs and ceilings found from the drawn walls.
- BimCraft
- 6 calculations
64-bit Open item -
Rooms and building outline from walls
Finds the closed rooms and the outer outline that a set of wall outlines encloses, with each room's area, perimeter and centroid.
- CadCraft
- BimCraft
- ModelCraft
- PartCraft
- 11 calculations
64-bit -
Rooms handed to add-ons with their doors, windows and walls
Gives an add-on each room of a level with its outline, area and elevation, and decides which doors, windows and walls belong to the room's edge.
- BimCraft
- 1 calculation
64-bit -
Rotations, transforms and small linear algebra (motion)
Rotation matrices, roll-pitch-yaw angles, rotation vectors, rigid transforms and the dense solve used by the robot and linkage calculations.
Every app 64-bit, direct- 7 calculations
64-bit Open item -
Samples per pixel reported after a render
Works out the average and the largest number of samples a pixel received in an adaptive path-traced render, shown on the finish line.
- BimCraft
- ModelCraft
- 1 calculation
32-bit in part Open item -
Sanitary drain sizing by fixture units
Adds up the fixture units each drain carries, finds which run flows into which, and picks the smallest pipe size the plumbing tables allow.
- BimCraft
- 4 calculations
64-bit -
Scan clean-up and JPEG decoding
Reads a scanned image, turns it into black and white, finds how far the sheet is rotated and turns it straight.
- CadCraft
- BimCraft
- ModelCraft
- CivilCraft
- PartCraft
- 6 calculations in 2 files
64-bit Open item -
Scan compared with the model
Compares a point cloud with each model element's box and reports whether the element is built, partly built or missing, how far the scanned surface is from it, and the percent complete.
- BimCraft
- 5 calculations
32-bit in part Open item -
Scan registration
Finds the rigid move (rotation and shift) that lines one scan up with others, from picked point pairs or by iterative closest point, and reports the remaining error.
- CadCraft
- BimCraft
- 15 calculations
32-bit in part Open item -
Scattered plants, rocks and people: how many and where
Works out how many items a scatter set asks for from the area it covers and its density, and picks the points they stand on.
- BimCraft
- ModelCraft
- 4 calculations
64-bit -
Schedule risk (Monte Carlo)
The finish at P10, P50, P80 and P90, how often each task is critical, and which durations drive the finish.
Every app 64-bit, stated limit- 3 calculations
64-bit -
Section caps: which elements are closed solids
Decides which elements have a closed surface, so the section view paints a cut face only where there is an inside to fill.
- BimCraft
- 2 calculations
32-bit, display only -
Section volumes in the 3D view
Works out the planes, corners and edges of the free-form section volumes that cut the 3D view.
- BimCraft
- 3 calculations
32-bit, display only -
Seismic loads and story drift to ASCE 7-22
The seismic base shear and story forces by the equivalent lateral force procedure, the building's period, the weight of each floor and the drift check.
- CadCraft
- BimCraft
- DetailCraft
- 11 calculations in 2 files
64-bit -
Sensor readings: values, times and limits
Reads sensor values and times from a CSV file or a live feed and flags a reading as high or low against the asset's limits.
- BimCraft
- 3 calculations
64-bit -
Sheet nesting
Lays parts out on sheets or a roll, reports the sheets used and the efficiency, checks the result, reads part outlines from DXF and writes the nest as DXF.
- CadCraft
- BimCraft
- ModelCraft
- PartCraft
- 19 calculations
64-bit Open item -
Site ground, building pads and cut and fill
Builds the site's ground from survey points, grades building pads into it, works out the cut and fill volumes, drapes paving on it and writes the ground to LandXML.
- BimCraft
- 17 calculations
64-bit Open item -
Site outline, building placement and levels
Stores the site boundary with its area and perimeter, places the building on the site, adds or splits levels, and turns a site-study mass into walls and floors.
- BimCraft
- 11 calculations in 2 files
64-bit Open item -
Site surroundings in local meters
Converts the buildings, parcels and zones found around an address from longitude and latitude to meters east and north of the address point, as suggestions a person can add to the model.
- BimCraft
- ModelCraft
- CivilCraft
- 4 calculations
64-bit -
Size of a copied area
Works out how big a copied area of a sheet is on paper and in the real world, the pixel size it is rendered at, and the scale and turn that fit it to two picked points.
- CadCraft
- BimCraft
- MarkupCraft
- DetailCraft
- 5 calculations
64-bit -
Sky view and daylight factor
Works out how much of the sky each window sees and the daylight factor on a grid of points in a room.
- BimCraft
- 19 calculations
64-bit -
Solar array layout on roofs and ground
Finds the roof planes that can carry modules, fits modules inside a plane with a setback, and lays out ground rows with a spacing that avoids shade at the winter solstice.
- BimCraft
- CivilCraft
- 8 calculations
64-bit -
Solar array shading
Works out, for each hour of each month's representative day, the share of a solar array's sample points that the model shades from the direct sun, and the share of the beam light lost.
- BimCraft
- CivilCraft
- 4 calculations
64-bit -
Solar arrays on the model
Reads the roof planes from the model, plans an array on a roof or the ground, stores it in the file, and combines shading over the modules for the yield.
- BimCraft
- 7 calculations
32-bit in part Open item -
Solar one-line currents, devices and wires
Works out the current on each run of a solar one-line diagram and picks the overcurrent device and wire size from the tables the person gives.
- BimCraft
- 6 calculations
64-bit Open item -
Solar string sizing
Works out how many modules go in a string and how many strings on an inverter from the module and inverter ratings and the temperatures given.
- BimCraft
- CivilCraft
- 6 calculations
64-bit Open item -
Solar yield estimate
Estimates the DC and AC energy a solar array gives in a year, month by month, with shading, temperature, losses and inverter clipping, and its performance ratio.
- BimCraft
- CivilCraft
- 8 calculations
64-bit Open item -
Solvers shared by the process engine
The linear solve, Newton iteration, ODE integrator and bracketed root finder that the flowsheet, reactors and design specifications call.
- CadCraft
- BimCraft
- 4 calculations
64-bit Open item
A policy is added only after its source was read. Each statement can be checked in the code shown on its page; the app repositories are public. When a release changes a calculation, its page says so until it has been read again.
The standard
-
64-bit everywhere
Every calculation runs in 64-bit floating point (IEEE 754 double precision), from the number you type to the number you read.
-
15 digits, always
A 64-bit number keeps any 15-digit value intact and takes 17 digits to write out in full. Our rule for every calculation: carry all 17 between steps, and order the arithmetic so that avoidable rounding never costs one of the first 15.
-
32-bit gets a warning
A 32-bit number keeps about 7 digits. Where a 32-bit step can reach a number you read, the calculation is flagged in the lists below, and the app will warn that the result can have less mathematical precision.
This device
What this browser can see of your machine. It is shown here only and sent nowhere; the desktop app reads the full hardware, a web page cannot.
The apps calculate in 64-bit on every device. Work handed to the graphics processor is the exception: browsers expose graphics processors as 32-bit calculators, which can provide less mathematical precision.
- Processor
- Memory
- Numbers in the apps
- Graphics processor (WebGL)
- WebGPU
A browser reports a rounded or capped view of the machine, never a full inventory: it gives the number of processor threads (not the model), memory rounded down and capped at 8 GB (Chromium only), and one graphics adapter even when a machine has several. What the browser reports about graphics is a capability, not a measurement of the card. The size of a graphics card's memory bus (a 192-bit bus, for example) says how fast data moves, not how precisely it calculates. Most graphics cards can calculate in 64-bit natively, slowly, but WebGL and WebGPU do not offer it to web pages.
Approaches
Every policy takes one of five approaches to keeping its precision.
- Exact values 8 policies
- Constants and factors are held as exact fractions from their definitions. The arithmetic is ordered so that no rounded factor is ever used.
- Exact predicates 1 policy
- Coordinates are 64-bit. The yes-or-no decisions that shape the geometry (which side of a line, inside or outside a circle) are computed exactly, so rounding cannot flip one.
- 64-bit, direct 337 policies
- Every value is a 64-bit number from input to result. Formulas are closed form or a direct solve, and every comparison uses a stated tolerance.
- 64-bit, stated limit 428 policies
- The arithmetic is 64-bit, but the method or the data sets the accuracy: a solver tolerance, a mesh, a step size, a datum shift, a table. The limit is stated where the result is shown.
- Display only 49 policies
- Computed to draw the screen, often in 32-bit on the graphics processor. No number a person reads, saves or exports comes from it.
- 32-bit step, flagged 118 policies
- One step stores or exchanges 32-bit values that reach a number a person reads. It is listed here with its open item, and the step is either moved to 64-bit or the app will warn where the number is read.
Precision is not robustness
Mathematical precision is how many digits a number keeps. Geometric robustness is whether a shape stays valid: every intersection found, every solid closed, every face joined to its neighbors. They are different properties, and a CAD system can have the first without the second.
Every geometric algorithm rests on yes-or-no questions. Is this point left or right of that line? Do these two edges cross? Is this point inside that circle? Each answer is the sign of a small expression. When three points are almost in line, the true value of that expression can be smaller than the rounding error of the arithmetic that computes it, and the sign comes out wrong. That happens at 15 digits as readily as at 7.
One wrong sign is not a small error in the last digit. It is a different decision: an intersection that is missed, two triangles that overlap, a face that points the wrong way, a solid with a gap in it. Every coordinate can be correct to 15 digits while the shape they describe is invalid.
What makes geometry robust
-
Exact predicates
The yes-or-no questions are answered exactly. The fast 64-bit answer is used when it is safely away from zero. When it is not, the sign is computed again with as many digits as it takes.
-
Decide once
A decision about a shape is recorded as topology, and every later step agrees with it. The same question is never asked twice with a chance of two answers.
-
Stated tolerances
Where a tolerance is used it is written down, scaled to the size of the geometry and applied the same way everywhere.
-
Local origins
Coordinates far from zero are moved to a local origin before the work, so the digits are spent on the geometry and not on the distance to the origin.
-
Valid by construction
Algorithms whose result is guaranteed to be a closed solid, whatever the input, in place of ones that repair the result afterwards.
-
More than the language
These choices matter more than the programming language. JavaScript, C++ and Rust all compute with the same 64-bit numbers: the same algorithm is as robust, or as fragile, in each.
Where our apps stand
The list on this page records both properties. Surface triangulation in CivilCraft and BimCraft uses exact predicates. Solid modeling in PartCraft runs on a kernel whose result is a closed solid by construction. The intersections in the CadCraft app use stated tolerances today, and exact tests for the near-parallel and near-tangent cases are an open item. Each policy says which approach it takes.