Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] OFF to PNG

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] OFF to PNG


Chronological Thread 
  • From: "Felipe de Jesus Trujillo Romero" <>
  • To:
  • Subject: Re: [cgal-discuss] OFF to PNG
  • Date: Mon, 10 Sep 2012 15:58:02 -0500

Hi all,

I not agree with your comments 'cause the convertion of a file OFF (3D data) toward a PNG (2D data) it not possible; unless you want a capture of the tridimentional representation of OFF format into an image PNG or a projection of the 3D  to 2D.

bye


Felipe Trujillo-Romero
PhD. Sistemas Informáticos
Universidad Tecnologica de la Mixteca
México



On Mon, 10 Sep 2012 22:56:30 +0200, David Canino wrote
> Good morning,
>
> the member function I mentioned saves the content of the frame buffer, so first you load and draw your shape, and then save the content of the current frame. It is a common practice in any program exploiting the QT Library.
>
> Best regards
>
> David Canino
>
> 2012/9/10 Noel Warren <>
>
Sounds promising. I haven't used the Qt library but I know that you add your widgets and then execute the app.  Would I have to execute the app before being able to toy around with the view of the widget, or could I create my images without executing the app?
>
> 2012/9/10 David Canino <>
>
Good morning,
>
> I know that this feature is present in the QGLWidget class (QT Library). Basically, you can save the content of the frame buffer on a file in any format you want (OFF, PNG, and so on). You must see, for instance, QImage QGLWidget::grabFrameBuffer(bool withAlpha=false) member function. You can find documentation at http://doc.trolltech.com/4.5/qglwidget.html#grabFrameBuffer (also for any newest QT Library).
>
> Best regards
>
> David Canino

>
> 2012/9/10 Noel Warren <>
>
I have a Nef_Polyhedron_3.  I would now like to obtain a few image files from it, you know, top, bottom from an angle.  I know there is a Qt widget for visualizing Nefs but that's not really what I want.  I was hoping that someone in the community would know of some application/framework that would take an OFF (I would obtain this in CGAL) file or STL file or something, a few arguments and generate a png file or a stream of bitmap data,
>
> I think I'm being a little too optimistic in thinking that there might be something out there ready for me to use.  I know this question is not entirely bound to CGAL but I was hoping someone might know of some library.  What I am essentially doing is projecting.

>

>







Archive powered by MHonArc 2.6.18.

Top of Page