Hi Vin,

I can reproduce the 2 issues your report.

I have no explanation about the GeomAPI_IntSS issue. It may come from some
changes to OCE between releases 0.11 and 0.12. Your test case may have to
be reduced to some atomic code, ported to C++ and integrated into the OCE
test suite.

The unittest issue is related to the fact that the '==' operator is
overloaded twice (one in the wrapper, the second in the kbe module, that
was recently updated by Jelle). I will fix it easily.

Thank you for your feedback,

Thomas

2013/5/7 Vin Yovanovich <fracta...@hotmail.com>

> I ran this new distribution on my previous code (which works with OCE11
>  and master as of Jan_7_2013)  and noticed that something is not working
> with GeomAPI_IntSS() now (at least for me), so here is a simple test to be
> placed into geometry_demos.py to see if anybody else is getting this:
>
>
> def generCurve(crv):
>     array=[]
>     for p in crv:
>         array.append(gp_Pnt(p[0],p[1],p[2]))
>
>     start_tangent=gp_Vec(array[0],array[1])
>     end_tangent=gp_Vec(array[-2],array[-1])
>
>
> SPL1=Common.interpolate_points_to_spline(array,start_tangent,end_tangent)
>
>     return SPL1
>
> def getSurface(SPL1,SPL2):
>     aGeomFill1 = GeomFill_BSplineCurves(SPL1,
>                                         SPL2,
>                                         GeomFill_StretchStyle)
>
>     aBSplineSurface1 = aGeomFill1.Surface()
>
>     return aBSplineSurface1
>
> def test_intersections(even=None):
>
>     crv1=[(0,0,1),(0,.25,1),(0,.75,1),(0,1,1),(0,1.25,1)]
>     SPL1=generCurve(crv1)
>
>     crv2=[(0,0,0),(0,.25,0),(0,.75,0),(0,1,0),(0,1.25,0)]
>     SPL2=generCurve(crv2)
>
>     crv3=[(-1,0,0.5),(-1,.25,0.5),(-1,.75,0.5),(-1,1,0.5),(-1,1.25,0.5)]
>     SPL3=generCurve(crv3)
>
>     crv4=[(1,0,0.5),(1,.25,0.5),(1,.75,0.5),(1,1,0.5),(1,1.25,0.5)]
>     SPL4=generCurve(crv4)
>
>     s1=getSurface(SPL1,SPL2)
>     display.DisplayShape(make_face(s1),update=True)
>     s2=getSurface(SPL3,SPL4)
>     display.DisplayShape(make_face(s2),update=True)
>
>     Intrc=GeomAPI_IntSS(s1,s2,1.0e-7)
>
>     print "Intrc.IsDone()=",Intrc.IsDone()
>     print "Intrc.NbLines()=",Intrc.NbLines()
>
>     iNtrsction=Intrc.Line(1)
>
>
> The result I get is:
>
> Intrc.IsDone()= 1
> Intrc.NbLines()= 0
> Traceback (most recent call last):
>   File "my_geometry_demos.py", line 1108, in test_intersections
>     iNtrsction=Intrc.Line(1)
> RuntimeError: Standard_OutOfRange
>
> The screen shows that obviously an intersection exists, so the number of
> lines should be 1.
>
> Also,   unittests  on my Windows 7 64 bit machine give:
>
> ======================================================================
> ERROR: test that the == wrapper is ok
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "D:\pythonOCC4OCE12\src\unittest\wrapper_features_unittest.py",
> line 281, in testHashEqOperator
>     res = items.index(line)
>   File "d:\Python26\lib\site-packages\OCC\Utils\Construct.py", line 87, in
> gp_Pnt_equal
>     return self.IsEqual(other, TOLERANCE)
> TypeError: in method 'gp_Pnt_IsEqual', argument 2 of type 'gp_Pnt const'
>
> ======================================================================
> ERROR: test_pnt (kbe_unittest.TestVertex_Point)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "D:\pythonOCC4OCE12\src\unittest\kbe_unittest.py", line 88, in
> test_pnt
>     self.assertEqual(v1,pnt)
>   File "d:\Python26\lib\unittest.py", line 348, in failUnlessEqual
>     if not first == second:
>   File "d:\Python26\lib\site-packages\OCC\KBE\base.py", line 158, in __eq__
>     return self.IsEqual(other)
> TypeError: in method 'TopoDS_Shape_IsEqual', argument 2 of type
> 'TopoDS_Shape const'
>
> ----------------------------------------------------------------------
> Ran 79 tests in 2.346s
>
> FAILED (errors=2)
>
>
>
>
>
> ------------------------------
> From: tpav...@gmail.com
> Date: Mon, 6 May 2013 14:28:44 +0200
> To: pythonocc-users@gna.org
> Subject: [Pythonocc-users] pythonocc-0.6-beta tagged
>
>
> Hi,
>
> After a lot of Jelle's recent work was merged, I tagged
> pythonocc-0.6-beta. Here is a summary of recent changes:
>
> CHANGES FROM 0.6-alpha2 to 0.6-beta
> - massive examples clean-up and fixes
> - improvements to the KBE subpackage
> - fixes and improvements to the viewer
> - updated trait support to 4.3
> - removed outdated 3d graphic
> - webgl renderer fixes and improvements
> - DYN additions and fixes
> - fixes/improvements to the Utils subpackage
>
> Source archives (zip, tar.gz) and precompiled binaries for win32/py27
> available at https://code.google.com/p/pythonocc/downloads/list. OCE-0.12
> is required, available at
> https://code.google.com/p/oce-binaries/downloads/list.
>
> As usual, report issues/patches at https://github.com/tpaviot/pythonocc.
>
> Regards,
>
> Thomas
>
>
> _______________________________________________ Pythonocc-users mailing
> list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to