RescalePath


Translates each point of a path proportionally to its distance to a reference point.

Syntax

C++
Python
 
def RescalePath(
	inPath: Path,
	outPath: Path,
	/,
	*,
	inReferencePoint: Point2D | None = None,
	inScale: float = 1.0,
	inInverse: bool = False
)
-> None

Parameters

Name Type Default Description
Input value inPath Path Input path
Input value inReferencePoint Point2D | None None The point to which all distances change linearly (the mass center by default)
Input value inScale float 1.0 Scaling factor
Input value inInverse bool False Switches to the inverse operation
Output value outPath Path Output path