Back to Adaptive Vision Library website

You are here: Start » Function Reference » Surface Basics » ResamplePoint3DGrid

ResamplePoint3DGrid


Header:AVL.h
Namespace:avl

Creates a surface structure from Point3DGrid taking into account X and Y coordinates and trying to preserve continuity of the surface.

Syntax

C++
C#
 
void avl::ResamplePoint3DGrid
(
	const avl::Point3DGrid& inPoint3DGrid,
	atl::Optional<double> inMinX,
	atl::Optional<double> inMaxX,
	atl::Optional<double> inMinY,
	atl::Optional<double> inMaxY,
	const double inZOffset,
	const double inZScale,
	avl::PlainType::Type inPointType,
	avl::SurfaceMultipointHeight::Type inMultipointHeight,
	avl::Surface& outSurface,
	atl::Optional<double&> outMinX = atl::NIL,
	atl::Optional<double&> outMinY = atl::NIL,
	avl::Region& diagSurfaceValidPointsRegion
)

Parameters

Name Type Range Default Description
inPoint3DGrid const Point3DGrid&
inMinX Optional<double> NIL
inMaxX Optional<double> NIL
inMinY Optional<double> NIL
inMaxY Optional<double> NIL
inZOffset const double
inZScale const double 0.000001 - 1.0D
inPointType PlainType::Type Int16 Type of single point Z coordinate
inMultipointHeight SurfaceMultipointHeight::Type Mean Determines the Z coordinate of a surface point created from more than one point
outSurface Surface&
outMinX Optional<double&> NIL
outMinY Optional<double&> NIL
diagSurfaceValidPointsRegion Region& Region of locations where the surface points are valid

Optional Outputs

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

Read more about Optional Outputs.

Errors

List of possible exceptions:

Error type Description
DomainError Empty point array in ResamplePoint3DGrid.
DomainError Incorrect coordinate limits in ResamplePoint3DGrid.
DomainError Surface dimensions too big in ResamplePoint3DGrid.