2010/5/25 John Griessen <j...@industromatic.com>

> John Griessen wrote:
> python paf_smesh.py
> > [...] p.Z2 and p.Y2 from 15 to 16
> >     R1 value: 5.4       p.Z2 and p.Y2 from 16 to 17
> >
> > and continues looping.
> >
> > Seems broken?  Is that normal?
>
> After five minutes I got a window with a cylinder boolean subtracted from
> a rect solid.
>
> My 1GHz machine is very slow at this.  Any ideas what to change to get
> speed?
> ipython was maybe two or four times slower...
>
> John
>
>
Hi John,

This behaviour is normal: the paf_smesh.py script uses both PAF and SMESH.
In this script, each time the parameter of the shape is changed, the mesh is
computed and displayed:

for i in range(14,30):
    print 'changed parameter p.Z2 and p.Y2 from %s to %s' % ( i-1, i )
    p.Z2 = i
    p.R1 += 0.2

This is done (30-14)/0.2 = 16*5 = 80 times (mean 80 geometry updates + mesh
computing, in 5 minutes, it's not that bad).

Under windows, the display is refreshed each time the display is updated,
not under Linux or MacOSX.

You can disable this loop (justin comment out the lines) and run this script
from ipython. Then change the parameter Z2 and you'll see the geometry/mesh
update.

Cheers,

Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to