Click or drag to resize

PolylinePrimitiveSet Method (IEnumerableCartesian, IEnumerableColor, RenderPassHint)

Defines the positions and colors of a polyline. The polyline is rendered in its ReferenceFrame. renderPassHint is provided for efficiency.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public void Set(
	IEnumerable<Cartesian> positions,
	IEnumerable<Color> colors,
	RenderPassHint renderPassHint
)

Parameters

positions
Type: System.Collections.GenericIEnumerableCartesian
The new positions for the polyline.
colors
Type: System.Collections.GenericIEnumerableColor
The new colors for the polyline. There must be one color for each position in positions. The first color is ignored, each additional color defines the color of the line segment ending at that position.
renderPassHint
Type: AGI.Foundation.Graphics.AdvancedRenderPassHint
An optimization hint indicating the RenderPass implied by colors.
Remarks

Calling this method with a renderPassHint of Unknown is equivalent to calling Set with just positions and colors. When a more specific renderPassHint is used, this method can be more efficient.

See Set for a full discussion.

See Also