Nef_polyhedron build_support(double thickness) { if (!yzslicing) { CartesianDomain domain(Interval(-2, 2), Interval(0, 1)); CharSupport support; Build_CartesianPointFunction s(support, domain, 4 * steps, 2, thickness); Polyhedron p; p.delegate(s); return Nef_polyhedron(p); } else { CartesianDomain domain(Interval(0, 4), Interval(0, 2)); SupportSheet support; Build_CartesianPointFunction s(support, domain, steps, steps, thickness); Polyhedron p; p.delegate(s); return Nef_polyhedron(p); } }
bool Scene_nef_polyhedron_item::load_from_off(std::istream& in) { // const std::size_t discarded = CGAL::OFF_to_nef_3(in, *nef_poly); // return discarded != 0; Exact_polyhedron exact_poly; in >> exact_poly; *nef_poly = Nef_polyhedron(exact_poly); // Polyhedron poly; // in >> poly; // *nef_poly = Nef_polyhedron(poly); return (bool) in; }