Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Polyhedron_3 to Nef_Polyhedron_3

Subject: CGAL users discussion list

List archive

[cgal-discuss] Polyhedron_3 to Nef_Polyhedron_3


Chronological Thread 
  • From: SHYAM SUNDAR KANNAN <>
  • To:
  • Subject: [cgal-discuss] Polyhedron_3 to Nef_Polyhedron_3
  • Date: Tue, 22 Dec 2015 16:42:33 +0530
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:RZRAchHzZI7cGxEtnaue151GYnF86YWxBRYc798ds5kLTJ75o8iwAkXT6L1XgUPTWs2DsrQf27SQ6/iocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0YLvj6ibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7a3Vste0BeqSduLyH/pDLTeLHYlGOureps0SyBIMv6RKpvAhyt6q5qTFnjjyJRZG1xy33elsEl1PETmxmmvREqm4M=

Hello Everyone,

I am trying to find the symmetric difference of two polyhedrons. In order to perform this Boolean operation in 3D I want to convert my Polyderon_3 to Nef_Polyhedron_3.

I constructed my polyhedron with data from an .OFF file. Later when I try to convert the Polyhedron_3 to Nef_Polyhedron_3 as

std::ifstream stream(path/data.off");
    if(!stream) {
        std::cerr << "Cannot open the reconstructed.off file!\n";
        return 1;
    }
    Polyhedron R;
    stream >> R;
    if(!stream) {
        std::cerr << "reconstructed.off is not a polyhedron\n";
        return 1;
    }
   
    Nef_polyhedron N(R);  //getting error in this line


(I am using Extended_homogeneous Kernel)

the conversion fails in most of the cases. It works for simple 3D objects like cube etc.

For example:
It works for a cube with rectangular hole but fails for a cube with a cylindrical hole.

Can anyone explain the reason for this. Are there any constraints causing this limitation.

Is there way to convert all Polyhedrons to Nef_Polyherdon?


Thanking You in advance,


Regards,
Shyam Sundar Kannan.


  • [cgal-discuss] Polyhedron_3 to Nef_Polyhedron_3, SHYAM SUNDAR KANNAN, 12/22/2015

Archive powered by MHonArc 2.6.18.

Top of Page