LedTopologySettings
public struct LedTopologySettingsDefines flat, hexagonal, curved, corner, or spherical board geometry, 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
public LedTopologyShape ShapeReturns
LEDStudio.LedTopologyShape
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).
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, and latitude values.
Returns
LEDStudio.LedTopologySettings
Remarks
Flat and hexagon topology is reset to canonical flat settings; 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.
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 flat board with a hexagonal outline.
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