Lingo Dictionary > A-C > addVertex

 

addVertex

Syntax

member(memberRef).AddVertex(indexToAddAt, pointToAddVertex \
{, [controlPoint1(x, y), controlPoint2(x, y)]}) 
addVertex(member memberRef, indexToAddAt, pointToAddVertex \
{, [controlPoint1(x, y), controlPoint2(x, y)]})

addVertex (member whichCastMember, indexToAddAt, Point(hLocation, vLocation), [controlLocH, controlLocV])

Description

Vector shape command; adds a new vertex to a vector shape cast member in the position specified.

The horizontal and vertical positions are relative to the origin of the vertex shape cast member.

When using the final two optional parameters, you can specify the location of the control handles for the vertex. The control handle location is offset relative to the vertex, so if no location is specified, it will be located at 0 horizontal offset and 0 vertical offset.

Example

This line adds a vertex point in the vector shape Archie between the two existing vertex points, at the position 25 horizontal and 15 vertical:

member("Archie").addVertex(2, point(25, 15))

See also

vertexList, moveVertex(), addVertex, deleteVertex(), originMode