PathEngine home previous: iFaceVertexBuilder::addFace()next: iFaceVertexBuilder::setFaceAttribute()
Contents, API Reference, Interfaces, iFaceVertexBuilder, addVertex

iFaceVertexBuilder::addVertex()

Description

Adds a vertex to the mesh, and returns the index of the newly added vertex.

Syntax

int32_t addVertex(int32_t x, int32_t y, float z);

Parameters

x X (horizontal) coordinate.
y Y (horizontal) coordinate.
z Z (vertical) coordinate.

Return Value

The index of the newly added vertex.

Remarks

Vertex indices must correspond with the order in which vertices are added. (So the first vertex added gets index 0, the second vertex added gets index 1, etc., the returned index value here is really just for convenience for calling code.)

C# Mapping

int addVertex(int x, int y, float z);

Java Mapping

int addVertex(int x, int y, float z);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iFaceVertexBuilder::setFaceAttribute()