Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

GetFEM: bgeot::geotrans_inv Class Reference
GetFEM  5.4.2
bgeot::geotrans_inv Class Reference

handles the geometric inversion for a given (supposedly quite large) set of points More...

#include <bgeot_geotrans_inv.h>

Inherited by getfem::mesh_trans_inv.

Public Member Functions

template<class CONT >
void add_points (const CONT &c)
 Add the points contained in c to the list of points.
 
size_type nb_points (void) const
 Number of points.
 
size_type add_point (base_node p)
 Add point p to the list of points.
 
size_type points_in_box (kdtree_tab_type &ipts, const base_node &min, const base_node &max) const
 Find all the points present in the box between min and max.
 
template<class TAB , class CONT1 , class CONT2 >
size_type points_in_convex (const convex< base_node, TAB > &cv, pgeometric_trans pgt, CONT1 &pftab, CONT2 &itab, bool bruteforce=false)
 Search all the points in the convex cv, which is the transformation of the convex cref via the geometric transformation pgt. More...
 

Detailed Description

handles the geometric inversion for a given (supposedly quite large) set of points

Definition at line 178 of file bgeot_geotrans_inv.h.

Member Function Documentation

◆ points_in_convex()

template<class TAB , class CONT1 , class CONT2 >
size_type bgeot::geotrans_inv::points_in_convex ( const convex< base_node, TAB > &  cv,
pgeometric_trans  pgt,
CONT1 &  pftab,
CONT2 &  itab,
bool  bruteforce = false 
)

Search all the points in the convex cv, which is the transformation of the convex cref via the geometric transformation pgt.

IMPORTANT : It is assumed that the whole convex is include in the minmax box of its nodes times a factor 1.2. If the transformation is linear, the factor is 1.0.

Parameters
cvthe convex points (as given by getfem_mesh::convex(ic)).
pgtthe geometric trans (as given by getfem_mesh::trans_of_convex(ic)).
pftabcontainer for the coordinates of points in the reference convex (should be of size nb_points())
itabthe indices of points found in the convex.
bruteforceuse a brute force search(only for debugging purposes).
Returns
the number of points in the convex (i.e. the size of itab, and pftab)

Definition at line 242 of file bgeot_geotrans_inv.h.


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