Wildmeshing Toolkit
Loading...
Searching...
No Matches
make_cast_attribute_transfer_strategy.cpp
Go to the documentation of this file.
3
5
6
7std::shared_ptr<AttributeTransferStrategyBase> make_cast_attribute_transfer_strategy(
10{
11 return std::visit(
12 [&](const auto& s,
13 const auto& t) noexcept -> std::shared_ptr<AttributeTransferStrategyBase> {
14 using SType = typename std::decay_t<decltype(s)>::Type;
15 using TType = typename std::decay_t<decltype(t)>::Type;
16
17 return std::make_shared<CastAttributeTransferStrategy<TType, SType>>(target, source);
18 },
19 source.handle(),
20 target.handle());
21}
22
23} // namespace wmtk::operations::attribute_update
std::shared_ptr< AttributeTransferStrategyBase > make_cast_attribute_transfer_strategy(const wmtk::attribute::MeshAttributeHandle &source, const wmtk::attribute::MeshAttributeHandle &target)