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

Class for surface object in a mesh. More...

#include <mesh.hpp>

Inheritance diagram for surf:
meshpart modiftrackpart ArrayStructpart

Public Member Functions

std::vector< int > vertind (const mesh &meshin) const
 
void disp () const
 
double value (const mesh &meshin) const
 
void disptree (const mesh &meshin, int n) const
 
void ChangeIndices (int nVert, int nEdge, int nSurf, int nVolu)
 
void PrepareForUse ()
 
bool isready (bool isInMesh) const
 
bool IsOrdered () const
 
void read (FILE *fid)
 
void write (FILE *fid) const
 
int OrderEdges (mesh *meshin)
 
int SplitSurface (mesh &meshin, const std::vector< int > &fullEdgeInd)
 
void OrderedVerts (const mesh *meshin, std::vector< int > &vertList) const
 
std::vector< int > OrderedVerts (const mesh *meshin) const
 
void TightenConnectivity ()
 
void FlipVolus ()
 
bool edgeconneq (const surf &other, bool recurse=true) const
 
coordvec PseudoCentroid (const mesh &meshin) const
 Calculates the length weighted pseudo-centroid of a surface. More...
 
int PseudoCentroid (const mesh &meshin, coordvec &coord) const
 Calculates the length weighted pseudo-centroid of a surface. More...
 
void operator= (const surf *other)
 
int Key () const
 
- Public Member Functions inherited from modiftrackpart
bool returnIsModif () const
 

Public Attributes

friend surfarray
 
double fill
 
double target
 
double error
 
double area
 
std::vector< int > edgeind
 
std::vector< int > voluind
 
- Public Attributes inherited from ArrayStructpart
int index = 0
 
bool isBorder = false
 

Protected Attributes

bool isordered
 
- Protected Attributes inherited from modiftrackpart
bool isModif = true
 

Friends

class mesh
 

Detailed Description

Class for surface object in a mesh.

Definition at line 266 of file mesh.hpp.

Member Function Documentation

◆ PseudoCentroid() [1/2]

coordvec surf::PseudoCentroid ( const mesh meshin) const

Calculates the length weighted pseudo-centroid of a surface.

For a more efficient implementation for repeated calls see the other surf::PseudoCentroid.

Parameters
[in]meshinThe mesh the surface is part of
Returns
The coordinate of the pseudo centroid of the surface.

Definition at line 556 of file mesh.cpp.

◆ PseudoCentroid() [2/2]

int surf::PseudoCentroid ( const mesh meshin,
coordvec coord 
) const

Calculates the length weighted pseudo-centroid of a surface.

Parameters
[in]meshinThe mesh the surface is part of
[out]coordThe coordinate vector to which the position is written.
Returns
the length of the perimeter of the surface.

Definition at line 573 of file mesh.cpp.


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