maxon.frameworks.mesh_misc.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.frameworks.mesh_misc.MAXON_MESHATTRIBUTE() and maxon.MAXON_DATATYPE, and all arithmetic and comparison functions.

Inheritance diagram

Inheritance

Parent Class:

Child Class:

Methods Signature

GetDataType()

Returns the maxon.DataType this class manages, e.g.

InterpolateLinear(data1, data2, blend)

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

maxon.DataType.

MeshAttributeClassInterface.InterpolateLinear(data1, data2, blend)

Interpolates linearly between two values. Both addresses need to be cast to the appropriate data type.

Parameters