Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'OCCT780'
[modules/smesh.git]
/
src
/
Tools
/
blocFissure
/
gmu
/
ellipsoideDefaut.py
diff --git
a/src/Tools/blocFissure/gmu/ellipsoideDefaut.py
b/src/Tools/blocFissure/gmu/ellipsoideDefaut.py
index 47581ad3500dee20d736b5af2873ec4a2156ea6e..1f5e36f3f1e60ddb427d7c6dda0d29cdbe0c8389 100644
(file)
--- a/
src/Tools/blocFissure/gmu/ellipsoideDefaut.py
+++ b/
src/Tools/blocFissure/gmu/ellipsoideDefaut.py
@@
-1,5
+1,5
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
-# Copyright (C) 2014-20
19 CEA/DEN, EDF R&D
+# Copyright (C) 2014-20
24 EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-17,26
+17,25
@@
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+"""ellipsoide defaut"""
import logging
import math
import logging
import math
+
from .geomsmesh import geompy
from .triedreBase import triedreBase
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
contenant le tore elliptique de fissure
+
@param minRad :petit rayon
@param allonge :rapport grand rayon / petit rayon
@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)
"""
@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)
boule = geompy.MakeSphereR(2)
bouler = geompy.MakeRotation(boule, OY, math.pi/2.0)
face = geompy.MakeFaceHW(100, 100, 3)