Line3DMark
public class Line3DMark : ChartMark3D, IChart3DMark, IChart3DDataMark, IChartMark3D line mark: one point of a polyline keyed by series. Chart3DMeshBuilder collects the
Line3DMarks of a series and draws a tube through them, curved by the first mark's
Line3DMark.InterpolationMethodValue. A Chart Guru extension: Swift Charts 3D has no line mark.
Constructors
Section titled “Constructors”
Line3DMark(float, float, float)
Section titled “Line3DMark(float, float, float)”public Line3DMark(float x, float y, float z)Creates one point of a 3D line at data coordinates (x, y,
z); the line marks that share its series key join in chart order into one tube.
Parameters
| Name | Type |
|---|---|
x | System.Single |
y | System.Single |
z | System.Single |
Line3DMark(DataPoint3D)
Section titled “Line3DMark(DataPoint3D)”public Line3DMark(DataPoint3D p)Creates one point of a 3D line at the coordinates of p, keeping the point’s identity and other fields.
Parameters
| Name | Type |
|---|---|
p | ChartGuru.DataPoint3D |
Methods
Section titled “Methods”
RibbonThickness(float)
Section titled “RibbonThickness(float)”public Line3DMark RibbonThickness(float t)Sets the radius of the line’s tube, or the half thickness of an area’s slab, in plot units.
Parameters
| Name | Type |
|---|---|
t | System.Single |
Returns
ChartGuru.Line3DMark
InterpolationMethod(InterpolationMethod, float)
Section titled “InterpolationMethod(InterpolationMethod, float)”public Line3DMark InterpolationMethod(InterpolationMethod method, float tension = 0.5)Curves the series through its points like 2D lines and areas: Catmull-Rom, cardinal with
tension, monotone or natural cubics, or steps. Swift Charts equivalent:
.interpolationMethod(_:).
Parameters
| Name | Type |
|---|---|
method | ChartGuru.InterpolationMethod |
tension | System.Single |
Returns
ChartGuru.Line3DMark
BuildMesh(Chart3DMeshContext)
Section titled “BuildMesh(Chart3DMeshContext)”public override void BuildMesh(Chart3DMeshContext ctx)Write triangles / instanced draws for this mark into the context registry.
Parameters
| Name | Type |
|---|---|
ctx | ChartGuru.Chart3DMeshContext |
Clone()
Section titled “Clone()”public override IChartMark Clone()Creates an independent copy of this line point with its position, tube radius, interpolation and style; later changes to either mark do not affect the other.
Returns
ChartGuru.IChartMark
CopyLine3DStateTo(Line3DMark)
Section titled “CopyLine3DStateTo(Line3DMark)”protected void CopyLine3DStateTo(Line3DMark target)Copies what ChartMark3D.CopyCommon3DStateTo(ChartMark3D) copies plus the tube radius or slab thickness,
interpolation and tension onto target, for ChartMark.Clone() in derived marks.
Parameters
| Name | Type |
|---|---|
target | ChartGuru.Line3DMark |
Properties
Section titled “Properties”
RibbonThicknessValue
Section titled “RibbonThicknessValue”public float RibbonThicknessValue { get; }The radius of the line’s tube, or the half thickness of an area’s slab, in plot units.
Returns
System.Single
InterpolationMethodValue
Section titled “InterpolationMethodValue”public InterpolationMethod InterpolationMethodValue { get; }The curve between this series’ points; the series’ first mark decides.
Returns
ChartGuru.InterpolationMethod
TensionValue
Section titled “TensionValue”public float TensionValue { get; }The tension of a cardinal curve, from 0 for the Catmull-Rom shape to 1 for straight intervals.
Returns
System.Single
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType