55#include "MR_rect_tree.hpp"
56#include "MR_cell_cplx.hpp"
57#include "MR_rt_to_cc.hpp"
60typedef mjr::tree15b2d1rT tt_t;
61typedef mjr::MRccT5 cc_t;
62typedef mjr::MR_rt_to_cc<tt_t, cc_t> tc_t;
66tt_t::rrpt_t
f(tt_t::drpt_t xvec) {
69 double z = ((2*x*x*y - 2*x*x - 3*x + y*y*y - 33*y + 32) * ((x-2)*(x-2) + y*y + 3))/3000;
79 tt_t tree({-10.0, -6.5},
87 tree.refine_leaves_recursive_cell_pred(7,
f, [&tree](tt_t::diti_t i) {
return (tree.cell_cross_range_level(i, 0, 0.0)); });
95 tc_t::construct_geometry_fans(ccplx,
98 {{tc_t::val_src_spc_t::FDOMAIN, 0},
99 {tc_t::val_src_spc_t::FDOMAIN, 1},
100 {tc_t::val_src_spc_t::FRANGE, 0}});
102 ccplx.create_named_datasets({
"x",
"y",
"f(x,y)"});
104 ccplx.write_xml_vtk(
"implicit_curve_2d.vtu",
"implicit_curve_2d");
double f(double x, double y)