Add control side connectivity portal
The existing ConnectivityExplicit
could be used from the control side with some minor modifications, and would provide faster and more flexible lookups than the CellSet
API currently provides.
template <typename FromTopology, typename ToTopology>
vtkm::exec::ConnectivityExplicit< /* cell array portals... */> GetConnectivityControl(FromTopology, ToTopology);
template <typename FromTopology, typename ToTopology>
vtkm::exec::ConnectivityExplicit< /* const cell array portals... */> GetConnectivityConstControl(FromTopology, ToTopology);
-
Add the above API to CellSetExplicit
,CellSetSingleType
. -
ConnectivityExplicit should be moved out of the exec
namespace intocont
, likeArrayPortal
. -
Might wait to add GetConnectivityControl
until when/if we have the ability to modify cells fromConnectivityExplicit
. -
Also update the exec::ConnectivityStructured
andexec::ConnectivityPermuted
classes similarly.