mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
general crack dialog, an error detection
This commit is contained in:
parent
049440912b
commit
c754537e9f
@ -7,6 +7,8 @@ from geomsmesh import geompy
|
|||||||
from geomsmesh import geomPublish
|
from geomsmesh import geomPublish
|
||||||
from geomsmesh import geomPublishInFather
|
from geomsmesh import geomPublishInFather
|
||||||
import initLog
|
import initLog
|
||||||
|
import traceback
|
||||||
|
from fissError import fissError
|
||||||
|
|
||||||
from produitMixte import produitMixte
|
from produitMixte import produitMixte
|
||||||
from whichSide import whichSide
|
from whichSide import whichSide
|
||||||
@ -94,7 +96,13 @@ def identifieElementsDebouchants(ifil, facesDefaut, partitionPeauFissFond,
|
|||||||
edgesLoc = geompy.ExtractShapes(locEdgePart, geompy.ShapeType["EDGE"], False)
|
edgesLoc = geompy.ExtractShapes(locEdgePart, geompy.ShapeType["EDGE"], False)
|
||||||
edgesLocSorted =[(geompy.MinDistance(edge, locPt0), kk, edge) for kk, edge in enumerate(edgesLoc)]
|
edgesLocSorted =[(geompy.MinDistance(edge, locPt0), kk, edge) for kk, edge in enumerate(edgesLoc)]
|
||||||
edgesLocSorted.sort()
|
edgesLocSorted.sort()
|
||||||
|
try:
|
||||||
ofp = geompy.BasicProperties(edgesLocSorted[0][2])[0] # distance curviligne centre locPt0
|
ofp = geompy.BasicProperties(edgesLocSorted[0][2])[0] # distance curviligne centre locPt0
|
||||||
|
except:
|
||||||
|
texte = "Identification des éléments au débouché du pipe sur la face externe impossible. "
|
||||||
|
texte += "Cause éventuelle : la ligne de fond de fissure comprend un point géométrique coincidant avec la face externe. "
|
||||||
|
texte += "La ligne de fond de fissure doit déboucher franchement de la face externe, et ne doit pas être coupée au niveau de la face"
|
||||||
|
raise fissError(traceback.extract_stack(),texte)
|
||||||
logging.debug("distance curviligne centre extremite0: %s", ofp)
|
logging.debug("distance curviligne centre extremite0: %s", ofp)
|
||||||
p1 = geompy.MakeVertexOnCurveByLength(localEdgeInFondFiss, ofp +lgp, locPt0)
|
p1 = geompy.MakeVertexOnCurveByLength(localEdgeInFondFiss, ofp +lgp, locPt0)
|
||||||
p2 = geompy.MakeVertexOnCurveByLength(localEdgeInFondFiss, ofp -lgp, locPt0)
|
p2 = geompy.MakeVertexOnCurveByLength(localEdgeInFondFiss, ofp -lgp, locPt0)
|
||||||
|
@ -6,9 +6,9 @@ from geomsmesh import geompy
|
|||||||
from geomsmesh import geomPublish
|
from geomsmesh import geomPublish
|
||||||
from geomsmesh import geomPublishInFather
|
from geomsmesh import geomPublishInFather
|
||||||
import initLog
|
import initLog
|
||||||
import traceback
|
|
||||||
from findWireEndVertices import findWireEndVertices
|
from findWireEndVertices import findWireEndVertices
|
||||||
from prolongeWire import prolongeWire
|
from prolongeWire import prolongeWire
|
||||||
|
import traceback
|
||||||
from fissError import fissError
|
from fissError import fissError
|
||||||
|
|
||||||
def partitionneFissureParPipe(shapesFissure, elementsDefaut, rayonPipe):
|
def partitionneFissureParPipe(shapesFissure, elementsDefaut, rayonPipe):
|
||||||
|
Loading…
Reference in New Issue
Block a user