Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Crash by transforming Polyhedron_3 to Nef_Polyhedron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Crash by transforming Polyhedron_3 to Nef_Polyhedron_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Crash by transforming Polyhedron_3 to Nef_Polyhedron_3
  • Date: Thu, 22 Oct 2015 11:04:56 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:Pvra+xCr0tOmlWyhrFAiUyQJP3N1i/DPJgcQr6AfoPdwSP79o8bcNUDSrc9gkEXOFd2CrakU1qyO7+u4CCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTqkbjusMWCKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxcK08CLBZFz87KHsd5cvxtBCFQxHcyGEbVzBcqRdCChPZ7Rz8FrP2qCr9qqI99ySdOMDqV6EaUD++6L16CVWg3DwDMCQ4932Rj8hYg6dSoRbnrBt6ld2HKLqJPeZzK/uONegRQnBMC55c
  • Organization: GeometryFactory

No sorry no idea, I can load your input without problem as a Nef
polyhedron.

Sebastien.

On 10/22/2015 10:14 AM, Kneuss Gilles wrote:
Sebastien,

I construct a simpler forme (a cube).

The screenshot look like this :

Giving a (simple) program you can compile will bring me hours of work !

Don’t you have a clue/a beginning of a clue, despite ?

Gilles

-----Message d'origine-----
De :

[mailto:]
De la part de Sebastien Loriot
(GeometryFactory)
Envoyé : jeudi 22 octobre 2015 09:55
À :

Objet : Re: [cgal-discuss] Crash by transforming Polyhedron_3 to
Nef_Polyhedron_3

I don't understand.

In your first bug report you showed a screenshot that has nothing to do
with the input you provide in your latest message.

Could you please provide a minimal and complete program I can compile
and run, and that is showing the problem?

Thanks,

Sebastien.

On 10/22/2015 09:50 AM, Kneuss Gilles wrote:

> Sebastien,

>

> It's created inside the application, I do not save it to a file...

>

> After constructing a simple cube, this portion of code :

>

> voidPolyhedron_ac::/essai/(){

>

> Facet_const_iteratorf;

>

> intfacesN;

>

> facesN=1;

>

> for(f=facets_begin();f!=facets_end();f++){

>

> qDebug()<<"Face#"<<facesN++;

>

> //onparcourslespointsdelaface

>

> HF_circulatorhe=f->facet_begin();

>

> do{

>

> qDebug()<<"x:"<<CGAL::to_double(he->vertex()->point().x())

>

> <<";y:"<<CGAL::to_double(he->vertex()->point().y())

>

> <<";z:"<<CGAL::to_double(he->vertex()->point().z())<<";";

>

> }

>

> while(++he!=f->facet_begin());

>

> }

>

> if(this->is_closed()){

>

> Nef_polyhedrontempo(*this);//hereit'scrashing!

>

> }

>

> }

>

> //

>

> …gives this output, just before it crashes :

>

> Face # 1

>

> x : -5 ; y : -5 ; z : 0 ;

>

> x : -5 ; y : 5 ; z : 0 ;

>

> x : 5 ; y : 5 ; z : 0 ;

>

> x : 5 ; y : -5 ; z : 0 ;

>

> Face # 2

>

> x : 5 ; y : -5 ; z : 10 ;

>

> x : 5 ; y : 5 ; z : 10 ;

>

> x : -5 ; y : 5 ; z : 10 ;

>

> x : -5 ; y : -5 ; z : 10 ;

>

> Face # 3

>

> x : 5 ; y : 5 ; z : 0 ;

>

> x : 5 ; y : 5 ; z : 10 ;

>

> x : 5 ; y : -5 ; z : 10 ;

>

> x : 5 ; y : -5 ; z : 0 ;

>

> Face # 4

>

> x : -5 ; y : 5 ; z : 0 ;

>

> x : -5 ; y : 5 ; z : 10 ;

>

> x : 5 ; y : 5 ; z : 10 ;

>

> x : 5 ; y : 5 ; z : 0 ;

>

> Face # 5

>

> x : -5 ; y : -5 ; z : 0 ;

>

> x : -5 ; y : -5 ; z : 10 ;

>

> x : -5 ; y : 5 ; z : 10 ;

>

> x : -5 ; y : 5 ; z : 0 ;

>

> Face # 6

>

> x : 5 ; y : -5 ; z : 0 ;

>

> x : 5 ; y : -5 ; z : 10 ;

>

> x : -5 ; y : -5 ; z : 10 ;

>

> x : -5 ; y : -5 ; z : 0 ;

>

> *Le programme s'est terminé subitement.*

>

> **

>

> //

>

> Gilles//

>

> -----Message d'origine-----

> De :


<mailto:>

>
[mailto:]
De la part de Sebastien Loriot

> (GeometryFactory)

> Envoyé : jeudi 22 octobre 2015 09:00

> À :


<mailto:>

> Objet : Re: [cgal-discuss] Crash by transforming Polyhedron_3 to

> Nef_Polyhedron_3

>

> On 10/22/2015 08:42 AM, Gilles wrote:

>

> > Hello Sébastien,

>

> >

>

> > I can share anything !

>

> > What do you need ?

>

> >

>

> the input polyhedron.

>

> Sebastien.

>

> > Gilles

>

> >

>

> >

>

> >

>

> > --

>

> > View this message in context:

>

> >

> http://cgal-discuss.949826.n4.nabble.com/Crash-by-transforming-Polyhed

>

> > ron-3-to-Nef-Polyhedron-3-tp4661258p4661261.html

>

> > Sent from the cgal-discuss mailing list archive at Nabble.com.

>

> >

>

> --

>

> You are currently subscribed to cgal-discuss.

>

> To unsubscribe or access the archives, go to

> https://sympa.inria.fr/sympa/info/cgal-discuss

>

--

You are currently subscribed to cgal-discuss.

To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/Nef_polyhedron_3.h>
#include <CGAL/IO/Nef_polyhedron_iostream_3.h>

#include <iostream>
#include <fstream>

typedef CGAL::Exact_predicates_exact_constructions_kernel  Kernel;
typedef CGAL::Polyhedron_3<Kernel>  Polyhedron;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;

int main(int, char *argv[]) {
  std::ifstream off(argv[1]);
  Polyhedron p;
  off >> p;
  Nef_polyhedron n(p);

  std::ofstream output("out.nef");
  output << n;
}

Attachment: cube.off
Description: model/geomview-off




Archive powered by MHonArc 2.6.18.

Top of Page