Thread: [Pythoncad-developer] View application for the new kernel
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Gertwin G. <ger...@gm...> - 2010-03-18 22:15:02
|
Hi all, I just added a view application for the new kernel to the repository. I is written in wxPython and is far from complete. In the end this application has to become version R38 (if performance tests succeed). Drawing is done with a standard wxPython drawing functions, no cairo, no OpenGL. Functionality: 1. open a database. 2. rebuild the spatial index (RTree) in the database. 3. regenerate the drawing = rebuild the display list. 4. redraw the display list. 5. zoom all = set up view translation and redraw the display list. Use zoom all after resizing the application window to get an idea of the performance. I did not yet optimize anything. After optimizing it will (should) be faster than it is now. Drawing is done directly to screen, I need to draw to a "in memory" bitmap and show this bitmap on screen. All entities are drawn, even if they are outside the viewport. If someone have some time to create a larger database I can do some performance tests. Maybe it is not so handy to have such a large database in git. Regards, Gertwin |
From: Matteo B. <mat...@bo...> - 2010-03-19 10:57:37
|
Hi Gertwin, I did some test importing the dxf file .. The Redraw and the Regen are very fast .. The index creation takes to match time .. we can do some more on this ? > If someone have some time to create a larger database I can do some > performance tests You can use the Import function From test_kernel.py and read an dxf file .. I had load the "8th floor furniture.dxf" and the "jettrainer.dxf" for doing my test .. As Alternatively you can implement an import function to easily load a dxf file ..The kernel already support this feature . Regards, Matteo On Thu, 2010-03-18 at 23:14 +0100, Gertwin Groen wrote: > Hi all, > > I just added a view application for the new kernel to the repository. > I is written in wxPython and is far from complete. > In the end this application has to become version R38 (if performance > tests succeed). > Drawing is done with a standard wxPython drawing functions, no cairo, no OpenGL. > > Functionality: > 1. open a database. > 2. rebuild the spatial index (RTree) in the database. > 3. regenerate the drawing = rebuild the display list. > 4. redraw the display list. > 5. zoom all = set up view translation and redraw the display list. > Use zoom all after resizing the application window to get an idea of > the performance. > > I did not yet optimize anything. > After optimizing it will (should) be faster than it is now. > Drawing is done directly to screen, I need to draw to a "in memory" > bitmap and show this bitmap on screen. > All entities are drawn, even if they are outside the viewport. > > If someone have some time to create a larger database I can do some > performance tests. > Maybe it is not so handy to have such a large database in git. > > Regards, > Gertwin > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pythoncad-developer mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > |
From: Matteo B. <mat...@bo...> - 2010-03-19 11:39:37
|
Hi Gerwin, I have added the import functionality at the Interface under file->import so now you can import any dxf and make all the test .. I will add all the test_kernel functionality in the user interface .. so we can test all the new feature .. Regards, Matteo On Fri, 2010-03-19 at 11:57 +0100, Matteo Boscolo wrote: > Hi Gertwin, > I did some test importing the dxf file .. > > The Redraw and the Regen are very fast .. > The index creation takes to match time .. we can do some more on this ? > > > If someone have some time to create a larger database I can do some > > performance tests > You can use the Import function From test_kernel.py and read an dxf file .. > I had load the "8th floor furniture.dxf" and the > "jettrainer.dxf" for doing my test .. > As Alternatively you can implement an import function to easily load a > dxf file ..The kernel already support this feature . > > Regards, > Matteo > > > > On Thu, 2010-03-18 at 23:14 +0100, Gertwin Groen wrote: > > Hi all, > > > > I just added a view application for the new kernel to the repository. > > I is written in wxPython and is far from complete. > > In the end this application has to become version R38 (if performance > > tests succeed). > > Drawing is done with a standard wxPython drawing functions, no cairo, no OpenGL. > > > > Functionality: > > 1. open a database. > > 2. rebuild the spatial index (RTree) in the database. > > 3. regenerate the drawing = rebuild the display list. > > 4. redraw the display list. > > 5. zoom all = set up view translation and redraw the display list. > > Use zoom all after resizing the application window to get an idea of > > the performance. > > > > I did not yet optimize anything. > > After optimizing it will (should) be faster than it is now. > > Drawing is done directly to screen, I need to draw to a "in memory" > > bitmap and show this bitmap on screen. > > All entities are drawn, even if they are outside the viewport. > > > > If someone have some time to create a larger database I can do some > > performance tests. > > Maybe it is not so handy to have such a large database in git. > > > > Regards, > > Gertwin > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Pythoncad-developer mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pythoncad-developer mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > |
From: Matteo B. <mat...@bo...> - 2010-03-19 13:11:50
|
Hi Gertwin, I have added the edit menu and the undo/redo command I have made some test but there is some problem when make undo . the viewport.OnPaint function dose not work propely..(hope is this ...) I try to explain it better .. During an undo operation some entity can be deleted .. so the kernel.getEntityFromType('segmen') can have less entity .. or no entity .. so you need to delete from the displayList the entity that are no more visible .. I git the code with the new functionality .. Regards, Matteo On Fri, 2010-03-19 at 12:39 +0100, Matteo Boscolo wrote: > Hi Gerwin, > I have added the import functionality at the Interface under > file->import > > so now you can import any dxf and make all the test .. > > I will add all the test_kernel functionality in the user interface .. so > we can test all the new feature .. > > Regards, > Matteo > > On Fri, 2010-03-19 at 11:57 +0100, Matteo Boscolo wrote: > > Hi Gertwin, > > I did some test importing the dxf file .. > > > > The Redraw and the Regen are very fast .. > > The index creation takes to match time .. we can do some more on this ? > > > > > If someone have some time to create a larger database I can do some > > > performance tests > > You can use the Import function From test_kernel.py and read an dxf file .. > > I had load the "8th floor furniture.dxf" and the > > "jettrainer.dxf" for doing my test .. > > As Alternatively you can implement an import function to easily load a > > dxf file ..The kernel already support this feature . > > > > Regards, > > Matteo > > > > > > > > On Thu, 2010-03-18 at 23:14 +0100, Gertwin Groen wrote: > > > Hi all, > > > > > > I just added a view application for the new kernel to the repository. > > > I is written in wxPython and is far from complete. > > > In the end this application has to become version R38 (if performance > > > tests succeed). > > > Drawing is done with a standard wxPython drawing functions, no cairo, no OpenGL. > > > > > > Functionality: > > > 1. open a database. > > > 2. rebuild the spatial index (RTree) in the database. > > > 3. regenerate the drawing = rebuild the display list. > > > 4. redraw the display list. > > > 5. zoom all = set up view translation and redraw the display list. > > > Use zoom all after resizing the application window to get an idea of > > > the performance. > > > > > > I did not yet optimize anything. > > > After optimizing it will (should) be faster than it is now. > > > Drawing is done directly to screen, I need to draw to a "in memory" > > > bitmap and show this bitmap on screen. > > > All entities are drawn, even if they are outside the viewport. > > > > > > If someone have some time to create a larger database I can do some > > > performance tests. > > > Maybe it is not so handy to have such a large database in git. > > > > > > Regards, > > > Gertwin > > > > > > ------------------------------------------------------------------------------ > > > Download Intel® Parallel Studio Eval > > > Try the new software tools for yourself. Speed compiling, find bugs > > > proactively, and fine-tune applications for parallel performance. > > > See why Intel Parallel Studio got high marks during beta. > > > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > > > Pythoncad-developer mailing list > > > Pyt...@li... > > > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > > > > > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Pythoncad-developer mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pythoncad-developer mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > |