Skip to content

LedTopologySettings

StructLEDStudioLEDStudio
public struct LedTopologySettings

Defines flat, curved, corner, or spherical board geometry with a rectangular, hexagonal or round outline, including bend direction, sweep angle, radius, sphere latitude range, surface side, tessellation, physical segments, and UV behavior.

public const float FullSweepAngleDegrees = 360

Returns

System.Single

public const float FullSweepToleranceDegrees = 0.1

Returns

System.Single

public const float MaxSphereLatitudeDegrees = 90

Returns

System.Single

public const float SpherePoleToleranceDegrees = 0.1

Returns

System.Single

public const float MinSphereLatitudeSpanDegrees = 1

Returns

System.Single

public const float DefaultSphereLatitudeDegrees = 70

Returns

System.Single

public const int MinSphereTessellationSegments = 24

Returns

System.Int32

public const float MaxInnerRadiusRatio = 0.9

Returns

System.Single

public LedTopologyShape Shape

Returns

LEDStudio.LedTopologyShape

public LedBoardOutline Outline

Returns

LEDStudio.LedBoardOutline

public float InnerRadiusRatio

Returns

System.Single

public LedTopologyBendDirection BendDirection

Returns

LEDStudio.LedTopologyBendDirection

public float AngleDegrees

Returns

System.Single

public float RadiusMeters

Returns

System.Single

public LedTopologySurfaceSide SurfaceSide

Returns

LEDStudio.LedTopologySurfaceSide

public int TessellationSegments

Returns

System.Int32

public int PhysicalSegments

Returns

System.Int32

public float BottomLatitudeDegrees

Returns

System.Single

public float TopLatitudeDegrees

Returns

System.Single

public static LedTopologySettings Flat()

Creates settings for a single flat front surface with no curvature.

Returns

LEDStudio.LedTopologySettings

public static LedTopologySettings Hexagon(bool flatTop = false)

Creates settings for a flat hexagonal board.

Parameters

NameTypeDescription
flatTopSystem.BooleanTrue for horizontal top and bottom edges; false for points at the top and bottom.

Returns

LEDStudio.LedTopologySettings

Remarks

The hexagon spans the board rectangle, so it is regular when width over height is about 0.866 (pointy top) or 1.155 (flat top).

public static LedTopologySettings Round(float innerRadiusRatio = 0)

Creates settings for a flat round board, or a ring when innerRadiusRatio is above 0.

Parameters

NameTypeDescription
innerRadiusRatioSystem.SingleHole radius as a fraction of the outer radius, from 0 to LedTopologySettings.MaxInnerRadiusRatio.

Returns

LEDStudio.LedTopologySettings

Remarks

The circle spans the board rectangle, so it is round on a square board and an ellipse on any other.

public LedTopologySettings WithOutline(LedBoardOutline outline, float innerRadiusRatio = 0)

Returns normalized settings with the given outline, for example a round outline on an open curved board.

Parameters

NameTypeDescription
outlineLEDStudio.LedBoardOutlineOutline of the emitting area.
innerRadiusRatioSystem.SingleHole radius of a round outline as a fraction of its outer radius; ignored by other outlines.

Returns

LEDStudio.LedTopologySettings

Remarks

Surfaces that cannot be cut, such as full 360-degree sweeps, keep a rectangular outline (see LedTopologySettings.SupportsOutline).

Curved(float, float, int, int, LedTopologyBendDirection)

Section titled “Curved(float, float, int, int, LedTopologyBendDirection)”
public static LedTopologySettings Curved(float angleDegrees, float radiusMeters, int tessellationSegments = 48, int physicalSegments = 1, LedTopologyBendDirection bendDirection = LedTopologyBendDirection.Horizontal)

Creates normalized settings for an open or closed curved display surface.

Parameters

NameTypeDescription
angleDegreesSystem.SingleHorizontal sweep in degrees. Values near 360 produce a closed loop.
radiusMetersSystem.SingleCurvature radius in world units.
tessellationSegmentsSystem.Int32Generated mesh subdivisions across the sweep.
physicalSegmentsSystem.Int32Physical display sections used by segmented layouts.
bendDirectionLEDStudio.LedTopologyBendDirectionWhether the sweep wraps left to right or top to bottom.

Returns

LEDStudio.LedTopologySettings

public static LedTopologySettings Corner(float angleDegrees, LedTopologyBendDirection bendDirection = LedTopologyBendDirection.Horizontal)

Creates normalized two-face corner settings with the requested interior sweep.

Parameters

NameTypeDescription
angleDegreesSystem.Single
bendDirectionLEDStudio.LedTopologyBendDirectionWhether the fold joins left and right faces or top and bottom faces.

Returns

LEDStudio.LedTopologySettings

public static LedTopologySettings Sphere(float sweepDegrees = 360, float radiusMeters = 1, float bottomLatitudeDegrees = -70, float topLatitudeDegrees = 70, int tessellationSegments = 96)

Creates normalized equirectangular sphere settings between the given latitudes.

Parameters

NameTypeDescription
sweepDegreesSystem.SingleLongitude sweep in degrees. Values near 360 produce a closed sphere.
radiusMetersSystem.SingleMinimum sphere radius in world units; pitch-derived size can enlarge it.
bottomLatitudeDegreesSystem.SingleLowest covered latitude; -90 closes the bottom pole, where emitters converge to a point.
topLatitudeDegreesSystem.SingleHighest covered latitude; 90 closes the top pole.
tessellationSegmentsSystem.Int32Generated mesh subdivisions around the sweep; latitude rows follow automatically.

Returns

LEDStudio.LedTopologySettings

public LedTopologySettings Normalized()

Returns a copy constrained to supported radius, angle, tessellation, segment, surface-side, bend-direction, latitude and outline values.

Returns

LEDStudio.LedTopologySettings

Remarks

Flat topology is reset to canonical flat settings that keep their outline; corners always use two tessellation segments. Spheres always bend horizontally, and treat a zero sweep or an all-zero latitude range as unset so switching an existing board to a sphere produces a complete default sphere. Surfaces without LedTopologySettings.SupportsOutline fall back to a rectangular outline, and only round outlines keep an inner radius.

public static LedTopologySettings Default { get; }

Returns

LEDStudio.LedTopologySettings

public bool IsHexagon { get; }

True for a pointy-top or flat-top hexagon outline.

Returns

System.Boolean

public bool IsRound { get; }

True for a round outline: a disc, or a ring when LedTopologySettings.InnerRadiusRatio is above 0.

Returns

System.Boolean

public bool IsFullSweep { get; }

True for curved or spherical topology whose sweep closes into a full 360-degree loop.

Returns

System.Boolean

public bool SupportsOutline { get; }

True when the surface can be cut to a hexagon or round outline or to complete hexagonal cabinet panels: flat boards and open curved, corner and sphere bands. Full 360-degree sweeps and closed sphere poles keep their whole surface.

Returns

System.Boolean