Actually, we had a Speckle question related to the Topsolid connector (and all futur parametric software connector) :
How to identify the topological elements of a geometry (vertex, edge, face) to keep track of the modifications in Speckle ?
Thanks for your ideas and suggestions!
@ahmedwael94 & @Tamu
Hey @Tamu - Welcome to the Speckle Community.
Are you looking to track changes to version-to-version commit in Speckle , or is there something specific to TopSolid models you want to track?
If you can give some idea of the use case, we can better understand the limits of how to try and find a solution.
Hey @jonathon ! Thanks for your feedback.
Our question is more about the identification of topological elements of geometry.
For Example, how to know in a newer version of a Brep what Faces/Edges/Vertices have changed ?
We have a use case in TopSolid (or any design tool parametric software) described here :
- We receive a cube using Speckle
- We color one face in TopSolid
- We receive a new version of the cube and we want to be able to identify the same face so that the color stays
So our question is : Is there an identification mechanism for the topological elements ? Like tokens or ids ?
We added an illustration and some description in the link here : Speckle.TopSolid wiki
Hi there @Tamu!
Currently, our BREP class does not support per-feature IDs, and it may be a tricky thing to add
The brep is serialised in a monolithic json with all it’s children info converted into flat lists of values (for perfomance reasons), so even if they had IDs in Rhino, those would be lost.
But you use-case is interesting! Maybe Jonathon has some possible ideas?
I understand the question, and very much welcome any contribution @ahmedwael94 and Tomas can make
Thank you @jonathon and @AlanRynne !!
Things are way clearer for us now
@Tamu and I will discuss and see if we come up with something to propose soon
Some news with some results !
We have chosen to follow the geometry of sending the identity of each faces, edges and vertices via a listing of IDs (Moniker)
// List of faces with are Moniker* (sorting matters)
// List of edges with are Moniker* (sorting matters
// List of vertices with are Moniker* and a hash containing
// all the Monikers* of the faces and edges that are connected
// * A Moniker is the geometry modification history,
// it can be compared to a unique identifier.
I updated the wiki with a suggestion for the data model.
- Send : Sending Alias with each object with the commit
- Receive : Upon receiving data check if an alias exists and create the correct geometry structure
Next step !
The next challenge is to make compatibility with Revit (and the other connectors) !
Any ideas are welcome or help to debug in Revit !