3 #ifndef __u3d_prgrid2d_hpp
4 #define __u3d_prgrid2d_hpp
6 #include "u3d_abstract_prgrid2d.hpp"
46 virtual void construct(
const U3dPointsAr &points,
51 virtual void construct(
const U3dPoints &points,
68 static int get_ip_id(
double x, std::vector<double> &grd_x,
69 double dx,
double &xmn,
double &xmx);
91 double &zmn,
double &zmx,
double &pzmn,
double &pzmx,
92 std::vector<double> &xgd, std::vector<double> &ygd,
93 double x,
double y,
bool is_increase_xy =
true);
108 U3dIntEqLeftPart(
const U3dIntEqLeftPart &obj);
111 virtual ~U3dIntEqLeftPart(){}
114 double calc(
double z);
117 void init(U3dPointsAr &pips)
118 {ips = pips; is_init =
true;}
121 void setPCoords(
double px,
double py)
128 double get_2d_ip_dist(
int i,
double x,
double y) {
129 return ((ips[i]->getX() - x)*(ips[i]->getX() - x) +
130 (ips[i]->getY() - y)*(ips[i]->getY() - y));
137 double get_3d_ip_dist(
int i,
double x,
double y,
double z) {
138 return ((ips[i]->getX() - x)*(ips[i]->getX() - x) +
139 (ips[i]->getY() - y)*(ips[i]->getY() - y) +
140 (ips[i]->getZ() - z)*(ips[i]->getZ() - z));
159 U3dIntEqLeftPart *m_grd_eq_lp;
162 double m_prev_zmn, m_prev_zmx;
U3dIntEqLeftPart()
Definition: u3d_svrg_math_abstract_surface.hpp:190
static bool add_grid_cell(int ix, int jy, GridCell &cell, GridMatrix &rgrid, double &zmn, double &zmx, double &pzmn, double &pzmx, std::vector< double > &xgd, std::vector< double > &ygd, double x, double y, bool is_increase_xy=true)
void expand_grid_area(U3dBox *area)
std::vector< GridLine > GridMatrix
Definition: u3d_abstract_prgrid2d.hpp:132
virtual void construct(const U3dPointsAr &points, double g_step_x, double g_step_y, U3dBox *area=NULL)
Definition: u3d_box.hpp:24
virtual void calc_grid_z_levels()
virtual void push_ip(const U3dPoint *point)
Definition: geometry.H:16
Definition: u3d_prgrid3d.hpp:13
Definition: u3d_point.hpp:16
Definition: u3d_prgrid2d.hpp:167
std::vector< GridCell > GridLine
Definition: u3d_abstract_prgrid2d.hpp:129
Definition: u3d_abstract_prgrid2d.hpp:116
static int get_ip_id(double x, std::vector< double > &grd_x, double dx, double &xmn, double &xmx)
virtual double calc_nip_z(double x, double y)
Definition: u_base_math.hpp:136
Definition: u_base_math.hpp:88
Definition: u3d_prgrid2d.hpp:12
Definition: u3d_abstract_prgrid2d.hpp:11