Hi, Here is the code that I use for meshing. It comes from one of example.
aeroMesh = SMESH_Gen() aMesh = aeroMesh.CreateMesh(0,True) an1DHypothesis = StdMeshers_Arithmetic1D(0,0,aeroMesh) an1DHypothesis.SetLength(50.,False) an1DHypothesis.SetLength(100.,True) an1DAlgo = StdMeshers_Regular_1D(1,0,aeroMesh) a2dHypothseis = StdMeshers_QuadranglePreference(2,0,aeroMesh) a2dAlgo = StdMeshers_Quadrangle_2D(3,0,aeroMesh) aShape=final_geom.Shape() aMesh.ShapeToMesh(aShape) aMesh.AddHypothesis(aShape,0) aMesh.AddHypothesis(aShape,1) aMesh.AddHypothesis(aShape,2) aMesh.AddHypothesis(aShape,3) aeroMesh.Compute(aMesh,aMesh.GetShapeToMesh()) Thanks & Regards Ganesh Bhimrao Patil P Save a Paper , Save a Tree On Mon, Mar 7, 2011 at 11:18 AM, Ganesh Patil <ganeshpatil....@gmail.com>wrote: > Hi, > > I have a solid box with hole of aero wing shape in it. (The hole is not > through; it is blind hole) > I am trying to create quad mesh on all faces but quad mesher is failing on > 2 faces as > 1. The face to which wing is attached (face with hole of aerofoil shape) > 2. face on tip of wing (aerofoil) > > Error messages are : > Quadrangle_2D failed on subshape #4 with error "Face must have 4 sides but > not 2" > Quadrangle_2D failed on subshape #20 with error "Wrong number of wires: > 2" > > Does anyone know, how to fix this? > > Thanks & Regards > Ganesh Bhimrao Patil > > P Save a Paper , Save a Tree >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users