Back to Adaptive Vision Library website

You are here: Start » Function Reference » Surface » Surface Spatial Transforms » SplitSurfaceByPlane

SplitSurfaceByPlane


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Separates the surface points being on one side of the input plane from the others.

Syntax

C++
C#
 
void avl::SplitSurfaceByPlane
(
	const avl::Surface& inSurface,
	atl::Optional<const avl::Region&> inRoi,
	const avl::Plane3D& inPlane,
	bool inPreserveDimensions,
	avl::Surface& outSurface1,
	avl::Surface& outSurface2
)

Parameters

Name Type Default Description
inSurface const Surface& Input surface
inRoi Optional<const Region&> NIL Region of interest
inPlane const Plane3D& Plane used for splitting
inPreserveDimensions bool False Flag indicating whether the surface dimensions should be preserved or not
outSurface1 Surface& Surface with points with positive signed distance to the input plane
outSurface2 Surface& Surface with points with negative signed distance to the input plane

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite plane on input in SplitSurfaceByPlane.