Skip to content

RectangleMark3D

ClassChartGuruChartGuru.3D
public sealed class RectangleMark3D : ChartMark3D, IChart3DMark, IChart3DDataMark, IChartMark

A 3D rectangle (slab) mark with independent min/max along each axis. Swift Charts equivalent: RectangleMark(xStart:xEnd:yStart:yEnd:zStart:zEnd:). Rendered as an axis-aligned box mesh written into the triangle registry.

public RectangleMark3D(Vector3 min, Vector3 max)

Creates a box spanning two opposite corners in data coordinates, given in either order. When exactly one axis has equal start and end, it draws as a flat plane; a corner with a NaN or infinite coordinate leaves the mark undefined, so domain inference and drawing skip it.

Parameters

NameType
minUnityEngine.Vector3
maxUnityEngine.Vector3

RectangleMark3D(float, float, float, float, float, float)

Section titled “RectangleMark3D(float, float, float, float, float, float)”
public RectangleMark3D(float xStart, float xEnd, float yStart, float yEnd, float zStart, float zEnd)

Creates a box from each axis’ start to its end value in data coordinates, as RectangleMark3D.RectangleMark3D(Vector3, Vector3) does with the corners (xStart, yStart, zStart) and (xEnd, yEnd, zEnd).

Parameters

NameType
xStartSystem.Single
xEndSystem.Single
yStartSystem.Single
yEndSystem.Single
zStartSystem.Single
zEndSystem.Single

RectangleMark3D(PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef)

Section titled “RectangleMark3D(PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef, PlottableValueRef)”
public RectangleMark3D(PlottableValueRef xStart, PlottableValueRef xEnd, PlottableValueRef yStart, PlottableValueRef yEnd, PlottableValueRef zStart, PlottableValueRef zEnd)

Swift Charts-style constructor: RectangleMark(xStart: .Value(…), xEnd: .Value(…), yStart: .Value(…), yEnd: .Value(…), zStart: .Value(…), zEnd: .Value(…)).

Parameters

NameType
xStartChartGuru.PlottableValueRef
xEndChartGuru.PlottableValueRef
yStartChartGuru.PlottableValueRef
yEndChartGuru.PlottableValueRef
zStartChartGuru.PlottableValueRef
zEndChartGuru.PlottableValueRef

public RectangleMark3D CornerRadius(float radius)

Rounds the box’s edges by radius plot units, at most just under half its shortest side; 0, the default, keeps square edges, and flat planes stay square.

Parameters

NameType
radiusSystem.Single

Returns

ChartGuru.RectangleMark3D

public override void BuildMesh(Chart3DMeshContext ctx)

Write triangles / instanced draws for this mark into the context registry.

Parameters

NameType
ctxChartGuru.Chart3DMeshContext
public override IChartMark Clone()

Creates an independent copy of this rectangle with its corners, corner radius and style; later changes to either mark do not affect the other.

Returns

ChartGuru.IChartMark

public Vector3 Min { get; }

Returns

UnityEngine.Vector3

public Vector3 Max { get; }

Returns

UnityEngine.Vector3

public Vector3 Size { get; }

Returns

UnityEngine.Vector3

public Vector3 Center { get; }

Returns

UnityEngine.Vector3

public float CornerRadiusValue { get; }

Returns

System.Single

public override ChartType MarkType { get; }

Returns

ChartGuru.ChartType