Take a look on the meshing examples [1] Probably # 2D a2dHypothseis = StdMeshers_QuadranglePreference(2,0,aMeshGen) #define the boundary a2dAlgo = StdMeshers_Quadrangle_2D(3,0,aMeshGen) # the 2D mesh
Is what your looking for. -jelle [1] https://github.com/tpaviot/pythonocc/blob/master/src/examples/Level2/FEM/linear_elasticity.py On Sat, Sep 1, 2012 at 2:48 PM, 张玉婷 <yuting.zhang...@gmail.com> wrote: > Hello, > > I am trying to read the nodal coordinates and the elements with their > respective nodes to variables. I know in Salome it is possible to use * > Mesh.GetNodeXYZ()* and *Mesh.GetElemNodes()*. Are their such commands > available in pythonOCC? > > I tried the Q*uickTriangleMesh**()* which mentioned > https://github.com/tpaviot/pythonocc/blob/master/src/addons/MSH/Mesh.py. > However, I have used the SMESH (Salome) in pythonOCC to mesh with quads > and triangular. Unfortunately, Mesh.py only offer the triangular mesh. Is > there any examples or functions that I can do the meshing with quads in > PythonOCC? > > Thanks. > > > > _______________________________________________ > 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