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 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()