Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Faces listed twice in output mesh files of example mesh_polyhedral_domain

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Faces listed twice in output mesh files of example mesh_polyhedral_domain


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Faces listed twice in output mesh files of example mesh_polyhedral_domain
  • Date: Wed, 12 Dec 2018 17:43:23 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:irSaYBQ798dJe0GLDnMsdD8IhNpsv+yvbD5Q0YIujvd0So/mwa6yYBON2/xhgRfzUJnB7Loc0qyK6/CmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/nzJhMx+jKxVoxyvqBJwzIHWfI6bO+Fzfr/fcN4AWWZNQshcWi5HD4ihb4UPFe0BPeNAooXzulUBswCxChO3BOPzyz9HmHn21rA83eQmCwHG3QsgH84Tu3jQrdv6KqASUeWrw6nU1zXCb/NY1i3h54jUdRAhu/GNUbd+fcHMzkQvDAfFjlKKqYzkODOVyv4Bs22f7+d7WuKvjnQoqwB1ojS12sgsjYzJi5sTx1vZ+yt5x4M1Kse5SE59edOkFoFfuDqBOItyXMwuWX1nuCE/yrAApJW1fzAKxYw5yxLDb/GLaYuF7xL5WOqPPzt0mWhpdbKwihqq80WtyffwWte73VtLtCZJj93Bu34X2xHR6sWKTOZ28F271jaVzQ/T7/lJIUAqmqrfLJ4s2rswmYASsUTHByP3ll/2gLKPekUq+uWl5P7rYrrhpp+bOI90jh/xPr4ylcy4BOQ0KgkOX26F9uSgzLDv41H1TbFQgvA1kqTVqo7WKdoGqqKjAwJY3Z4v6xOlADen1NQYk2MHLFVAeB+flIjpP1bOIOr5Dfe4n1SgijJrx/TdM73uB5XCNHnDkLP7cblh7E5czRI/zcpD6JJMFrEBPPXzV1ftu9zXFBA5NxW4zPvmCNVmyoweRHmPArSCPaPJsV6I4/ovLPOWaI8Uvjb9Mfkl6OT0gX83g19ONZWuiJAYYXT9EvV9KFiCelLthM0AGCEEpFkQVuvv3Re5XDRafGqzUqR0wjYhCYW6RcfsS4eojaCbzQmyFYFRfHEHQBjYCnPvbYSDR7EJbAqdJ8ZglnoPUr33GNxp7g2nqAKvk+kvFeHT4CBN7cuyhugw3PXakFQJzRIxCs2c12+XSGQtxzEHQjY32OZ0pkkvkw7fg5g9uORREJlo390MSh0zbMeOwOlzCtS0UQXELI/QFQSWB+6+CDR0deofht8DZ0EnRoenhxHHmjWwWvobyuDNC5sz/abRmXP2IpQlxg==

OK after checking with the original author, it is expected for coloring in medit.

If you do not want those duplicated triangles, you can do:

CGAL::Mesh_3::output_to_medit<C3T3, true, false>(ostream, c3t3);

Sebastien.

On 12/12/2018 05:17 PM, Dr01TSPC wrote:
Sebastien:

My goal is to generate tet meshes from input surface meshes (tris).
(Actually
my first goal is to use CGAL to clean up the surface meshes, before volume
meshing, but baby steps.)

~~~~~~~~~~~~~~~~
Review of the steps I took:

After installing 4.13, I went to examples/Mesh_3; then executed cmake .,
make.

I then executed ./mesh_polyhedral_domain[_sm], which use(s) elephant.off by
default.

I view the out files - out_1.mesh (say) using either gedit or just less.

The Triangles are all listed twice. In the same node order.

(I made no changes or selections.)

For elephant.off input:
out_1.mesh has 760 Vertices, 3032 Triangles, and 1948 Tetrahedra.
out_2.mesh has 1916 Vertices, 4816 Triangles, and 7507 Tetrahedra.

From those numbers, I would have thought the triangles are the surface
facets.
I have written code that removes the duplicate triangles, in order to view
the
elephant (say) after removing the tets.

I have run mesh_polyhedral_domain[_sm] on my own input surface meshes, and
obtained the same results - double listing of triangles.

Regards,
Tim




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/




Archive powered by MHonArc 2.6.18.

Top of Page