G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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< gsVertexPtr
 Shared pointer for gsVertex.
 
typedef memory::unique_ptr< gsVertexuPtr
 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.
 
uPtr clone () const
 Clone Function (deep copy)
 
 gsVertex ()
 Constructor.
 
 gsVertex (gsVector3d< T > const &u)
 Constructor, takes a gsVector3d.
 
 gsVertex (gsVector< T > const &u)
 Constructor, takes a gsVector.
 
 gsVertex (scalar_t x, scalar_t y, scalar_t z=0)
 Constructor, take 3 scalars.
 
void move (scalar_t dx, scalar_t dy, scalar_t dz)
 Moves a gsVertex relatively.
 
T & x ()
 
x () const
 
T & y ()
 
y () const
 
T & z ()
 
z () const
 

Public Attributes

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

Constructor & Destructor Documentation

◆ gsVertex() [1/3]

template<class T >
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() [2/3]

template<class T >
gsVertex ( gsVector3d< T > const &  u)
inline

Constructor, takes a gsVector3d.

Parameters
uthe gsVector3d

◆ gsVertex() [3/3]

template<class T >
gsVertex ( gsVector< T > const &  u)
inline

Constructor, takes a gsVector.

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

Member Function Documentation

◆ addFace()

template<class T >
void addFace ( gsFaceHandle const &  f)
inline

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

Parameters
fgsFaceHandle

◆ move()

template<class T >
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

◆ x() [1/2]

template<class T >
T & x ( )
inline
Returns
&x

◆ x() [2/2]

template<class T >
T x ( ) const
inline
Returns
x

◆ y() [1/2]

template<class T >
T & y ( )
inline
Returns
&y

◆ y() [2/2]

template<class T >
T y ( ) const
inline
Returns
y

◆ z() [1/2]

template<class T >
T & z ( )
inline
Returns
&z

◆ z() [2/2]

template<class T >
T z ( ) const
inline
Returns
z