Back to Aurora Vision Library website

You are here: Start » Function Reference » Basic » Box » SplitBox

SplitBox


Header: AVL.h
Namespace: avl
Module: FoundationLite

Splits a box into two along a direction.

Syntax

C++
C#
 
void avl::SplitBox
(
	const avl::Box& inBox,
	const avl::SplitDirection::Type inSplitDirection,
	avl::Box& outBox1,
	avl::Box& outBox2
)

Parameters

Name Type Default Description
Input value inBox const Box&
Input value inSplitDirection const SplitDirection::Type
Output value outBox1 Box&
Output value outBox2 Box&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inBox and outBox1, inBox and outBox2

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Unknown split direction in SplitBox.