Replace snapshot mechanism with epochs (#5764)

* Make tag identifiers monotonic

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Use epochs rather than snapshots in memory

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-03-17 12:28:51 +13:00
committed by GitHub
parent 3f02bb2065
commit 75a975b1e1
58 changed files with 8774 additions and 87182 deletions

View File

@ -19,218 +19,22 @@ description: Variables in memory after executing mounting-plate.kcl
"edge1": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "edge1",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
630,
698,
0
]
},
"from": [
-3.0,
-5.0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"to": [
3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
630,
698,
0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"type": "extrudePlane"
}
}
"value": "edge1"
},
"edge2": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "edge2",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
706,
772,
0
]
},
"from": [
3.0,
-5.0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"to": [
3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
706,
772,
0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"type": "extrudePlane"
}
}
"value": "edge2"
},
"edge3": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "edge3",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
780,
848,
0
]
},
"from": [
3.0,
5.0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
780,
848,
0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"type": "extrudePlane"
}
}
"value": "edge3"
},
"edge4": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "edge4",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
856,
875,
0
]
},
"from": [
-3.0,
5.0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"to": [
-3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
856,
875,
0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"type": "extrudePlane"
}
}
"value": "edge4"
},
"filletRadius": {
"type": "Number",
@ -514,215 +318,19 @@ description: Variables in memory after executing mounting-plate.kcl
"tags": {
"edge1": {
"type": "TagIdentifier",
"value": "edge1",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
630,
698,
0
]
},
"from": [
-3.0,
-5.0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"to": [
3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
630,
698,
0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"type": "extrudePlane"
}
}
"value": "edge1"
},
"edge2": {
"type": "TagIdentifier",
"value": "edge2",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
706,
772,
0
]
},
"from": [
3.0,
-5.0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"to": [
3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
706,
772,
0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"type": "extrudePlane"
}
}
"value": "edge2"
},
"edge3": {
"type": "TagIdentifier",
"value": "edge3",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
780,
848,
0
]
},
"from": [
3.0,
5.0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
780,
848,
0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"type": "extrudePlane"
}
}
"value": "edge3"
},
"edge4": {
"type": "TagIdentifier",
"value": "edge4",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
856,
875,
0
]
},
"from": [
-3.0,
5.0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"to": [
-3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
856,
875,
0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"type": "extrudePlane"
}
}
"value": "edge4"
}
},
"artifactId": "[uuid]",
@ -984,215 +592,19 @@ description: Variables in memory after executing mounting-plate.kcl
"tags": {
"edge1": {
"type": "TagIdentifier",
"value": "edge1",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
630,
698,
0
]
},
"from": [
-3.0,
-5.0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"to": [
3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
630,
698,
0
],
"tag": {
"end": 697,
"start": 691,
"type": "TagDeclarator",
"value": "edge1"
},
"type": "extrudePlane"
}
}
"value": "edge1"
},
"edge2": {
"type": "TagIdentifier",
"value": "edge2",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
706,
772,
0
]
},
"from": [
3.0,
-5.0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"to": [
3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
706,
772,
0
],
"tag": {
"end": 771,
"start": 765,
"type": "TagDeclarator",
"value": "edge2"
},
"type": "extrudePlane"
}
}
"value": "edge2"
},
"edge3": {
"type": "TagIdentifier",
"value": "edge3",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
780,
848,
0
]
},
"from": [
3.0,
5.0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
780,
848,
0
],
"tag": {
"end": 847,
"start": 841,
"type": "TagDeclarator",
"value": "edge3"
},
"type": "extrudePlane"
}
}
"value": "edge3"
},
"edge4": {
"type": "TagIdentifier",
"value": "edge4",
"info": {
"type": "TagEngineInfo",
"id": "[uuid]",
"sketch": "[uuid]",
"path": {
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
856,
875,
0
]
},
"from": [
-3.0,
5.0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"to": [
-3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
"surface": {
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
856,
875,
0
],
"tag": {
"end": 874,
"start": 868,
"type": "TagDeclarator",
"value": "edge4"
},
"type": "extrudePlane"
}
}
"value": "edge4"
}
},
"artifactId": "[uuid]",