37#ifndef __H__UG__PLUGINS__LEVEL_SET__LS_INIT_H__
38#define __H__UG__PLUGINS__LEVEL_SET__LS_INIT_H__
59template <
typename TGr
idFunc>
84 static const int dim = TGridFunc::dim;
100 const char * raster_file
116 const char * top_ss_names
126 const char * top_ss_names,
157 bool localTopFacesOnly
203 const std::string & top_ss_names
218 bool useLocalTopFacesOnly
an auxiliary class for the computation of the relative height
Definition ls_init.h:192
SmartPtr< domain_type > m_sp_domain
multigrid of the domain
Definition ls_init.h:232
std::vector< top_intersection_record_t > m_top_intersection_records
array to store all the intersections
Definition ls_init.h:245
lg_ntree< dim-1, dim, side_t > top_tracer_tree_t
Definition ls_init.h:193
RayElemIntersectionRecord< side_t * > top_intersection_record_t
Definition ls_init.h:195
Grid m_top_grid
auxiliary grid of the top faces
Definition ls_init.h:239
z_ray_tracer_t(SmartPtr< domain_type > sp_domain, const std::string &top_ss_names)
class constructor
Definition ls_init.h:201
void init(int grid_level)
initializer: creates the tree
Definition ls_init_impl.h:115
bool get_min_at(const MathVector< dim > &over, number tolerance, number &z)
computes the minimum z-coordiate of the top (returns true if the top found, false otherwise)
Definition ls_init_impl.h:220
top_tracer_tree_t m_top_tracer_tree
tracer tree of the top faces
Definition ls_init.h:242
SubsetGroup m_top_ss_grp
subset group of the top faces
Definition ls_init.h:235
number m_rt_default
default position of the top (if the ray tracing fails) - used only if m_bRelative
Definition ls_init.h:182
void set_local_top_faces_only(bool localTopFacesOnly)
if relative values are used, tells whether the value can be obtained by local top faces only
Definition ls_init.h:156
domain_type::position_accessor_type position_accessor_type
type of the position accessor
Definition ls_init.h:81
void set_rel_default(number default_top_z)
sets default position of the top (only used if m_bRelative)
Definition ls_init.h:146
bool m_localTopFacesOnly
Definition ls_init.h:187
static const int dim
world dimension
Definition ls_init.h:84
raster_t m_raster
Definition ls_init.h:167
LSFbyRaster< TGridFunc > this_type
this type
Definition ls_init.h:63
void interpolate_to(SmartPtr< TGridFunc > spLSF)
computes the level-set function
Definition ls_init_impl.h:54
TGridFunc::template traits< Vertex >::const_iterator VertexConstIterator
vertex base iterator
Definition ls_init.h:87
int m_rt_gl
grid level of the top surface (or -1 if the surface)
Definition ls_init.h:176
number m_rt_tol
tolerance for the ray tracing (to the top surfaces)
Definition ls_init.h:179
grid_dim_traits< dim-1 >::element_type side_t
side type
Definition ls_init.h:93
bool m_bDefaultTop
whether the default position of the top is specified
Definition ls_init.h:185
void set_rel_tolerance(number tolerance)
sets the tolerance for getting the position of the top (only used if m_bRelative)
Definition ls_init.h:137
TGridFunc grid_func_type
grid function type
Definition ls_init.h:66
TGridFunc::algebra_type algebra_type
type of the algebra
Definition ls_init.h:72
bool m_bRelative
whether relative to the top
Definition ls_init.h:170
LSFbyRaster(const char *raster_file)
class constructor
Definition ls_init.h:99
grid_dim_traits< dim >::element_type elem_t
element type
Definition ls_init.h:90
domain_type::position_attachment_type position_attachment_type
type of the position accessor
Definition ls_init.h:78
Raster< number, dim - 1 > raster_t
the raster of the heights
Definition ls_init.h:166
std::string m_top_ss_names
top subsets (if specified)
Definition ls_init.h:173
void set_relative_to(const char *top_ss_names, int grid_level)
sets the top subset
Definition ls_init.h:125
TGridFunc::domain_type domain_type
type of the domain
Definition ls_init.h:69
void set_relative_to(const char *top_ss_names)
sets the top subset
Definition ls_init.h:115
domain_type::grid_type grid_type
grid type
Definition ls_init.h:75
void load_from_asc(const char *filename)
SmartPtr< TSubsetHandler > subset_handler()
vector< string > TokenizeString(const char *str, const char delimiter=',')