maxon.MeshAttributeClassInterface¶
Description¶
By implementing this interface, it is possible to define a new mesh attribute type.
So that a data type can be attached to mesh vertices or to mesh polyvertices.
The interface needs to be implemented with the data type description, which has to be registered
using
maxon.MAXON_MESHATTRIBUTE()
and maxon.MAXON_DATATYPE
,
and all arithmetic and comparison functions.Methods Signature¶
Returns the |
|
|
Interpolates linearly between two values. |
Methods Definition¶
-
MeshAttributeClassInterface.
GetDataType
()¶ Returns the
maxon.DataType
this class manages, e.g.maxon.Vector2d32
for UV maps.- Returns
The DataType.
- Return type
-
MeshAttributeClassInterface.
InterpolateLinear
(data1, data2, blend)¶ Interpolates linearly between two values. Both addresses need to be cast to the appropriate data type.
- Parameters
data1 (Same as
maxon.MeshAttributeClassInterface.GetDataType()
) – The first value.data2 (Same as
maxon.MeshAttributeClassInterface.GetDataType()
) – The second value.blend (float) – The blend percentage [0.0..blend..1.0]