Back to FabImage Library website

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

RescaleSurface


Header: FIL.h
Namespace: fil
Module: Vision3DStandard

Changes the distances of surface points to a reference point.

Syntax

C++
C#
 
void fil::RescaleSurface
(
	const fil::Surface& inSurface,
	const fil::Point3D& inReferencePoint,
	float inScaleX,
	ftl::Optional<float> inScaleY,
	ftl::Optional<float> inScaleZ,
	bool inInverse,
	fil::Surface& outSurface
)

Parameters

Name Type Default Description
Input value inSurface const Surface& Input surface
Input value inReferencePoint const Point3D& Point to which the distances will be changed
Input value inScaleX float 1.0f Scaling factor along X axis
Input value inScaleY Optional<float> NIL Scaling factor along Y axis
Input value inScaleZ Optional<float> NIL Scaling factor along Z axis
Input value inInverse bool Switches to the inverse operation
Output value outSurface Surface& Rescaled surface

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling in RescaleSurface.