Subject: CGAL users discussion list
List archive
- From: lulu5 <>
- To:
- Subject: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton
- Date: Wed, 16 Oct 2019 13:43:45 -0500 (CDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:f570mhxKxEyRX6zXCy+O+j09IxM/srCxBDY+r6Qd1OoVIJqq85mqBkHD//Il1AaPAdyAra0ZwLON6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVijexe7F/IRW5oQnMuMQanZZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8J+jKxVvhGvqQFwzIHIb4+YL+Z+c6HBcd8GWWZNQthdWipcCY28dYsPCO8BMP5cr4ngo1sOsBuzDhSrCeLv1jBHnmP53a0g3OQnHgHLxxEgH84Qv3Xbttr1L70eXv6ow6nV1DjOae5d1zn66IjNaB8hoPeMUKp2ccXL0kYgDAfFgUuKpYP5ODOV0+IAuHWY4ep4Te+jlmoqpgVrrjWhxcogkIrEi4MPxl3F9Ch0xps+K8eiR05he9GkFYNdtyGEOItyRcMvW2dotSkgxr0Ao5G0ZzMFyJA5yBLFd/OHdI2I7griVOaXPzh4mGpodK+7ihu260StxO7xWtO33VtLtCZIk9jBumgI1xPJ68iHTvV9/l2m2TaKzw3S6v1LLlgomqrbMZEhxLEwm4EOsUTfACD3l1/5jLSMeko65+eo9vzrYq/6qZ+EK490lgb+P7wylcywG+s4NhECUHWa+eSnyLLj4Fb5QK5Rg/0tkqjZtYjaKt4Bqq64BQ9VyIcj5AylAzeoytRL1UUAeVlKcRbCg4nyMEzVO9j5C+2+ihKiimRF3ffDa7n8BoiQZizSm4Dqfb975GZB1AcjxMsZ6p5JXOJSaMnvU1P84YSLRiQyNBa5lr6+VIdNk7gGUGfKOZe3dbvIuAbStP8zLvmFf8kYtCuvc6F0tc6rtmcwnBomRYfs2JIWbH6iGfE/eReEfXf8i8xHHGsX7FFnEb7azWaaWDsWXE6cGqIx4jZiVdCgUcHFT4qnhLHH1yC+TMRb
Dear all,
I am new for CGAL and C++. In my project, I would like to generate the curve
skeleton of closed mesh. Here is my testing codes:
/#define CGAL_EIGEN3_ENABLED
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/extract_mean_curvature_flow_skeleton.h>
#include <CGAL/boost/graph/split_graph_into_polylines.h>
#include <fstream>
#include <boost/foreach.hpp>
typedef CGAL::Simple_cartesian<double> Kernel;
typedef Kernel::Point_3 Point;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
typedef boost::graph_traits<Polyhedron>::vertex_descriptor
vertex_descriptor;
typedef CGAL::Mean_curvature_flow_skeletonization<Polyhedron>
Skeletonization;
typedef Skeletonization::Skeleton Skeleton;
typedef Skeleton::vertex_descriptor
Skeleton_vertex;
typedef Skeleton::edge_descriptor Skeleton_edge;
//only needed for the display of the skeleton as maximal polylines
// This example extracts a medially centered skeleton from a given mesh.
int main(int argc, char* argv[])
{
std::ifstream input((argc > 1) ? argv[1] : "data/hand.off");
Polyhedron tmesh;
input >> tmesh;
if (!CGAL::is_triangle_mesh(tmesh))
{
std::cout << "Input geometry is not triangulated." <<
std::endl;
return EXIT_FAILURE;
}
std::cout << CGAL::is_closed(tmesh) << "\n";
Skeleton skeleton;
CGAL::extract_mean_curvature_flow_skeleton(tmesh, skeleton);
return 0;
}/
It works well with off files provided by CGAL example (for example,
hand.off <http://cgal-discuss.949826.n4.nabble.com/file/t376145/hand.off>
). However, when I create my own geometry ( sweep.off
<http://cgal-discuss.949826.n4.nabble.com/file/t376145/sweep.off> ), it
shows the exception as below:
Exception thrown at 0x000000006AD20FA0 (libgmp-10.dll) in HelloCGAL.exe:
0xC0000005: Access violation executing location 0x000000006AD20FA0.
from CGAL::Mpzf::data() in Mpzf.h
After several testing, I think that it is
CGAL::extract_mean_curvature_flow_skeleton triggers the exception. Does
anyone know how to deal with this issue?
Any help will be greatly appreciated.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, lulu5, 10/16/2019
- Re: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, Sebastien Loriot (GeometryFactory), 10/17/2019
- Re: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, lulu5, 10/17/2019
- Re: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, Sebastien Loriot (GeometryFactory), 10/17/2019
- Re: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, lulu5, 10/17/2019
- Re: [cgal-discuss] Exception Thrown fom extract_mean_curvature_flow_skeleton, Sebastien Loriot (GeometryFactory), 10/17/2019
Archive powered by MHonArc 2.6.18.