rsvs3D  0.0.0
Codes for the c++ implementation of the 3D RSVS
edge Class Reference

Class for an edge object in a mesh. More...

#include <mesh.hpp>

Inheritance diagram for edge:
meshpart modiftrackpart ArrayStructpart

Public Member Functions

void ChangeIndices (int nVert, int nEdge, int nSurf, int nVolu)
 
void disp () const
 
void disptree (const mesh &meshin, int n) const
 
double value (const mesh &meshin) const
 
void PrepareForUse ()
 
bool isready (bool isInMesh) const
 
void read (FILE *fid)
 
void write (FILE *fid) const
 
void TightenConnectivity ()
 
void GeometricProperties (const mesh *meshin, coordvec &centre, double &length) const
 Math operations in mesh.
 
double Length (const mesh &meshin) const
 Calculate the edge length. More...
 
double SetLength (const mesh &meshin)
 
double GetLength (bool warn=true) const
 
void InvalidateLength ()
 
double LengthSquared (const mesh &meshin) const
 Calculate squared edge length. More...
 
bool IsLength0 (const mesh &meshin, double eps=__DBL_EPSILON__) const
 Returns. More...
 
bool vertconneq (const edge &other) const
 
 edge (const edge &oldEdge)
 
edgeoperator= (const edge &other)=default
 
void operator= (const edge *other)
 
int Key () const
 
- Public Member Functions inherited from modiftrackpart
bool returnIsModif () const
 

Public Attributes

friend edgearray
 
std::vector< int > vertind
 
std::vector< int > surfind
 
- Public Attributes inherited from ArrayStructpart
int index = 0
 
bool isBorder = false
 

Protected Attributes

double length = rsvs3d::constants::__unsetlength
 
- Protected Attributes inherited from modiftrackpart
bool isModif = true
 

Friends

class mesh
 

Detailed Description

Class for an edge object in a mesh.

Definition at line 352 of file mesh.hpp.

Member Function Documentation

◆ IsLength0()

bool edge::IsLength0 ( const mesh meshin,
double  eps = __DBL_EPSILON__ 
) const

Returns.

Parameters
[in]meshinthe mesh in which the edge existes
[in]epsTolerance, number under which the length must be to be considered 0. Defaults to DBL_EPSILON.
Returns
Wether Length squared is below eps squared.

Definition at line 1514 of file mesh.cpp.

◆ Length()

double edge::Length ( const mesh meshin) const

Calculate the edge length.

Parameters
[in]meshinthe mesh in which the edge existes
Returns
the length of the edge

Definition at line 1496 of file mesh.cpp.

◆ LengthSquared()

double edge::LengthSquared ( const mesh meshin) const

Calculate squared edge length.

Parameters
[in]meshinthe mesh in which the edge existes
Returns
the squared length of the edge

Definition at line 1477 of file mesh.cpp.


The documentation for this class was generated from the following files: