Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image


Chronological Thread 
  • From: gori23 <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL Problem when generating mesh (make_mesh_3) from segmented 3d image
  • Date: Tue, 17 Jan 2017 08:27:00 -0800 (PST)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:FIr9PRc/Pi6OJ4kua1Jk3AkxlGMj4u6mDksu8pMizoh2WeGdxcu9bR7h7PlgxGXEQZ/co6odzbGH7+a7BidQsd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Ixi6twvcu8sZjYZhKas61wfErGZPd+lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLeTQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgzoBOjUk8m/Yl9ZwgbpVrhyhuRJxwIzbYI+IOvVxYqzTcsgXRXZDU8tLSyBNHp+wY5UJAuEcPehYtY79p14WoBuxAgmsHuLvxiFGi3Tr2qA6yOMhHh/c0Aw7A9IOqm7brMjuNKcJSu21w6zIwi/Cb/NSwzvy9I/IchU4rPyKQLl+f83RyUw1GAPEiFWdsYrlMCmO2esWt2iU8fBsWv6oi24isw1+vjevyd0oioXTgYIV0F/E+CNky4g2Pd21UFN3bN+6HJdKqS2XN4V7Ttk/T2xmtis20LILtJCjcCQXyZkr2QTTZ+KHfoWG+B7vSeicLDliiH9ler+ygQu5/1K6xe3mTMa01U5HripbndnIsXAAzxnT68aASvtn/UetwzCP2BrI5e5fJUA7i7DXJIImwr41jpYTsELDETHqmEjukaObd1so9vK25+nnbLjqvIKQOoF6hw3kPakjlNSzAeEiPQgPW2ib9/681Lrm/UDhW7VKieM5nrPCsJDGP8QUvLO5AxRO0os45Ba/Ci2p0NUcnXUdMF1FfxeHg5DzO17SOPD4Eeu/g1O0nTh3yPDJJLnhDozQIXjCi7fuYat961VHyAco1tBe55dUCqkbL/7pW0/xssbYDh4jPACuzebnEoY16oRLUm2GBuqVMbjZrESTzuMpOeiFIoEP6xjnLP1w6Pn0jCVi0QsGeqTvxocNYW2jBdxpJkyYZTznhdJXQjRChRY3UOG/0A7KajVUfXvnB68=

Hi,

I recently came back to this project (which I didn't continue due to above
problem).

I now also tried the example code of the random_labeled_image.
(http://doc.cgal.org/latest/Mesh_3/Mesh_3_2random_labeled_image_8h-example.html)

But whatever setting or method I'm using to create or fill the Image_3
object my program always gets stuck (it doesn't get past this line) at
make_mesh_3.

To give you a bit more code:

// here I tried to create an empty image, but as written above I tried
many different things to get an Image_3 object, empty or filled
_image* image11 = _createImage(dim, dim, dim, 1, 1.f, 1.f, 1.f, 1,
WK_FIXED, SGN_UNSIGNED);
unsigned char* ptr = (unsigned char*)(image11->data);
std::fill(ptr, ptr+dim*dim*dim, '\0');
CGAL::Image_3 im11(image11);

// set it as domain
Mesh_domain domain(im11);

// create the mesh
cout << "now make mesh" << endl;
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_perturb(),
no_exude(), odt());
cout << "CGAL mesh" << endl;


There is one thing that works (and only this). image.read(filename), with
the liver_gallbladder sample file.
However, files generated by random_labelled_image again have that problem
and get stuck

Maybe somebody has another idea on what to try? What is so special about the
liver_gallbladder file?


Best Regards



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-Problem-when-generating-mesh-make-mesh-3-from-segmented-3d-image-tp4661387p4662472.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page