Table of Contents

Method newvertex

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

newvertex(double, double, double, double)

Creates and returns a new 4 sized Array object. The first element of the Array represents the x value of the vertex, the second element the y vertex, the third the z vertex and the fourth the bulge of the vertex.

public object newvertex(double x, double y, double z, double bulge)

Parameters

x double

A numerical value representing the x value of the vertex.

y double

A numerical value representing the y value of the vertex.

z double

A numerical value representing the z value of the vertex.

bulge double

A numerical value representing the bulge of the vertex.

Returns

object

A 4 sized Array object containing the x, y, z, bulge values of the vertex.

Examples

function AddPolyline() {
    var vdcanvas = vdmanager.vdrawObject('canvas');
    var vertexes = [vdgeo.newvertex(-20, -20, 0 , 0),vdgeo.newvertex(-20, 10, 0 , 0.5), vdgeo.newvertex(30, 15, 0 , 0), vdgeo.newvertex(30, 0, 0 , 0)];
    var vdPolyline = vdcanvas.AddPolyline(vertexes, false);
    vdPolyline.Flag = 1;
    vdcanvas.zoomExtents();
    vdcanvas.redraw();
}