Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)


Chronological Thread 
  • From: Ramin H <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Help: how to load 3D tet mesh from file into c3t3 (sorry if noob)
  • Date: Fri, 2 Apr 2010 05:06:38 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=q5WCzu9mn0OQkwBaapMvbUpoUVDZwP75BLWJ+Jb5RxEcoSHIdy8C69O4eJ+561rst4 KWvG+oMvS9XnV0ZTX5TsmhVJfnVXUXu3o44PHVZNcWQw/8oLDCqRhz5/aoMfGlN58mks oQL6iYJaDJ6X2EH912cTvwN693z9ahEH1JoMw=

Here are the typedefs:

    typedef CGAL::Exact_predicates_inexact_constructions_kernel K;

    typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> Geom_traits;
    typedef CGAL::Polyhedron_3<Geom_traits> Polyhedron;
    typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, Geom_traits> Mesh_domain;

    // Triangulation
    typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
    typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;

-Ramin

On Fri, Apr 2, 2010 at 4:47 AM, Laurent Rineau (GeometryFactory) <> wrote:
On Friday 02 April 2010 10:27:36 Ramin H wrote:
> Hi,
>
> I used this method to write/read C3T3 triangulations.
> - First I write the triangulation to "out_1.c3t3" file, it looks fine.
> - Then I read back the saved file into a C3T3 object and save back to
> "out_2.c3t3" file.
>
> Comparing "out_1.c3t3" and "out_2.c3t3" (both files are attached to the
> message) shows that indexes at the end of the files are different. In the
> second one, all indexes are set to zero.
>
> 1. Any idea why this is happening?
> 2. What are these index numbers?

I have an idea of what happened. I have discovered that the operator<< and
operator>> of mesh vertex|face type are not well maintained.

Can you show the typedefs that defined the type of c3t3?

--
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://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page