Skip to content

LedTopologySettings

StructLEDStudioLEDStudio
public struct LedTopologySettings

Defines 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.

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 LedTopologyShape Shape

Returns

LEDStudio.LedTopologyShape

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

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

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

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

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.

public static LedTopologySettings Default { get; }

Returns

LEDStudio.LedTopologySettings

public bool IsHexagon { get; }

True for a flat board with a hexagonal outline.

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