Calculating Vertex Count

Calculate the number of figure vertices for the specified region.

How to Execute

Run Directly on Screen

Right-drag on screen to select the region for calculation. Release the right button to open the context menu, then select Calculate/Vertex Count.

Screen R Click Menu Vertex Count

The calculation result is saved to Calculation Panel datalist and displayed on screen.

Vertex Count Added

Right-click on the calculation result displayed on screen or in the datalist to open the context menu, containing the following items in addition to the default context menu items.

Item Action
Show Show/hide the calculation results on screen.
Display/Name Show/hide the name of the calculation result on screen.
Display/Coordinates Show/hide the coordinates of the calculation result on screen.
Color Change the display color of the calculation result on screen.

Run from the Calculate Vertex Count Dialog

Do one of the following to open Calculate Vertex Count dialog:

  • Select Calculate/Vertex Count from the context menu of screen.
  • Right-click on the blank part of Calculation Panel to open the context menu, then select Vertex Count.

Screen Vertex Count Dialog

Specify the calculation area in Area and press OK to begin calculation.

Load Area File and Calculate

Select Load AreaFile/Vertex Count from the main menu to open Open AreaFile for Vertex Count dialog.

File Dialog

Select an Area File and press OK. The calculation is performed on each area described in the file.

Refer to Area File page.

Output the Calculation Results to a File

The calculated results can be saved to a text file in CSV format.

Click the icon on Calculation Panel and select Vertex Count to open the Save Vertex Count dialog.

Save Vertex Count Dialog

Specify the file name and press OK to save the results. The output has the following format:

#Vertex Count Created by nebv VERSION (uid=UID) USER@HOSTNAME DATE
#COMMAND addVertexCount
#ARGS 
#xmin,ymin,xmax,ymax,count
489.4,343.5,597.5,447.3,400

Run from the Command Line

Specify --vertex-count-file option with an Area File at startup to execute calculation on each area described in the file after startup. You can also specify the filename to save the calculation results using --vertex-count-file-out option.

By specifying as follows, the calculation results for the specified range in figure_file will be output to vertex_count_result.txt:

$ nebv --vertex-count-file=/path/to/areafile.txt --vertex-count-file-out=/path/to/vertex_count_result.txt /path/to/figure_file
$ nebv --vertex-count-file="0,0,100,100" --vertex-count-file-out=/path/to/vertex_count_result.txt /path/to/figure_file

For Area File syntax, Refer to Area File page.

See --vertex-count-file, --vertex-count-file-out in Boot Options page.

Display Calculation Results for Curvilinear Figure

If the Curvilinear figure is included, vertices and control points can be counted separately.

Vertex Count Added Separately

See Count Control Points Separately in Preference Action/Vertex Count page.

The method of calculating the Vertex Count and the way the results are displayed can be changed from the Preference. See preference Action/Density, Action/Vertex Countpage for detail.

Restrictions

Figures that touch with the specified area only by its edges are excluded from the calculation.

Last modified April 22, 2025