Class DrawMesh
Represents an operator that draws the specified mesh geometry.
[Combinator]
[WorkflowElementCategory(ElementCategory.Sink)]
public class DrawMesh
- Inheritance
-
DrawMesh
- Inherited Members
Properties
MeshName
Gets or sets the name of the mesh geometry to draw.
[TypeConverter(typeof(MeshNameConverter))]
public string MeshName { get; set; }
Property Value
ShaderName
Gets or sets the name of the material shader program used in the drawing operation.
[TypeConverter(typeof(MaterialNameConverter))]
public string ShaderName { get; set; }
Property Value
Methods
Process(IObservable<Mesh>)
Draws each of the mesh geometries in an observable sequence.
public IObservable<Mesh> Process(IObservable<Mesh> source)
Parameters
source
IObservable<Mesh>A sequence of Mesh objects representing the geometry to draw. If MeshName is specified, the named mesh geometry will be used instead.
Returns
- IObservable<Mesh>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of drawing each of the mesh geometries in the sequence.
Process<TSource>(IObservable<TSource>)
Draws the specified mesh geometry whenever an observable sequence emits a notification.
public IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used to start drawing the specified mesh geometry.
Returns
- IObservable<TSource>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of drawing the specified mesh geometry whenever the sequence emits a notification.
Type Parameters
TSource
The type of the elements in the
source
sequence.