Enzo
Loading...
Searching...
No Matches
AttributeTransfer.h
1#pragma once
2#include "Engine/Core/Types.h"
3#include "Engine/Primitives/Primitive.h"
4#include <span>
5
6namespace enzo::utils {
7
10{
11 Offset sourceOffset0;
12 Offset sourceOffset1;
14 double blend;
15 Offset destOffset;
16};
17
25void copyAttributeValues(
26 const geo::Primitive& source,
27 geo::Primitive& dest,
29 std::span<const Offset> sourceOffsets,
30 std::span<const Offset> destOffsets
31);
32
41void interpolateAttributeValues(
42 const geo::Primitive& source,
43 geo::Primitive& dest,
45 std::span<const ElementBlend> elementBlends
46);
47
48} // namespace enzo::utils
Basic attribute, parameter, and node types for Enzo.
size_t Offset
enzo::Offset is the internal discontinuous index of an element in a given AttributeOwner.
Definition Types.h:181
AttributeOwner
The segment of geometry that owns a particular attribute.
Definition Types.h:27
Base class for all primitive types in the engine.
An element whose attribute values are a blend of two source elements.
Definition AttributeTransfer.h:10
double blend
How far from the first source element toward the second, from 0 to 1.
Definition AttributeTransfer.h:14