Hi Dave, Can you provide the complete code (with the TopoDS shape you want to mesh)? The TopoDS passed to the mesher may have to be healed. I suggest you use the OCC.ShHealOper module ( http://api.pythonocc.org/toc-OCC.ShHealOper-module.html), that comes with GEOM. For instance, the ShHealOper_RemoveInternalWires class may help you.
You can open an issue with your complete code and a screenshot of the shape you want to mesh (http://code.google.com/p/pythonocc/issues/list). Note that in the current svn trunk, pythonOCC is built upon latest GEOM and SMESH (5.1.3) releases. Results thus may differ on my machine. Best Regards, Thomas 2010/3/20 Dave Cowden <dave.cow...@gmail.com> > I have gotten meshing working! That's the good news. > > Bad news is, when i attempted to mesh a face that had an inner hole ( a > two-wire face), I got the error message in the subject. I am unable to > determine if this is something I'm doing wrong, but it seems to imply that > this hypothesis simply does not work on two-wire faces. > > Is this true? > > Here's my mesh code ( mosty from the surface mesh sample ) > > aMeshGen = SMESH.SMESH_Gen() > aMesh = aMeshGen.CreateMesh(0,True > an1DHypothesis = > StdMeshers.StdMeshers_MaxLength(0,0,aMeshGen)#discretization of the wire > an1DHypothesis.SetLength(0.8); > an1DAlgo = StdMeshers.StdMeshers_Regular_1D(1,0,aMeshGen) # > interpolation > > a2dHypothseis = > StdMeshers.StdMeshers_QuadranglePreference(2,0,aMeshGen) #define the > boundary > a2dAlgo = StdMeshers.StdMeshers_Quadrangle_2D(3,0,aMeshGen) > > aMesh.ShapeToMesh(shape) > > aMesh.AddHypothesis(shape,0) > aMesh.AddHypothesis(shape,1) > aMesh.AddHypothesis(shape,2) > aMesh.AddHypothesis(shape,3) > > aMeshGen.Compute(aMesh,aMesh.GetShapeToMesh()) > return aMesh; > > _______________________________________________ > 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