예제 #1
0
def makeMeshGmsh(doc, name="FEMMeshGmsh"):
    '''makeMeshGmsh(document, [name]): makes a Gmsh FEM mesh object'''
    obj = doc.addObject("Fem::FemMeshObjectPython", name)
    from femobjects import _FemMeshGmsh
    _FemMeshGmsh._FemMeshGmsh(obj)
    if FreeCAD.GuiUp:
        from femguiobjects import _ViewProviderFemMeshGmsh
        _ViewProviderFemMeshGmsh._ViewProviderFemMeshGmsh(obj.ViewObject)
    return obj
예제 #2
0
def makeMeshGmsh(doc, name="FEMMeshGmsh"):
    '''makeMeshGmsh(document, [name]): makes a Gmsh FEM mesh object'''
    obj = doc.addObject("Fem::FemMeshObjectPython", name)
    from femobjects import _FemMeshGmsh
    _FemMeshGmsh._FemMeshGmsh(obj)
    if FreeCAD.GuiUp:
        from femguiobjects import _ViewProviderFemMeshGmsh
        _ViewProviderFemMeshGmsh._ViewProviderFemMeshGmsh(obj.ViewObject)
    return obj