mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 08:20:34 +05:00
Porting to Python 2.6 - add coding page specification for Python scripts
This commit is contained in:
parent
e028757320
commit
30310d58ad
@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -485,6 +485,7 @@ Engines::TMPFile* SMESH_Gen_i::DumpPython (CORBA::Object_ptr theStudy,
|
||||
|
||||
// Add trace of API methods calls and replace study entries by names
|
||||
TCollection_AsciiString aScript =
|
||||
"#!/usr/bin/python\n# -*- coding: iso-8859-1 -*-\n"
|
||||
"### This file is generated by SALOME automatically by dump python functionality of SMESH component\n\n";
|
||||
aScript += DumpPython_impl(aStudy, aMap, aMapNames,
|
||||
isPublished, isValidScript, aSavedTrace);
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,73 +1,75 @@
|
||||
|
||||
import sys
|
||||
import salome
|
||||
import geompy
|
||||
import math
|
||||
import SALOMEDS
|
||||
import SMESH
|
||||
import smesh
|
||||
|
||||
salome.salome_init()
|
||||
aStudyId = salome.myStudy._get_StudyId()
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
global Face_1
|
||||
Face_1 = geompy.MakeFaceHW(100, 100, 1)
|
||||
geompy.addToStudy( Face_1, "Face_1" )
|
||||
|
||||
#smesh.smesh.SetCurrentStudy(aStudyId)
|
||||
import StdMeshers
|
||||
pattern = smesh.GetPattern()
|
||||
Mesh_1 = smesh.Mesh(Face_1)
|
||||
Regular_1D = Mesh_1.Segment()
|
||||
Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
Quadrangle_2D = Mesh_1.Quadrangle()
|
||||
isDone = Mesh_1.Compute()
|
||||
|
||||
# groups creation
|
||||
|
||||
aListOfElems = [ 52, 53, 54, 55, 56, 57,
|
||||
62, 63, 64, 65, 66, 67,
|
||||
72, 73, 74, 75, 76, 77,
|
||||
82, 83, 84, 85, 86, 87 ]
|
||||
|
||||
aRedGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Red" )
|
||||
aRedGroup.Add( aListOfElems );
|
||||
aRedGroup.SetColor( SALOMEDS.Color( 1, 0, 0 ) )
|
||||
|
||||
aListOfElems = [ 55, 56, 57, 58, 59,
|
||||
65, 66, 67, 68, 69,
|
||||
75, 76, 77, 78, 79,
|
||||
85, 86, 87, 88, 89,
|
||||
95, 96, 97, 98, 99,
|
||||
105, 106, 107, 108, 109,
|
||||
115, 116, 117, 118, 119,
|
||||
125, 126, 127, 128, 129 ]
|
||||
|
||||
aGreenGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Green" )
|
||||
aGreenGroup.Add( aListOfElems );
|
||||
aGreenGroup.SetColor( SALOMEDS.Color( 0, 1, 0 ) )
|
||||
|
||||
aListOfElems = [ 63, 64, 65, 66, 67, 68,
|
||||
73, 74, 75, 76, 77, 78,
|
||||
83, 84, 85, 86, 87, 88,
|
||||
93, 94, 95, 96, 97, 98,
|
||||
103, 104, 105, 106, 107, 108,
|
||||
113, 114, 115, 116, 117, 118 ]
|
||||
|
||||
aBlueGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Blue" )
|
||||
aBlueGroup.Add( aListOfElems );
|
||||
aBlueGroup.SetColor( SALOMEDS.Color( 0, 0, 1 ) )
|
||||
|
||||
# UnionListOfGroups()
|
||||
aUnGrp = Mesh_1.UnionListOfGroups([aRedGroup, aGreenGroup, aBlueGroup], "UnionGrp" )
|
||||
|
||||
# IntersectListOfGroups()
|
||||
aIntGrp=Mesh_1.IntersectListOfGroups([aRedGroup, aGreenGroup, aBlueGroup], "IntGrp" )
|
||||
|
||||
# CutListOfGroups()
|
||||
aCutGrp=Mesh_1.CutListOfGroups([aRedGroup],[aGreenGroup,aBlueGroup],"CutGrp")
|
||||
|
||||
salome.sg.updateObjBrowser( 1 )
|
||||
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
|
||||
import sys
|
||||
import salome
|
||||
import geompy
|
||||
import math
|
||||
import SALOMEDS
|
||||
import SMESH
|
||||
import smesh
|
||||
|
||||
salome.salome_init()
|
||||
aStudyId = salome.myStudy._get_StudyId()
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
global Face_1
|
||||
Face_1 = geompy.MakeFaceHW(100, 100, 1)
|
||||
geompy.addToStudy( Face_1, "Face_1" )
|
||||
|
||||
#smesh.smesh.SetCurrentStudy(aStudyId)
|
||||
import StdMeshers
|
||||
pattern = smesh.GetPattern()
|
||||
Mesh_1 = smesh.Mesh(Face_1)
|
||||
Regular_1D = Mesh_1.Segment()
|
||||
Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
Quadrangle_2D = Mesh_1.Quadrangle()
|
||||
isDone = Mesh_1.Compute()
|
||||
|
||||
# groups creation
|
||||
|
||||
aListOfElems = [ 52, 53, 54, 55, 56, 57,
|
||||
62, 63, 64, 65, 66, 67,
|
||||
72, 73, 74, 75, 76, 77,
|
||||
82, 83, 84, 85, 86, 87 ]
|
||||
|
||||
aRedGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Red" )
|
||||
aRedGroup.Add( aListOfElems );
|
||||
aRedGroup.SetColor( SALOMEDS.Color( 1, 0, 0 ) )
|
||||
|
||||
aListOfElems = [ 55, 56, 57, 58, 59,
|
||||
65, 66, 67, 68, 69,
|
||||
75, 76, 77, 78, 79,
|
||||
85, 86, 87, 88, 89,
|
||||
95, 96, 97, 98, 99,
|
||||
105, 106, 107, 108, 109,
|
||||
115, 116, 117, 118, 119,
|
||||
125, 126, 127, 128, 129 ]
|
||||
|
||||
aGreenGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Green" )
|
||||
aGreenGroup.Add( aListOfElems );
|
||||
aGreenGroup.SetColor( SALOMEDS.Color( 0, 1, 0 ) )
|
||||
|
||||
aListOfElems = [ 63, 64, 65, 66, 67, 68,
|
||||
73, 74, 75, 76, 77, 78,
|
||||
83, 84, 85, 86, 87, 88,
|
||||
93, 94, 95, 96, 97, 98,
|
||||
103, 104, 105, 106, 107, 108,
|
||||
113, 114, 115, 116, 117, 118 ]
|
||||
|
||||
aBlueGroup = Mesh_1.GetMesh().CreateGroup( smesh.FACE, "Blue" )
|
||||
aBlueGroup.Add( aListOfElems );
|
||||
aBlueGroup.SetColor( SALOMEDS.Color( 0, 0, 1 ) )
|
||||
|
||||
# UnionListOfGroups()
|
||||
aUnGrp = Mesh_1.UnionListOfGroups([aRedGroup, aGreenGroup, aBlueGroup], "UnionGrp" )
|
||||
|
||||
# IntersectListOfGroups()
|
||||
aIntGrp=Mesh_1.IntersectListOfGroups([aRedGroup, aGreenGroup, aBlueGroup], "IntGrp" )
|
||||
|
||||
# CutListOfGroups()
|
||||
aCutGrp=Mesh_1.CutListOfGroups([aRedGroup],[aGreenGroup,aBlueGroup],"CutGrp")
|
||||
|
||||
salome.sg.updateObjBrowser( 1 )
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# CEA/LGLS 2008, Christian Van Wambeke (CEA/LGLS), Francis KLOSS (OCC)
|
||||
# ====================================================================
|
||||
|
||||
|
@ -1,47 +1,50 @@
|
||||
import sys
|
||||
import salome
|
||||
import geompy
|
||||
import math
|
||||
import SALOMEDS
|
||||
import SMESH
|
||||
import smesh
|
||||
|
||||
salome.salome_init()
|
||||
aStudyId = salome.myStudy._get_StudyId()
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
global Box_1
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
geompy.addToStudy( Box_1, "Box_1" )
|
||||
|
||||
#smesh.smesh.SetCurrentStudy(theStudy)
|
||||
import StdMeshers
|
||||
Mesh_1 = smesh.Mesh(Box_1)
|
||||
Regular_1D = Mesh_1.Segment()
|
||||
Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
Quadrangle_2D = Mesh_1.Quadrangle()
|
||||
Hexa_3D = Mesh_1.Hexahedron()
|
||||
isDone = Mesh_1.Compute()
|
||||
|
||||
### CreateDimGroup()
|
||||
|
||||
aListOf3d_1=range(721,821)
|
||||
|
||||
aGrp3D_1=Mesh_1.GetMesh().CreateGroup( smesh.VOLUME, "Src 3D 1" )
|
||||
aGrp3D_1.Add( aListOf3d_1 )
|
||||
|
||||
aListOf3d_2=range(821, 921)
|
||||
aGrp3D_2=Mesh_1.GetMesh().CreateGroup( smesh.VOLUME, "Src 3D 2" )
|
||||
aGrp3D_2.Add( aListOf3d_2 )
|
||||
|
||||
aGrp2D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.FACE, "Faces" )
|
||||
|
||||
aGrp1D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.EDGE, "Edges" )
|
||||
|
||||
aGrp0D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.NODE, "Nodes" )
|
||||
|
||||
salome.sg.updateObjBrowser( 1 )
|
||||
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
|
||||
import sys
|
||||
import salome
|
||||
import geompy
|
||||
import math
|
||||
import SALOMEDS
|
||||
import SMESH
|
||||
import smesh
|
||||
|
||||
salome.salome_init()
|
||||
aStudyId = salome.myStudy._get_StudyId()
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
|
||||
geompy.init_geom(salome.myStudy)
|
||||
global Box_1
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
geompy.addToStudy( Box_1, "Box_1" )
|
||||
|
||||
#smesh.smesh.SetCurrentStudy(theStudy)
|
||||
import StdMeshers
|
||||
Mesh_1 = smesh.Mesh(Box_1)
|
||||
Regular_1D = Mesh_1.Segment()
|
||||
Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
|
||||
Nb_Segments_1.SetDistrType( 0 )
|
||||
Quadrangle_2D = Mesh_1.Quadrangle()
|
||||
Hexa_3D = Mesh_1.Hexahedron()
|
||||
isDone = Mesh_1.Compute()
|
||||
|
||||
### CreateDimGroup()
|
||||
|
||||
aListOf3d_1=range(721,821)
|
||||
|
||||
aGrp3D_1=Mesh_1.GetMesh().CreateGroup( smesh.VOLUME, "Src 3D 1" )
|
||||
aGrp3D_1.Add( aListOf3d_1 )
|
||||
|
||||
aListOf3d_2=range(821, 921)
|
||||
aGrp3D_2=Mesh_1.GetMesh().CreateGroup( smesh.VOLUME, "Src 3D 2" )
|
||||
aGrp3D_2.Add( aListOf3d_2 )
|
||||
|
||||
aGrp2D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.FACE, "Faces" )
|
||||
|
||||
aGrp1D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.EDGE, "Edges" )
|
||||
|
||||
aGrp0D = Mesh_1.CreateDimGroup( [aGrp3D_1, aGrp3D_2], smesh.NODE, "Nodes" )
|
||||
|
||||
salome.sg.updateObjBrowser( 1 )
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /usr/bin/python
|
||||
# -*- coding: iso-8859-1 -*-
|
||||
# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||
#
|
||||
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||
|
Loading…
Reference in New Issue
Block a user