RectangleMark3D
public sealed class RectangleMark3D : ChartMark3D, IChart3DMark, IChart3DDataMark, IChartMarkA 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.
Constructors
Section titled “Constructors”
RectangleMark3D(Vector3, Vector3)
Section titled “RectangleMark3D(Vector3, Vector3)”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
| Name | Type |
|---|---|
min | UnityEngine.Vector3 |
max | UnityEngine.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
| Name | Type |
|---|---|
xStart | System.Single |
xEnd | System.Single |
yStart | System.Single |
yEnd | System.Single |
zStart | System.Single |
zEnd | System.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
| Name | Type |
|---|---|
xStart | ChartGuru.PlottableValueRef |
xEnd | ChartGuru.PlottableValueRef |
yStart | ChartGuru.PlottableValueRef |
yEnd | ChartGuru.PlottableValueRef |
zStart | ChartGuru.PlottableValueRef |
zEnd | ChartGuru.PlottableValueRef |
Methods
Section titled “Methods”
CornerRadius(float)
Section titled “CornerRadius(float)”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
| Name | Type |
|---|---|
radius | System.Single |
Returns
ChartGuru.RectangleMark3D
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 rectangle with its corners, corner radius and style; later changes to either mark do not affect the other.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
public Vector3 Min { get; }Returns
UnityEngine.Vector3
public Vector3 Max { get; }Returns
UnityEngine.Vector3
public Vector3 Size { get; }Returns
UnityEngine.Vector3
Center
Section titled “Center”public Vector3 Center { get; }Returns
UnityEngine.Vector3
CornerRadiusValue
Section titled “CornerRadiusValue”public float CornerRadiusValue { get; }Returns
System.Single
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType