DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="3.4.0-beta6130" />

 IRenderPackage

public interface IRenderPackage
This interface caches render specific data.
IEnumerable<byte> Colors { get; }

A collection of bytes representing RGBA colors. This field can be used to populate textures for mapping onto surfaces. Use the ColorsStride property to define the size of one dimension of the collection.

int ColorsStride { get; set; }

The size of one dimension of the Colors collection.

string Description { get; set; }

A tag used to store information about the render package.

bool DisplayLabels { get; set; }

A flag indicating whether the render package is displaying labels

bool HasRenderingData { get; }

A flag indicating whether the render package has data.

bool IsSelected { get; set; }

A flag indicating whether the render package is selected.

A collection containing all line strip indices.

A collection containing all line strip colors as r1,g1,b1,a1,r2,g2,b2,a2...

A collection of int values representing how many vertices comprise each line segment in the package.

IEnumerable<double> LineStripVertices { get; }

A collection containing all line strip vertices as x1,y1,z1,x2,y2,z2...

int LineVertexCount { get; }

The number of line vertices in the package.

IEnumerable<int> MeshIndices { get; }

A collection containing all mesh vertex indices.

IEnumerable<double> MeshNormals { get; }

A collection containing all mesh normals as x1,y1,z1,x2,y2,z2...

A collection containing all mesh texture coordinates as u1,v1,u2,v2...

A collection containing all mesh vertex colors as r1,g1,b1,a1,r2,g2,b2,a2...

int MeshVertexCount { get; }

The number of mesh vertices in the package.

IEnumerable<double> MeshVertices { get; }

A collection containing all mesh vertices as x1,y1,z1,x2,y2,z2...

IEnumerable<int> PointIndices { get; }

A collection containing all point vertex indices.

A collection containing all mesh vertex colors as r1,g1,b1,a1,r2,g2,b2,a2...

int PointVertexCount { get; }

The number of point vertices in the package.

IEnumerable<double> PointVertices { get; }

A collection containing all point vertices as x1,y1,z1,x2,y2,z2...

bool RequiresPerVertexColoration { get; set; }

A flag indicating whether the render package requires per vertex coloration.

void AddLineStripVertex(double x, double y, double z)

Add a line vertex to the render package.

void AddLineStripVertexColor(byte red, byte green, byte blue, byte alpha)

Add a line strip vertex color to the render package.

Add a line strip vertex count to the render package.

void AddPointVertex(double x, double y, double z)

Add a point vertex to the render package.

void AddPointVertexColor(byte red, byte green, byte blue, byte alpha)

Add a point color to the render package.

void AddTriangleVertex(double x, double y, double z)

Add a triangle vertex location to the render package.

void AddTriangleVertexColor(byte red, byte green, byte blue, byte alpha)

Add a triangle vertex color to the render package.

void AddTriangleVertexNormal(double x, double y, double z)

Add a triangle vertex normal to the render package.

void AddTriangleVertexUV(double u, double v)

Add a triangle texture coordinate to the render package.

void ApplyLineVertexColors(byte[] colors)

Apply a color to a sequence of line vertices.

void ApplyMeshVertexColors(byte[] colors)

Apply a color to each mesh vertex.

void ApplyPointVertexColors(byte[] colors)

Apply a color to each point vertex.

void Clear()

Clear all render data from the render package.

void SetColors(byte[] colors)

Set a an array of bytes to be used as a color map.