You are here: Start » AVL.NET » Function Reference » Region » Region Basics » AVL.CreateSegmentRegion

AVL.CreateSegmentRegion

Creates a segment region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateSegmentRegion
(
	AvlNet.Segment2D inSegment,
	float inWidth,
	int inFrameWidth,
	int inFrameHeight,
	bool inRound,
	AvlNet.Region outRegion
)

Parameters

Name Type Range Default Description
inSegmentAvlNet.Segment2D
inWidthfloat<1.0f, INF>Segment width.
inFrameWidthint<0, 65535>
inFrameHeightint<0, 65535>
inRoundboolMake ends of segment round.
outRegionAvlNet.RegionOutput region.

Description

Filter creates region based on an input Segment2D. To specify line width use inWidth.

Filter creates segment region by creating rectangle located between inSegment points. To make ends round use inRound.

Examples

Example region with inRound=False
Example region with inRound=True

Function Overrides

See also