Class WallOpening
- Namespace
- S1MAPI.Building.Structural
- Assembly
- S1MAPI_Mono.dll
Configuration for a wall opening (door or window).
public sealed class WallOpening
- Inheritance
-
WallOpening
- Inherited Members
Constructors
WallOpening()
public WallOpening()
Properties
BottomOffset
The bottom offset (sill height) in meters. Used for windows.
public float BottomOffset { get; set; }
Property Value
Count
Number of window panes across the opening (default 1).
public int Count { get; set; }
Property Value
DividerWidth
Width of the wall divider between adjacent panes in meters.
public float DividerWidth { get; set; }
Property Value
FrameColor
Optional frame color override for window openings. Defaults to dark gray when null.
public Color? FrameColor { get; set; }
Property Value
- Color?
FrameMaterial
Optional frame material override for window openings.
public Material? FrameMaterial { get; set; }
Property Value
- Material
GlassMaterial
Optional glass material override. When null, uses Materials.WindowGlass.
public Material? GlassMaterial { get; set; }
Property Value
- Material
Height
The height of the opening in meters.
public float Height { get; set; }
Property Value
LeftWindow
Optional window for the left side segment of a door wall.
public WallOpening? LeftWindow { get; set; }
Property Value
Offset
Lateral offset from center along the wall in meters. Positive shifts toward the right/forward end, negative toward left/back.
public float Offset { get; set; }
Property Value
RightWindow
Optional window for the right side segment of a door wall.
public WallOpening? RightWindow { get; set; }
Property Value
Type
The type of opening (door, window, or none).
public WallOpeningType Type { get; set; }
Property Value
Width
The width of the opening in meters.
public float Width { get; set; }
Property Value
Methods
Door(float, float, float)
Creates a door opening configuration.
public static WallOpening Door(float width = 2, float height = 2.2, float offset = 0)
Parameters
widthfloatThe door width in meters (default 2.0).
heightfloatThe door height in meters (default 2.2).
offsetfloatLateral offset from center along the wall in meters (default 0, centered).
Returns
- WallOpening
A new WallOpening configured as a door.
DoorWithWindows(float, float, WallOpening?, WallOpening?)
Creates a door opening with windows on the left and/or right side segments.
public static WallOpening DoorWithWindows(float doorWidth = 2, float doorHeight = 2.2, WallOpening? leftWindow = null, WallOpening? rightWindow = null)
Parameters
doorWidthfloatThe door width in meters (default 2.0).
doorHeightfloatThe door height in meters (default 2.2).
leftWindowWallOpeningWindow config for left side, or null for no window.
rightWindowWallOpeningWindow config for right side, or null for no window.
Returns
- WallOpening
A new WallOpening configured as a door with side windows.
Window(float, float, float, int, float, Material?, float, Material?, Color?)
Creates a window opening configuration.
public static WallOpening Window(float width = 2.5, float height = 2, float sillHeight = 0.8, int count = 1, float dividerWidth = 0.15, Material? glassMaterial = null, float offset = 0, Material? frameMaterial = null, Color? frameColor = null)
Parameters
widthfloatThe window width in meters (default 2.5).
heightfloatThe window height in meters (default 2.0).
sillHeightfloatThe sill height from the floor in meters (default 0.8).
countintNumber of window panes to distribute across the opening width (default 1).
dividerWidthfloatWidth of wall dividers between adjacent panes in meters (default 0.15).
glassMaterialMaterialOptional glass material override. Defaults to Materials.WindowGlass when null.
offsetfloatLateral offset from center along the wall in meters (default 0, centered).
frameMaterialMaterialOptional frame material override.
frameColorColor?Optional frame color override. Defaults to dark gray when null.
Returns
- WallOpening
A new WallOpening configured as a window.