Class LineMesh
Line primitive mesh. To render this mesh use the LineMeshRenderer3D class.
Inheritance
LineMesh
Implements
Inherited Members
Namespace: Evergine.Components.Primitives
Assembly: Evergine.Components.dll
Syntax
public class LineMesh : LineMeshBase, IDependencyObject
Properties
IsLoop
Gets or sets a value indicating whether the first point of the list is appended with the last one.
Declaration
[RenderProperty(CustomPropertyName = "Is Loop", Tooltip = "Enable this to connect the first and last positions of the line. This forms a closed loop.")]
public bool IsLoop { get; set; }
Property Value
Type | Description |
---|---|
bool |
LinePoints
Gets or sets a list with the points that defines the line.
Declaration
public List<LinePointInfo> LinePoints { get; set; }
Property Value
Type | Description |
---|---|
List<LinePointInfo> |
LineType
Gets or sets the type of the line to draw.
Declaration
[RenderProperty(CustomPropertyName = "Line Type", Tooltip = "The type of the line to draw. Use LineStrip to compose the line connecting the dots. Use LineList to compose the line with isolated, straight line segments")]
public LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
LineType |
Methods
CloneLastPoint(LinePointInfo)
Updates last point added with the previous point.
Declaration
public void CloneLastPoint(LinePointInfo point)
Parameters
Type | Name | Description |
---|---|---|
LinePointInfo | point | Last point added to the list. |
Refresh()
Refresh mesh when a value from the list has changed.
Declaration
public void Refresh()