You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use dom:subset_handler() which returns the subset handler of a domain (see domain_bridge.cpp).
And there is subset_handler_bridge.cpp, where the different subset-handlers are registered.
Here you could easily add the different overloads of num_vertices, num_edges, etc. methods
and use them directly in your script: dom:subset_handler():num_edges(subsetIndex)`.
stephanmg
changed the title
[FEATURE] Get number of geometric elements in subsets of domain from Lua
[FEATURE] Get number of geometric elements in subsets of domain (Lua)
Sep 29, 2020
stephanmg
changed the title
[FEATURE] Get number of geometric elements in subsets of domain (Lua)
[FEATURE] Get number of geometric elements in domain subset (Lua)
Sep 29, 2020
Problem:
Given a domain, how can one find the number of a certain type of geometric element (e.g. Vertex, Edge) in a subset from Lua?
Workarounds (Thanks to @mastep84):
Proposed solution by @sreiter:
See branch https://github.com/stephanmg/ugcore/tree/featureNumElements for details and status (WIP).
The text was updated successfully, but these errors were encountered: