mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 12:20:32 +05:00
Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated edge
This commit is contained in:
parent
cc9d179c9f
commit
3cc259fbef
@ -216,6 +216,8 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh* theMesh,
|
|||||||
{
|
{
|
||||||
const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
|
const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
|
||||||
Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
|
Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
|
||||||
|
if ( C.IsNull() )
|
||||||
|
continue;
|
||||||
GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
|
GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
|
||||||
|
|
||||||
vector< double > params;
|
vector< double > params;
|
||||||
|
Loading…
Reference in New Issue
Block a user