RescaleSegment3D


Lengthens or shortens a segment in 3D relatively.

Syntax

C++
C#
Python
 
def RescaleSegment3D(
	inSegment3D: Segment3D,
	/,
	*,
	inReferencePoint: Point3D | None = None,
	inScale: float = 1.0,
	inInverse: bool = False
)
-> outSegment3D: Segment3D

Parameters

Name Type Default Description
Input value inSegment3D Segment3D Input segment in 3D
Input value inReferencePoint Point3D | None None The point to which all distances change linearly (the mass center by default)
Input value inScale float 1.0 Scaling factor (negative values invert the segment)
Input value inInverse bool False Switches to the inverse operation
Output value outSegment3D Segment3D