Class LineMesh
Line primitive mesh. To render this mesh use the LineMeshRenderer3D class.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
BaseModel
MeshComponent
LineMesh
Implements
Inherited Members
MeshComponent.modelLink
MeshComponent.meshContainer
MeshComponent.ChangedMesh
MeshComponent.modelMeshName
MeshComponent.MeshCount
MeshComponent.MeshContainer
MeshComponent.MeshNames
MeshComponent.Meshes
MeshComponent.UnloadModel()
MeshComponent.ThrowRefreshEvent()
MeshComponent.RefreshMesh()
BaseModel.customBoundingBoxSet
BaseModel.Refreshed
BaseModel.BoundingBoxRefreshed
Component.Owner
Component.Managers
Component.ShouldBeActivated
Component.Clone()
Component.Attach(Entity)
Component.OnLoaded()
Component.Start()
PrefabInstanceObject.PrefabSource
PrefabInstanceObject.PrefabElementId
PrefabInstanceObject.IsPrefabInstance
PrefabInstanceObject.IsMissingPrefabSource
AttachableObject.AttachableStateChanged
AttachableObject.IsEnabled
AttachableObject.State
AttachableObject.IsLoaded
AttachableObject.IsAttached
AttachableObject.IsActivated
AttachableObject.IsStarted
AttachableObject.IsDestroyed
AttachableObject.Destroy()
AttachableObject.DependencyBroken()
DependencyObject.Dependencies
DependencyObject.OnDependencyRemoved
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()