LedTopologySettings
public struct LedTopologySettingsDefines 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.
Fields
Section titled “Fields”
FullSweepAngleDegrees
Section titled “FullSweepAngleDegrees”public const float FullSweepAngleDegrees = 360Returns
System.Single
FullSweepToleranceDegrees
Section titled “FullSweepToleranceDegrees”public const float FullSweepToleranceDegrees = 0.1Returns
System.Single
MaxSphereLatitudeDegrees
Section titled “MaxSphereLatitudeDegrees”public const float MaxSphereLatitudeDegrees = 90Returns
System.Single
SpherePoleToleranceDegrees
Section titled “SpherePoleToleranceDegrees”public const float SpherePoleToleranceDegrees = 0.1Returns
System.Single
MinSphereLatitudeSpanDegrees
Section titled “MinSphereLatitudeSpanDegrees”public const float MinSphereLatitudeSpanDegrees = 1Returns
System.Single
DefaultSphereLatitudeDegrees
Section titled “DefaultSphereLatitudeDegrees”public const float DefaultSphereLatitudeDegrees = 70Returns
System.Single
MinSphereTessellationSegments
Section titled “MinSphereTessellationSegments”public const int MinSphereTessellationSegments = 24Returns
System.Int32
MaxInnerRadiusRatio
Section titled “MaxInnerRadiusRatio”public const float MaxInnerRadiusRatio = 0.9Returns
System.Single
public LedTopologyShape ShapeReturns
LEDStudio.LedTopologyShape
Outline
Section titled “Outline”public LedBoardOutline OutlineReturns
LEDStudio.LedBoardOutline
InnerRadiusRatio
Section titled “InnerRadiusRatio”public float InnerRadiusRatioReturns
System.Single
BendDirection
Section titled “BendDirection”public LedTopologyBendDirection BendDirectionReturns
LEDStudio.LedTopologyBendDirection
AngleDegrees
Section titled “AngleDegrees”public float AngleDegreesReturns
System.Single
RadiusMeters
Section titled “RadiusMeters”public float RadiusMetersReturns
System.Single
SurfaceSide
Section titled “SurfaceSide”public LedTopologySurfaceSide SurfaceSideReturns
LEDStudio.LedTopologySurfaceSide
TessellationSegments
Section titled “TessellationSegments”public int TessellationSegmentsReturns
System.Int32
PhysicalSegments
Section titled “PhysicalSegments”public int PhysicalSegmentsReturns
System.Int32
BottomLatitudeDegrees
Section titled “BottomLatitudeDegrees”public float BottomLatitudeDegreesReturns
System.Single
TopLatitudeDegrees
Section titled “TopLatitudeDegrees”public float TopLatitudeDegreesReturns
System.Single
Methods
Section titled “Methods”
Flat()
Section titled “Flat()”public static LedTopologySettings Flat()Creates settings for a single flat front surface with no curvature.
Returns
LEDStudio.LedTopologySettings
Hexagon(bool)
Section titled “Hexagon(bool)”public static LedTopologySettings Hexagon(bool flatTop = false)Creates settings for a flat hexagonal board.
Parameters
| Name | Type | Description |
|---|---|---|
flatTop | System.Boolean | True 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).
Round(float)
Section titled “Round(float)”public static LedTopologySettings Round(float innerRadiusRatio = 0)Creates settings for a flat round board, or a ring when innerRadiusRatio is above 0.
Parameters
| Name | Type | Description |
|---|---|---|
innerRadiusRatio | System.Single | Hole 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.
WithOutline(LedBoardOutline, float)
Section titled “WithOutline(LedBoardOutline, float)”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
| Name | Type | Description |
|---|---|---|
outline | LEDStudio.LedBoardOutline | Outline of the emitting area. |
innerRadiusRatio | System.Single | Hole 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
| Name | Type | Description |
|---|---|---|
angleDegrees | System.Single | Horizontal sweep in degrees. Values near 360 produce a closed loop. |
radiusMeters | System.Single | Curvature radius in world units. |
tessellationSegments | System.Int32 | Generated mesh subdivisions across the sweep. |
physicalSegments | System.Int32 | Physical display sections used by segmented layouts. |
bendDirection | LEDStudio.LedTopologyBendDirection | Whether the sweep wraps left to right or top to bottom. |
Returns
LEDStudio.LedTopologySettings
Corner(float, LedTopologyBendDirection)
Section titled “Corner(float, LedTopologyBendDirection)”public static LedTopologySettings Corner(float angleDegrees, LedTopologyBendDirection bendDirection = LedTopologyBendDirection.Horizontal)Creates normalized two-face corner settings with the requested interior sweep.
Parameters
| Name | Type | Description |
|---|---|---|
angleDegrees | System.Single | |
bendDirection | LEDStudio.LedTopologyBendDirection | Whether the fold joins left and right faces or top and bottom faces. |
Returns
LEDStudio.LedTopologySettings
Sphere(float, float, float, float, int)
Section titled “Sphere(float, float, float, float, int)”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
| Name | Type | Description |
|---|---|---|
sweepDegrees | System.Single | Longitude sweep in degrees. Values near 360 produce a closed sphere. |
radiusMeters | System.Single | Minimum sphere radius in world units; pitch-derived size can enlarge it. |
bottomLatitudeDegrees | System.Single | Lowest covered latitude; -90 closes the bottom pole, where emitters converge to a point. |
topLatitudeDegrees | System.Single | Highest covered latitude; 90 closes the top pole. |
tessellationSegments | System.Int32 | Generated mesh subdivisions around the sweep; latitude rows follow automatically. |
Returns
LEDStudio.LedTopologySettings
Normalized()
Section titled “Normalized()”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.
Properties
Section titled “Properties”
Default
Section titled “Default”public static LedTopologySettings Default { get; }Returns
LEDStudio.LedTopologySettings
IsHexagon
Section titled “IsHexagon”public bool IsHexagon { get; }True for a pointy-top or flat-top hexagon outline.
Returns
System.Boolean
IsRound
Section titled “IsRound”public bool IsRound { get; }True for a round outline: a disc, or a ring when LedTopologySettings.InnerRadiusRatio is above 0.
Returns
System.Boolean
IsFullSweep
Section titled “IsFullSweep”public bool IsFullSweep { get; }True for curved or spherical topology whose sweep closes into a full 360-degree loop.
Returns
System.Boolean
SupportsOutline
Section titled “SupportsOutline”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