, вычисленных с использованием Nef_polyhedron_3 CGAL.
В качестве простого примера рассмотрим следующий пример программы:< /p>
Код: Выделить всё
#include
#include
#include
#include
using Kernel = CGAL::Extended_cartesian;
using Nef = CGAL::Nef_polyhedron_3;
int main(int argc, char ** argv)
{
Nef hspace_1_1(Nef::Plane_3(1.0, 0.0, 0.0, 0.0), Nef::INCLUDED);
Nef hspace_1_2(Nef::Plane_3(1.0, 0.0, 0.0, 1.0), Nef::INCLUDED);
Nef hspace_2_1(Nef::Plane_3(0.0, 1.0, 0.0, 0.0), Nef::INCLUDED);
Nef hspace_2_2(Nef::Plane_3(0.0, 1.0, 0.0, 1.0), Nef::INCLUDED);
Nef hspace_3_1(Nef::Plane_3(0.0, 0.0, 1.0, 0.0), Nef::INCLUDED);
Nef hspace_3_2(Nef::Plane_3(0.0, 0.0, 1.0, 1.0), Nef::INCLUDED);
Nef intersection_1 = hspace_1_1*hspace_1_2;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79347867/assertion-violation-for-certain-halfspace-intersections-using-cgals-nef-polyhe[/url]