DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="3.0.0-beta7180" />

 IRenderPackageSupplement

public interface IRenderPackageSupplement
This interface provides additional methods adding for color information to a render package.
bool AllowLegacyColorOperations { get; set; }

Allow legacy usage of the color methods in IRenderPackage This flag is used by the UpdateRenderPackageAsyncTask implementation to flag any third party usage of deprecated color methods in IRenderPackage API

int LineVertexColorCount { get; }

The number of line vertices colors in the package (Optimized for speed).

int MeshVertexColorCount { get; }

The number of mesh vertices colors in the package (Optimized for speed).

A list of mesh vertices ranges that have associated texture maps

int PointVertexColorCount { get; }

The number of point vertices colors in the package (Optimized for speed).

List<byte[]> TextureMapsList { get; }

A List containing arrays of bytes representing RGBA colors. These arrays can be used to populate textures for mapping onto specific meshes

A list containing the size of one dimension of the associated texture map array in TextureMapsList.

void AddTextureMapForMeshVerticesRange(int startIndex, int endIndex, byte[] textureMap, int stride)

Set a color texture map for a specific range of mesh vertices

void AppendLineVertexColorRange(byte[] colors)

Append a color range for line vertices.

void AppendMeshVertexColorRange(byte[] colors)

Append a color range for mesh vertex.

void AppendPointVertexColorRange(byte[] colors)

Append a color range for point vertices.

void UpdateLineVertexColorForRange(int startIndex, int endIndex, byte red, byte green, byte blue, byte alpha)

Update a color to a range of line vertices.

void UpdateMeshVertexColorForRange(int startIndex, int endIndex, byte red, byte green, byte blue, byte alpha)

Update a color to a range of of mesh vertices.

void UpdatePointVertexColorForRange(int startIndex, int endIndex, byte red, byte green, byte blue, byte alpha)

Update a color to a range of point vertices.