rigProject 0.1.1
RigKit pack API - rigProject
Loading...
Searching...
No Matches
FaceInsets.h File Reference

Six face insets on a local AABB (same cuboid as rig.spatial.anchor). More...

#include "ProjectJson.h"
Include dependency graph for FaceInsets.h:

Functions

template<typename Json>
bool rigkit::project::expandFaceInsets (const Json &src, FaceInsets &out)
 Expand Contract margin/bleed/slug wire into six channels.
template<typename Json>
void rigkit::project::writeFaceInsets (Json &j, const char *key, const FaceInsets &in)
 Write shortest equivalent array (or omit when all zero).

Detailed Description

Six face insets on a local AABB (same cuboid as rig.spatial.anchor).

Channel order matches rig.layout.page margins/bleed/slug: top, right, bottom, left, then optional floor/ceiling (Z faces). Host Space: +X right, +Y up, +Z up. Margins inset inward; bleed/slug outward.

Function Documentation

◆ expandFaceInsets()

template<typename Json>
bool rigkit::project::expandFaceInsets ( const Json & src,
FaceInsets & out )

Expand Contract margin/bleed/slug wire into six channels.

Accepts a number or array length 1-6 (CSS + optional Z pair). Length 5 to both Z faces get the fifth value. Lengths 1-4 leave Z at 0.