X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FellipsoideDefaut.py;h=8e2788dde6bd514703f72a29b7d09128df5d4adf;hp=09ffa807bdf73d5cb0034576ce37ef068d5a4751;hb=HEAD;hpb=5260bd00bd51567f6137d5ea7ae0564464c4290a diff --git a/src/Tools/blocFissure/gmu/ellipsoideDefaut.py b/src/Tools/blocFissure/gmu/ellipsoideDefaut.py index 09ffa807b..1f5e36f3f 100644 --- a/src/Tools/blocFissure/gmu/ellipsoideDefaut.py +++ b/src/Tools/blocFissure/gmu/ellipsoideDefaut.py @@ -1,24 +1,41 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2024 EDF +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# +"""ellipsoide defaut""" import logging import math + from .geomsmesh import geompy from .triedreBase import triedreBase -O, OX, OY, OZ = triedreBase() -# ----------------------------------------------------------------------------- -# --- ellipsoide defaut +O, OX, OY, OZ = triedreBase() -def ellipsoideDefaut(minRad,allonge,rayTore): - """ - Le bloc contenant la fissure est un ellipsoide construit centre a l'origine, +def ellipsoideDefaut(minRad,allonge): + """Le bloc contenant la fissure est un ellipsoide construit centre a l'origine, contenant le tore elliptique de fissure + @param minRad :petit rayon @param allonge :rapport grand rayon / petit rayon - @param rayTore :rayon du tore construit autour de la generatrice de l'ellipse @return ellipsoide (geomObject) """ - logging.info("start") + logging.info("start") boule = geompy.MakeSphereR(2) bouler = geompy.MakeRotation(boule, OY, math.pi/2.0) face = geompy.MakeFaceHW(100, 100, 3)