G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsVertex< T > Class Template Reference

Detailed Description

template<class T>
class gismo::gsVertex< T >

gsVertex class that represents a 3D vertex for a gsMesh.

+ Inheritance diagram for gsVertex< T >:
+ Collaboration diagram for gsVertex< T >:

Public Types

typedef memory::shared_ptr
< gsVertex
Ptr
 Shared pointer for gsVertex.
 
typedef memory::unique_ptr
< gsVertex
uPtr
 Unique pointer for gsVertex.
 

Public Member Functions

void addFace (gsFaceHandle const &f)
 Adds a gsFaceHandle f to the list of faces adjaent to this vertex. More...
 
uPtr clone () const
 Clone Function (deep copy)
 
 gsVertex ()
 Constructor.
 
 gsVertex (scalar_t x, scalar_t y, scalar_t z=0)
 Constructor, take 3 scalars. More...
 
 gsVertex (gsVector3d< T > const &u)
 Constructor, takes a gsVector3d. More...
 
 gsVertex (gsVector< T > const &u)
 Constructor, takes a gsVector. More...
 
void move (scalar_t dx, scalar_t dy, scalar_t dz)
 Moves a gsVertex relatively. More...
 
x () const
 
T & x ()
 
y () const
 
T & y ()
 
z () const
 
T & z ()
 

Public Attributes

std::vector< gsFaceHandle > faces
 List of faces adjacent to this vertex.
 

Constructor & Destructor Documentation

gsVertex ( scalar_t  x,
scalar_t  y,
scalar_t  z = 0 
)
inline

Constructor, take 3 scalars.

Parameters
x,y,zCoordinates of position in 3D space.
gsVertex ( gsVector3d< T > const &  u)
inline

Constructor, takes a gsVector3d.

Parameters
uthe gsVector3d
gsVertex ( gsVector< T > const &  u)
inline

Constructor, takes a gsVector.

Parameters
ugsVector of dimension 1, 2 or 3. Fills with zero.

Member Function Documentation

void addFace ( gsFaceHandle const &  f)
inline

Adds a gsFaceHandle f to the list of faces adjaent to this vertex.

Parameters
fgsFaceHandle
void move ( scalar_t  dx,
scalar_t  dy,
scalar_t  dz 
)
inline

Moves a gsVertex relatively.

Parameters
dx,dy,dzvalues added to x, y and z
T x ( ) const
inline
Returns
x
T& x ( )
inline
Returns
&x
T y ( ) const
inline
Returns
y
T& y ( )
inline
Returns
&y
T z ( ) const
inline
Returns
z
T& z ( )
inline
Returns
&z