Back to FabImage Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimSegmentToPolygon

TrimSegmentToPolygon


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Finds all subsegments that are inside a given polygon.

Syntax

C++
C#
 
void fil::TrimSegmentToPolygon
(
	const fil::Path& inPolygon,
	const fil::Segment2D& inSegment,
	ftl::Array<fil::Segment2D>& outSubsegments
)

Parameters

Name Type Default Description
Input value inPolygon const Path&
Input value inSegment const Segment2D&
Output value outSubsegments Array<Segment2D>&

Errors

List of possible exceptions:

Error type Description
DomainError Empty path on input in TrimSegmentToPolygon.
DomainError Open path on input in TrimSegmentToPolygon.