Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Adding Objects

addtriangle

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

Adds a 3 vertex, triangle shaped polygon primitive to the simulation environment.

 

Supported Product: FDTD, MODE, DEVICE

 

Syntax

Description

addtriangle;

Adds a triangle primitive to the simulation environment.

This function does not return any data.

 

Example

The following script creates a triangle primitive and sets the coordinates of its three corners using a 2D matrix.

vtx = [1,0;2,2;4,0]*1e-6;  # microns

addtriangle;

set("name","new_triangle");

set("vertices",vtx);

set("z span",2e-6);

 

See Also

Adding Objects, addpoly, set

Copyright Lumerical Inc. | Privacy | Site Map