Files
speckle-sharp-sdk/tests/Speckle.Sdk.Serialization.Tests/ExternalIdTests.ExternalIdTest_Detached_Nested.verified.json
Adam Hathcock 1039e75d0c Calculate closures correctly (#309)
* Maybe really fixes closures

* fornat

* add ai generated tests

* fix tests

* fix tests

* added test with correct number of closures?

* closures are self contained.  don't increment on attached properties

* format

* MergeClosure should reuse if exists, not just set

* add not null on a method
2025-05-27 14:05:10 +01:00

71 lines
1.7 KiB
JSON

{
"8d27f5c7fac36d985d89bb6d6d8acddc": {
"applicationId": null,
"data": [
1.0,
2.0
],
"id": "8d27f5c7fac36d985d89bb6d6d8acddc",
"speckle_type": "Speckle.Core.Models.DataChunk"
},
"93737bb0800970f29d68748ee206399d": {
"__closure": {
"8d27f5c7fac36d985d89bb6d6d8acddc": 2,
"cfaf7ae0dfc5a7cf3343bb6db46ed238": 1
},
"applicationId": null,
"area": 0.0,
"bbox": null,
"closed": false,
"degree": 1,
"displayValue": {
"__closure": null,
"referencedId": "cfaf7ae0dfc5a7cf3343bb6db46ed238",
"speckle_type": "reference"
},
"domain": {
"applicationId": null,
"end": 1.0,
"id": "4d47df83148d8bad7bd2657bd9158b4c",
"speckle_type": "Objects.Primitive.Interval",
"start": 0.0
},
"id": "93737bb0800970f29d68748ee206399d",
"knots": [],
"length": 0.0,
"periodic": false,
"points": [],
"rational": false,
"speckle_type": "Objects.Geometry.Curve",
"units": "cm",
"weights": []
},
"cfaf7ae0dfc5a7cf3343bb6db46ed238": {
"__closure": {
"8d27f5c7fac36d985d89bb6d6d8acddc": 1
},
"applicationId": null,
"area": 0.0,
"bbox": null,
"closed": false,
"domain": {
"applicationId": null,
"end": 1.0,
"id": "4d47df83148d8bad7bd2657bd9158b4c",
"speckle_type": "Objects.Primitive.Interval",
"start": 0.0
},
"id": "cfaf7ae0dfc5a7cf3343bb6db46ed238",
"length": 0.0,
"speckle_type": "Objects.Geometry.Polyline",
"units": "cm",
"value": [
{
"__closure": null,
"referencedId": "8d27f5c7fac36d985d89bb6d6d8acddc",
"speckle_type": "reference"
}
]
}
}