GetFEM  5.4.2
bgeot::node_tab Class Reference

Store a set of points, identifying points that are nearer than a certain very small distance. More...

#include <bgeot_node_tab.h>

Inherits dal::dynamic_tas< T, pks >.

Public Member Functions

void clear (void)
 reset the array, remove all points
 
size_type search_node (const base_node &pt, const scalar_type radius=0) const
 Search a node in the array. More...
 
size_type add_node (const base_node &pt, const scalar_type radius=0, bool remove_duplicated_nodes=true)
 Add a point to the array or use an existing point, located within a distance smaller than radius. More...
 

Detailed Description

Store a set of points, identifying points that are nearer than a certain very small distance.

Definition at line 52 of file bgeot_node_tab.h.

Member Function Documentation

◆ search_node()

size_type bgeot::node_tab::search_node ( const base_node pt,
const scalar_type  radius = 0 
) const

Search a node in the array.

return its index if it exists or size_type(-1) otherwise.

Definition at line 56 of file bgeot_node_tab.cc.

◆ add_node()

size_type bgeot::node_tab::add_node ( const base_node pt,
const scalar_type  radius = 0,
bool  remove_duplicated_nodes = true 
)

Add a point to the array or use an existing point, located within a distance smaller than radius.

If radius is negative, the detection of proximate existing points will be skipped and the point will simply be added to the array. The optional argument remove_duplicated_nodes is deprecated. Setting it to false has the same effect as passing a negative value to radius.

Definition at line 96 of file bgeot_node_tab.cc.


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