Class LineBezierMesh
Bezier line primitive mesh component. To render this mesh, use the LineMeshRenderer3D class.
Inheritance
LineBezierMesh
Implements
Inherited Members
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 of points that define 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 the last point added with the previous point.
Declaration
public void CloneLastPoint(BezierPointInfo point)
Parameters
Type | Name | Description |
---|---|---|
BezierPointInfo | point | The 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 everything is OK. |
Overrides
RefreshItems(BezierPointInfo)
Refreshes the mesh when a value from the list changes.
Declaration
public void RefreshItems(BezierPointInfo point)
Parameters
Type | Name | Description |
---|---|---|
BezierPointInfo | point | Point. |
RefreshMeshes()
Refreshes meshes.
Declaration
protected override void RefreshMeshes()