• OPTUM GX
  • OPTUM GX Python
  • OPTUM CS
  • OPTUM G2/G3
Powered by
  1. OPTUM GX Documentation
  2. Python
  3. Functions
  4. Model
  5. add_​vertex

# add_vertex

Create a point in 2D or 3D.

# Parameters

p0 : array
Point. p0 = [x0,y0] in 2D, p0 = [x0,y0,z0] in 3D

# See also

  • add_arc
  • add_box
  • add_circle
  • add_line
  • add_polygon
  • add_polygons
  • add_rectangle

# Examples

model2d.add_vertex([0,0])
model3d.add_vertex([2,2,2])
model3d.add_vertex([1,0,1])

See also

add_arc

Draw an arc in 2D, using N line segments between two points and a midpoint.

add_line

Add a line defined by two points.

add_nprism

Draw a Nprism in 3D.

add_polygon

Add a polygon defined by a two-dimensional array of vertex points.

add_polygons

Add a list of polygons defined by an array of two-dimensional arrays of vertex points for each polygon.

Previous add_​sphere
Next clone

© Copyright 2026 - OptumCE | All rights reserved.