Hi All,
I need to load a dxf file and show it in the glcanvas window.I want to use the dxfimp32.flt.I dont know wat this does and how to import into my program.I am completely unaware of this .flt.Please help me how to import this filter in the program and show the dxf file in glcanvas window.
Thanks in advance,
Mohan.
Help in importing dxfimp32.flt file Topic is solved
-
- I live to help wx-kind
- Posts: 196
- Joined: Tue Dec 07, 2004 8:54 pm
- Location: Essen, Germany
As I understand your task is to show a 3D objects from a DXF file. If so, then the dxfimp32.flt using is not a solution for you, because it works only 2D geometry.
To import 3D graphics you have to use a 3D modeling library, for instance, OpenCASCADE ( www.opencascade.org ).
To import 3D graphics you have to use a 3D modeling library, for instance, OpenCASCADE ( www.opencascade.org ).
-
- I live to help wx-kind
- Posts: 196
- Joined: Tue Dec 07, 2004 8:54 pm
- Location: Essen, Germany
I cannot help you with dxfimp32.flt. If your are going to use dxfimp32.flt, try to find information regarding it in MSDN. It is possible to use OpenGL even to display 2D models.mohan wrote:Hi megabyte,
Thanks for your reply.I am showing only 2d model.can you please tell me wat this dxfimp32.flt does and how it will help me in showing the 2d model.Do i also need opengl for showing 2d model?
IMHO it is easier to use any DXF-parser library, for instance DXFLIB ( http://www.ribbonsoft.com/dxflib.html ) to parse a DXF file. After it you have a list of objects (lines, circles, splines and so on) and you are free to use any tool/library to display the list inside a window. It can be GDI, OpenGL and do on. Also for nice smooth 2D graphics is possible to use the Anti-Grain Geometry library ( www.antigrain.com ) to render the objects.