Class LineBezierMesh
Bezier line primitive mesh component. To render this mesh use the LineMeshRenderer3D class.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
BaseModel
MeshComponent
LineBezierMesh
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 LineBezierMesh : LineMeshBase, IDependencyObject
Constructors
LineBezierMesh()
Initializes a new instance of the LineBezierMesh class.
Declaration
public LineBezierMesh()
Properties
LinePoints
Gets or sets a list with the points that defines the line.
Declaration
public List<BezierPointInfo> LinePoints { get; set; }
Property Value
Type | Description |
---|---|
List<BezierPointInfo> |
Resolution
Gets or sets the resolution of each bezier segment.
Declaration
[RenderPropertyAsInput(MinLimit = 3, MaxLimit = 50, AsSlider = true, DesiredChange = 1, DesiredLargeChange = 2)]
public int Resolution { get; set; }
Property Value
Type | Description |
---|---|
int |
Type
Gets or sets the type of bezier curve.
Declaration
public BezierTypes Type { get; set; }
Property Value
Type | Description |
---|---|
BezierTypes |
Methods
CloneLastPoint(BezierPointInfo)
Updates last point added with the previous point.
Declaration
public void CloneLastPoint(BezierPointInfo point)
Parameters
Type | Name | Description |
---|---|---|
BezierPointInfo | point | Last point added to the list. |
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
RefreshItems(BezierPointInfo)
Refresh mesh when a value from the list has changed.
Declaration
public void RefreshItems(BezierPointInfo point)
Parameters
Type | Name | Description |
---|---|---|
BezierPointInfo | point | point. |
RefreshMeshes()
Refresh meshes method.
Declaration
protected override void RefreshMeshes()