Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cc9d179
)
Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated...
author
eap
<eap@opencascade.com>
Wed, 3 Dec 2014 14:28:30 +0000
(17:28 +0300)
committer
eap
<eap@opencascade.com>
Wed, 3 Dec 2014 14:28:30 +0000
(17:28 +0300)
src/StdMeshers/StdMeshers_LocalLength.cxx
patch
|
blob
|
history
diff --git
a/src/StdMeshers/StdMeshers_LocalLength.cxx
b/src/StdMeshers/StdMeshers_LocalLength.cxx
index 6546c4492327b14b87930083fab74ba612eed91a..a5712bdb07e3a67563999ed0b7c3d470effdadb3 100644
(file)
--- a/
src/StdMeshers/StdMeshers_LocalLength.cxx
+++ b/
src/StdMeshers/StdMeshers_LocalLength.cxx
@@
-216,6
+216,8
@@
bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
{
const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
{
const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
+ if ( C.IsNull() )
+ continue;
GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
vector< double > params;
GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
vector< double > params;