On this page:
11.10.1  Inheritance diagram for Vertex:
2022.4+26187-e1209cf7 Apr 14, 2022

11.10  Vertex

Defines a vertex object that mostly parallels Cubit’s RefVertex class. More...

#include <CubitInterfaceEx.hpp>

11.10.1  Inheritance diagram for Vertex:

Public Member Functions

void 

color (int value)

 

Set the color of the Vertex. More...

 

void 

set_color (int value)

 

Set the color of the Vertex. More...

 

int 

color ()

 

Get the color of the Vertex. More...

 

std::array< double, 3 > 

coordinates ()

 

Get the Cartesian coordinates of the Vertex. More...

 

 

Vertex (const Vertex &other)

 

 

Vertex (CubitEntity *entity_ptr)

 

Detailed Description

Defines a vertex object that mostly parallels Cubit’s RefVertex class. Member Function Documentation
color() [1/2]

 int color ( )

Get the color of the Vertex.

int col = vertex->color();

col = vertex.color()

Returns:
The color value associated with the vertex’s current color
color() [2/2]

 void color ( int  value)

Set the color of the Vertex.

Parameters:

[in]

value

The color value that the vertex will have


coordinates()

 std::array<double,3> coordinates ( )

Get the Cartesian coordinates of the Vertex.

std::vector<double> position = vertex->coordinates();

position = vertex.coordinates()

Returns:
A vector containing the coordinates of the Vertex with indices corresponding to the coordinates as follows:
0 - x coordinate
1 - y coordinate
2 - z coordinate
set_color()

 void set_color ( int  value)

Set the color of the Vertex.

Parameters:

[in]

value

The color value that the vertex will have