    

 ## On this page

  

 

 # DistanceField Class Reference

 Last update: 16.07.2025 

represents a distance field for an unstructured grid [More...](class_distance_field.xhtml#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

<a id="a15cc0535dbc0e77586c9e6be7ad52a9f"></a> [DistanceField](class_distance_field.xhtml#a15cc0535dbc0e77586c9e6be7ad52a9f) () default constructor used for serialization   
  [DistanceField](class_distance_field.xhtml#a139bb19a278626c059c5116b0d4e7cff) (::[Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), number additional\_space, number \_grid\_distance, size\_t max\_approx\_grid\_size, bool use\_all\_boundary\_faces=true, bool do\_not\_warn=false) ::[Structure](class_structure.xhtml) [exportData](class_distance_field.xhtml#aaccae3ac8105a1859991f30d5360b302) () destructor [More...](#aaccae3ac8105a1859991f30d5360b302)  
 bool [hasData](class_distance_field.xhtml#a314b19ebe3b2ce78e9df49fee95c21dd) () const ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

<a id="a7ccc6ed0be2f1de195a16f32687c188f"></a>static number **getElementSizeFromQuantile** ([Structure](class_structure.xhtml) [database](group__data.xhtml#gaebcac3a2836ec9fdf2e47bd812994b6b), number quantile\_value) <a id="details" name="details"></a>## Detailed Description

represents a distance field for an unstructured grid



## Constructor &amp; Destructor Documentation

<a id="a139bb19a278626c059c5116b0d4e7cff"></a>## [◆ ](#a139bb19a278626c059c5116b0d4e7cff)DistanceField()

 [DistanceField](class_distance_field.xhtml)  ( ::[Structure](class_structure.xhtml)  *database*,    number  *additional\_space*,    number  *\_grid\_distance*,    size\_t  *max\_approx\_grid\_size*,    bool  *use\_all\_boundary\_faces* = `true`,    bool  *do\_not\_warn* = `false`   ) 

Parameters additional\_spacedefines how much space must be added along each direction of the structure \_grid\_distancedefines the grid point distance max\_approx\_grid\_sizethis is an approximate upper bound to the number of grid points, given that the grid point distance computed from the quantile value exceeds all bounds use\_all\_boundary\_facesif true, then the complete boundary is used. If false, then the boundary is determined by the reference node set do\_not\_warnif true no warning will be created (quiet mode) 



## Member Function Documentation

<a id="aaccae3ac8105a1859991f30d5360b302"></a>## [◆ ](#aaccae3ac8105a1859991f30d5360b302)exportData()

 ::[Structure](class_structure.xhtml) exportData  ( ) 

destructor

returns a copy of the internal distance field as a database





<a id="a314b19ebe3b2ce78e9df49fee95c21dd"></a>## [◆ ](#a314b19ebe3b2ce78e9df49fee95c21dd)hasData()

 bool hasData  ( )  const

Returnstrue if the distance field contains data