Closed SY524044272-python closed 3 years ago
hello,Sebastien Loriot.When I run the program,the . cgal file will be generated successfully under the current directory folder. I think the . cgal file is an intermediate file and will not affect the program operation. But the following lines of code are not working properly:
for (Skeleton_edge e : CGAL::make_range(edges(skeleton))) { const Point& s = skeleton[source(e, skeleton)].point; const Point& t = skeleton[target(e, skeleton)].point; output << "2 " << s << " " << t << "\n"; }
I don't understand why
I don't understand your question. What did not work? The generation of the file or opening it in the demo? Did you generation program ended correctly?
What is your question?
hello,Sebastien Loriot. I think I was a little confused just now. Now the program can run normally, and two cgal type files are generated.
you know,I want to extract the skeleton from the model. Just like the example mentioned in the CGAL document, as shown below. You just gave me a program that can display 3D graphics, and I successfully displayed my model through Polyhedron_3.exe. However, I cannot use it to open *.cgal file,which is the skeleton of my 3D model.as shown below.The problem is shown in the figure below.
Use polylines_io_plugin
in the list or change the extension of the file from .cgal
to .polylines.txt
thank you, sloriot ! I think I have solved this question. By the way, I have another question. if I have a 3D model Point(x,y,z)
but it is so thin that almost a two-dimensional shape. Can I use CGAL::extract_mean_curvature_flow_skeleton()
to extract the skeleton to instead 2D skeleton of this 3D model?
I never tried but you should try and see what it does.
I use
Surface_mesh_skeletonization/simple_mcfskel_sm_example.cpp
as example。 But I found that I cannot output the code in bold font normally。Cannot output normally from the sixth line。 can someone help me ?