pub fn set_rect(world: &mut Vxl, lo: [i32; 3], hi: [i32; 3], color: Option<u32>)Expand description
Edit an axis-aligned box [lo, hi] (inclusive on both ends in
every axis). Voxlap5.c:5214 setrect.
color = None carves to air; Some(c) inserts solid coloured
c. The box is sorted and clamped to world bounds before
iteration; an empty box (any axis where lo > hi after clamp) is
a no-op.
§Panics
Panics if world.vbit is empty — call
Vxl::reserve_edit_capacity first.