Command: lineclip

Syntax

{<entity> = } lineclip <elist>

or

{<entity> = } lineclip <elist> {
    <pcommand>
    ...
}

Description

Clip one or more polyline graphic entities using a 2-D polygon mask.

Parameters

Switches

Notes

This command creates one or more graphic entities of type lines. Even when the source entities are of type vector, the output will still be of type lines.

The clip operation should be considered as: <result> = <elist> <op> <mask>

All lines created by a lineclip command form the contents of the group these.

The system numeric found records the number of polyline entities created by the lineclip command.

Examples

Clip a polyline.

lines {gc, e:100, n:100, w:100, r }
lineclip this { (50,50), e:100, n:100, w:100, r }

See Also

Commands:

entity, gstructure, linemerge, point, polygon, vector, zone

System Colors:

def_color (color), def_fragment (numeric), def_ls (linestyle), def_rank (numeric), these (group)

Structures:

entity (lines, polygon, vector)