Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

polyor

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Combines two polygons into one using the Boolean 'or' operation.

 

The polygon vertices are contained in a single matrix of dimension Nx2 (or 2xN), where N >= 3 is the number of vertices. The dimension 2 corresponds to the x,y positions. For example, a square of side length 1 can be described by V = [ 0,0; 1,0; 1,1; 0,1] or V = [ 0,1,1,0;0,0,1,1].

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

V3 = polyor(V1,V2);

Returns a new polygon, V3, that is the 'or' of V1 and V2.

 

Example

See example in the polyand function description.

 

See Also

Functions, polyand, polydiff, polyxor, polyarea, centroid, polyintersect, inpoly, polygrow

Copyright Lumerical Inc. | Privacy | Site Map