Logo Hywe

Nexel Module

Nexel (Nested Engine) Handles logic for Nested Coxels (N# markers).

Types

Type Description

NestData

Functions and values

Function or value Description

generateNestLayout nest hostCxl hostThickness allCxls sqnStrOverride

Full Usage: generateNestLayout nest hostCxl hostThickness allCxls sqnStrOverride

Parameters:
    nest : NestBlock - Parsed NestBlock containing attributes and sub-tree nodes.
    hostCxl : Cxl - Host parent Coxel whose boundary contains the nested layout.
    hostThickness : float - Host slab thickness.
    allCxls : Cxl[] - All previously generated Coxels across the floor plan.
    sqnStrOverride : string option - Optional sequence override string.

Returns: (Cxl[] * (int * int)[][] * float) option Option containing generated nested Coxel array, boundary vertex arrays, and applied ratio.

Generates a nested spatial layout confined within the perimeter boundary of a host parent Coxel.

nest : NestBlock

Parsed NestBlock containing attributes and sub-tree nodes.

hostCxl : Cxl

Host parent Coxel whose boundary contains the nested layout.

hostThickness : float

Host slab thickness.

allCxls : Cxl[]

All previously generated Coxels across the floor plan.

sqnStrOverride : string option

Optional sequence override string.

Returns: (Cxl[] * (int * int)[][] * float) option

Option containing generated nested Coxel array, boundary vertex arrays, and applied ratio.

Example

 match Nexel.generateNestLayout nestBlock hostCxl 3.0 allRooms None with
 | Some (nestedRooms, bounds, ratio) -> ()
 | None -> ()
union case Option.None: Option<'T>
union case Option.Some: Value: 'T -> Option<'T>
val nestedRooms: obj
val bounds: obj
val ratio: obj

getNestIndex marker

Full Usage: getNestIndex marker

Parameters:
    marker : string - Nest marker string.

Returns: int option Some integer index if successfully parsed; otherwise None.

Extracts the integer index from a nested sub-layout marker (e.g. extracts 1 from "N1").

marker : string

Nest marker string.

Returns: int option

Some integer index if successfully parsed; otherwise None.

Example

 let nestIdx = Nexel.getNestIndex "N2" // Some 2
val nestIdx: obj

isNestMarker marker

Full Usage: isNestMarker marker

Parameters:
    marker : string - Marker string to inspect.

Returns: bool True if the marker starts with 'N'; otherwise false.

Checks whether a section marker identifier represents a nested sub-layout marker (e.g. "N1", "N2").

marker : string

Marker string to inspect.

Returns: bool

True if the marker starts with 'N'; otherwise false.

Example

 let isNest = Nexel.isNestMarker "N1" // true
 let isLevel = Nexel.isNestMarker "L0" // false
val isNest: obj
val isLevel: obj

Type something to start searching.