Subject: CGAL users discussion list
List archive
- From: Michael Bieri <>
- To:
- Subject: Re: [cgal-discuss] 3D Mesh: Medit files become critically large...
- Date: Thu, 24 Aug 2017 11:41:17 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:kKBYIhVFHmDWRE9hlWd4Z178LYjV8LGtZVwlr6E/grcLSJyIuqrYZhWGt8tkgFKBZ4jH8fUM07OQ6P+wHzFYqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aSV3CMxFoLLH1BpLKlJbwkPuj/oXaJQROnju0J71oaw6nqB3Y8cgQj4wlIak4zl7Fo2BDZv9Nll9vcFmclhK56sar94N46AxRvegg/ohOS/bUZaM9GJlZBzQvPmR9zszmrxiLGQ6O7HoRSGQ+nR9BAgyD5xb/CMSi+hDmv/ZwjXHJdfb9Sqo5DGyv
Thanks Laurent for your answer.
Writing the file seems to work, but first of all, the file is even larger than the ASCII medit format. Second, I have no idea about the file format. As far as I see it just writes the internal binary representation into a file? I guess that's not easy to process with a program outside of the CGAL world?
Best regards,
Michael
On Wed, Aug 23, 2017 at 4:49 PM, Laurent Rineau (CGAL/GeometryFactory) <> wrote:
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/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] 3D Mesh: Medit files become critically large..., Michael Bieri, 08/23/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Laurent Rineau (CGAL/GeometryFactory), 08/23/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Michael Bieri, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Benjamin Kehlet, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Laurent Rineau (CGAL/GeometryFactory), 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Michael Bieri, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Benjamin Kehlet, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Laurent Rineau (CGAL/GeometryFactory), 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Michael Bieri, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Michael Bieri, 08/24/2017
- Re: [cgal-discuss] 3D Mesh: Medit files become critically large..., Laurent Rineau (CGAL/GeometryFactory), 08/23/2017
Archive powered by MHonArc 2.6.18.