Cubit Python API  16.02
Public Member Functions
Vertex

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

Inheritance diagram for Vertex:
GeomEntity Entity

Public Member Functions

  Vertex ()
 
  Vertex (const Vertex &other)
 
  Vertex (CubitEntity *entity_ptr)
 
  ~Vertex ()
 
int  color ()
  Get the color of the Vertex. More...
 
void  color (int value)
  Set the color of the Vertex. More...
 
std::array< double, 3 >  coordinates ()
  Get the Cartesian coordinates of the Vertex. More...
 
void  set_color (int value)
  Set the color of the Vertex. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Vertex() [1/3]

Vertex (   )  
inline

 

◆ ~Vertex()

~Vertex (   )  
inline

 

◆ Vertex() [2/3]

Vertex ( const Vertex other )  
inline

 

◆ Vertex() [3/3]

Vertex ( CubitEntity *  entity_ptr )  
inline

 

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.

vertex->color(0);
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