Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D Mesh: Medit files become critically large...

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D Mesh: Medit files become critically large...


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] 3D Mesh: Medit files become critically large...
  • Date: Wed, 23 Aug 2017 16:49:05 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:J6+0/BPm1frElzyRxUkl6mtUPXoX/o7sNwtQ0KIMzox0K/X7rarrMEGX3/hxlliBBdydsK0UzbeO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6a8TWO6msZFRz7cAZ0Pe/oAZX6jsKt1un09YeATR9PgW/3RbpvNhiwsU3rt88biJYqao0e4z+OjXZPfulK33JGLFmPmAztp434qJpq7j5dve5n7c9GXKznV683RLgeCy4pZTNmrPb3vAXOGFPcrkAXVX8bx0JF
  • Organization: GeometryFactory

Le Wednesday, August 23, 2017 4:12:48 PM CEST Michael Bieri a écrit :
> Hi all,
>
> I'm generating meshes with up to several million nodes and save them
> with output_to_medit(medit_file) of
> CGAL::Mesh_complex_3_in_triangulation_3<Tr>.
>
> Since data transfer and reading the files is becoming a bit annoying, I
> wonder how I could save the mesh in a data format more suitable for large
> data, probably a binary format. I briefly browsed through the code and
> documentation, but I didn't find anything to write to binary or to write it
> quickly by myself.
>
> Is there an option, or do I need to write that from scratch?

There are undocumented functions in <CGAL/IO/File_binary_mesh_3.h>. I use
them a lot, and should be reliable. Know issue: once you have loaded a c3t3
from a file, all query to `c3t3.is_in_complex(Edge)` will return `false`,
because that piece of information is not saved in the file.

--
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