Skip to main content

Module naming

Module naming 

Source
Expand description

Names for the faces and edges of a built solid that survive a rebuild.

A face is named by how it came to be: the feature that made it and the sketch element it was swept from, or the feature’s start or end. A face a later feature splits, trims or merges keeps the names of the faces it came from; an edge is named by the two faces it runs between. References keep these names beside their points, so a rebuild finds a face again after dimensions change or features go in earlier, where a point alone would miss it.

A name is a 64-bit hash of its parts, the same on every machine and in every version: it is saved in documents.

Functions§

child
parent’s child called part: a feature’s face swept from one of its sketch’s elements, or its start.
name_from_number_or_text
Reads a name written as a number or as a string of its digits: a script’s numbers are doubles, which cannot hold every name, so names reach scripts as strings and come back as them.
name_of
The name of bytes: never zero.
name_of_id
The name of a thing with a UUID’s bytes (a feature, a sketch element).
names_from_numbers_or_text
Reads a pair of names, each written as a number or as a string of its digits, as name_from_number_or_text reads one: an edge’s two faces.

Type Aliases§

TopoName
A face’s name; zero is no name.