TrimLineToRectangle


Creates a segment contained in a rectangle from a line.

Syntax

C++
Python
 
def TrimLineToRectangle(
	inLine: Line2D,
	inRectangle: Rectangle2D,
	/
)
-> outSegment: Segment2D | None

Parameters

Name Type Default Description
Input value inLine Line2D
Input value inRectangle Rectangle2D Rectangle defining a region the input line will be cropped to
Output value outSegment Segment2D | None