Re: [Pythonocc-users] Performance issue with large points model

2010-12-17 Thread Henry Bonette
I am already giving a list to the displayShape ... What else can I do to display the pts in "one go" ?? Furthermore, I am talking about the Viewport performances (Zoom Pan Rotate), does it have sthg to do with the DisplayShape Function ? I guess not ... -- CODE pt = gp_Pnt (

Re: [Pythonocc-users] Performance issue with large points model

2010-12-16 Thread Henry Bonette
Thanks Thomas, that works ! The problem is still the performances of the Viewport ( Zoom Pan Rotate). They are as slow as the first CADs at the begining of the 80s. On the same PC (win XP), Catia V5 can handle large models, other CADs read the same file of 20 000 pts and zoom pan rotate like if it

Re: [Pythonocc-users] Performance issue with large points model

2010-12-15 Thread Thomas Paviot
Hi Henry, Try this one, with the third line of your sample code modified as follows: pt = gp_Pnt ( coord_x, coord_y, coord_z ) pt_brep = BRepBuilderAPI_MakeVertex ( pt ) liste.append ( pt_brep.Shape() ) # the Shape() method returns a TopoDS_Shape instance display.DisplayShape( liste

Re: [Pythonocc-users] Performance issue with large points model

2010-12-15 Thread Henry Bonette
Thanks much for your answer! I don 't manage to pass the vertex_list to the display.DisplayShape, I get following error message ( I gave a look in the OCCViewer.py and AIS.py but since I am new in Python I couldn t solve the prob ) ERROR: Traceback (most recent call last): File "D:\DATA_PYTHON_

Re: [Pythonocc-users] Performance issue with large points model

2010-12-13 Thread jelle feringa
Hi, You are updating the viewer for each vertex, which is catastrophic for performance. First build your vertices and give the list as an argument to display.DisplayShape( your_vertex_list_here ). That should help. -jelle On Mon, Dec 13, 2010 at 5:13 PM, Henry Bonette wrote: > Hello the communi

[Pythonocc-users] Performance issue with large points model

2010-12-13 Thread Henry Bonette
Hello the community, I am new here and started a project, whose purpose is first to deal with a cloud of points. 100 000 points at least is quite usual for measuring systems. Also the points should be selectable (even if it is only in a defined or selected area). Using following code, the perform