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 | |
|---|---|---|---|---|
![]() |
inLine | Line2D | ||
![]() |
inRectangle | Rectangle2D | Rectangle defining a region the input line will be cropped to | |
![]() |
outSegment | Segment2D | None |


