mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-21 22:20:32 +05:00
0021556: EDF 2222 SMESH: 3D mesh after projection impossible
In projectBy2DSimilarity() check U on edge before setting
This commit is contained in:
parent
f8a8ae08c8
commit
690b5f67ff
@ -734,9 +734,11 @@ namespace {
|
|||||||
}
|
}
|
||||||
case SMDS_TOP_EDGE: {
|
case SMDS_TOP_EDGE: {
|
||||||
TopoDS_Shape srcEdge = srcHelper.GetSubShapeByNode( srcNode, srcHelper.GetMeshDS() );
|
TopoDS_Shape srcEdge = srcHelper.GetSubShapeByNode( srcNode, srcHelper.GetMeshDS() );
|
||||||
TopoDS_Shape tgtEdge = shape2ShapeMap( srcEdge, /*isSrc=*/true );
|
TopoDS_Edge tgtEdge = TopoDS::Edge( shape2ShapeMap( srcEdge, /*isSrc=*/true ));
|
||||||
|
tgtMeshDS->SetNodeOnEdge( n, TopoDS::Edge( tgtEdge ));
|
||||||
double U = srcHelper.GetNodeU( TopoDS::Edge( srcEdge ), srcNode );
|
double U = srcHelper.GetNodeU( TopoDS::Edge( srcEdge ), srcNode );
|
||||||
tgtMeshDS->SetNodeOnEdge( n, TopoDS::Edge( tgtEdge ), U);
|
helper.CheckNodeU( tgtEdge, n, U, Precision::PConfusion());
|
||||||
|
n->SetPosition(SMDS_PositionPtr(new SMDS_EdgePosition( U )));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SMDS_TOP_VERTEX: {
|
case SMDS_TOP_VERTEX: {
|
||||||
|
Loading…
Reference in New Issue
Block a user