14#include "arcane/core/materials/ConstituentItemIndexedSelectionView.h"
16#include "arcane/utils/FatalErrorException.h"
18#include "arcane/core/materials/internal/IMeshMaterialMngInternal.h"
29ConstituentItemIndexedSelectionViewBase::
30ConstituentItemIndexedSelectionViewBase(IndexArrayView indices)
31: m_selection_view(indices)
38ConstituentItemIndexedSelectionViewBase::
39ConstituentItemIndexedSelectionViewBase(IMeshComponent* constituent, Int32 selection_size)
41 SmallSpan<const Int32> v = constituent->materialMng()->_internalApi()->identitySelectionView();
43 if (v.size() < selection_size)
44 ARCANE_FATAL(
"Invalid size for identity selection (selection_size={0} identity={1})",
45 selection_size, v.size());
46 m_selection_view = SmallSpan<const Int32>{ v.data(), selection_size };
#define ARCANE_FATAL(...)
Macro envoyant une exception FatalErrorException.
Active toujours les traces dans les parties Arcane concernant les matériaux.