Back to Adaptive Vision Library website

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

ProjectSurfaceOntoPlane


Header:AVL.h
Namespace:avl

Projects a surface on another plane, replacing Z coordinate of a point with its distance from a given plane.

Syntax

C++
C#
 
void avl::ProjectSurfaceOntoPlane
(
	const avl::Surface& inSurface,
	const avl::Plane3D& inPlane,
	const bool inUseAbsoluteDistance,
	const bool inPreserveOffsetsAndScales,
	avl::Surface& outSurface,
	atl::Optional<avl::Matrix&> outTransform = atl::NIL
)

Parameters

Name Type Default Description
inSurface const Surface&
inPlane const Plane3D&
inUseAbsoluteDistance const bool
inPreserveOffsetsAndScales const bool True Flag indicating whether to preserve input surface offsets and scales or to adjust them accordingly
outSurface Surface&
outTransform Optional<Matrix&> NIL Matrix of the transform used to compute the output surface; signed distance usage is assumed

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outTransform.

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite plane on input in ProjectSurfaceOntoPlane.