Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Mesh_3 -> Triangulation_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Mesh_3 -> Triangulation_3


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Mesh_3 -> Triangulation_3
  • Date: Fri, 11 Jan 2019 11:20:50 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:fN942x3nZuod93DXsmDT+DRfVm0co7zxezQtwd8ZseIeK/ad9pjvdHbS+e9qxAeQG9mDu7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmiDkJOSM3/m/Ujcx/jqxbrx2uqRNj2IPUfJybOeBicq/BYd8WW2xMVdtRWSxbBYO8apMCA+QHM+lCson9vUUBrR2iBQKxGO3vyzlIiWHs0q0nzu8tFR/L0g08EtwIq3jarcv6NKAXUe+r0KnI1zXCYfNM1jjh9IjIdQohoPGJUb5+bMHczk0vGBnYjlWKt4PlOS+V2v4Xs2ia6epvS/igi3M8pg5trTig3MMshpPOhoIPxVDJ7CN0y5s7K92/TU50e9+kEJ1Iui6GOIt5WMciT3tvuCYgxb0KoZG7czYNyJQi2RHfd+aHcoiG4h35SOmRPTB4hGhleb6lmxmy9k2gx+vhXce3yFZHtjdJnsfIu3wXyhDe7syKRuF580qgwzqC2Bzf5vlALEwoj6bWKJ8szqQtmpcXsUnPBC/7lUXwgaSLbEsr4PKo5P7iYrj+pp+TKYt0igbmP6QohMO/D/o0PhIQUGid4uSwzrPj/VfhTLVLiP05jLXZvYjHKcgFoqO1GRJZ34In5hqlCzqr0c4UkHYbIF5dfRKIlYnpO1XAIPDiCve/hkyhkDNxyPDbJL3uHJPNLmTZnLf7fLZ97VBTxxAuzd1E+51UBasOIPbpVk/2rtzYAQc1MxaozOb/FNV9yoQeVHqTDa+WKqzStUaE6f8uI+mXeIAVpS39K+M+6v71jX45nEcdcrOz0ZsWbnC4BPVmLF+DbXrimNdSWVsN6wExReivhFyZWiNIfF6zWbg973c1EtGIF4DGE8qJiaGb0SGnVqdXYG1PFxjMOljBU8KrVvAJZT6IM+FomSADT6ngAcd10RizrgL81/x9L+zZ8zAwvp3q0J5y/eKFxkJ6ziB9E8nIizLFdGpzhG5dH2ZnjpA6mlR0zxK46YY9hvVZEdJJ4PYQClUxOpfYietgBIKpA16TTpKyUF+jB+6eL3QpVNtom40FbE95XdK4gUKbhnf4M/ouj7WOQacM3Ofc0nz2fp0vzXvIju8siUJgTNEdbWA=
  • Organization: GeometryFactory

On Thursday, January 10, 2019 9:25:39 AM CET Marc Alexa wrote:
> Thank you so much! The code runs fine. But my main problem remains: the
> triangulation in c3t3.triangulation contains more cells than the interior
> triangulation of the object.
>
> If you add the lines
>
> std::cerr << "Number of cells in c3t3: " << c3t3.number_of_cells() <<
> std::endl; std::cerr << "Number of finite cells in t: " <<
> t.number_of_finite_cells() << std::endl;
>
> to your code you see. this. I had hoped if I take a convex surface there
> would be no difference, because there is no necessity for tetrahedra on the
> outside, but this is still not true. If you create a mesh for a sphere, the
> numbers will still be different.

There is no valid solution to that problem, unless your own `Triangulation_3`
type keeps a Boolean field for each cell, indicating whether or not the cell
is part of the mesh.

When the cell converter must be wrote that way:

Cell_converter
{
Triangulation::Cell operator()(const C3t3::Triangulation::Cell& input_cell)
const {
Triangulation::Cell output_cell;
output_cell.is_in_domain = ( input_cell.subdomain_index() != 0 );
return output_cell;
}

void operator()(const C3t3::Triangulation::Cell&,Triangulation::Cell&)
const
{}
};



--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/






Archive powered by MHonArc 2.6.18.

Top of Page