mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
Correction in dialog for MakeVertexOnSurface()
This commit is contained in:
parent
a8b78040dd
commit
e94c40adc0
@ -727,18 +727,17 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
|
||||
break;
|
||||
}
|
||||
|
||||
if ( getConstructorId() == 1 || getConstructorId() == 2 )
|
||||
{
|
||||
if ( getConstructorId() == 1 || getConstructorId() == 2 ||
|
||||
getConstructorId() == 4 ) {
|
||||
TopoDS_Shape aShape;
|
||||
if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
||||
{
|
||||
if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() &&
|
||||
aShape.ShapeType() == TopAbs_VERTEX ) {
|
||||
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
||||
myX->setText( QString( "%1" ).arg( aPnt.X() ) );
|
||||
myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
|
||||
myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
myX->setText( "" );
|
||||
myY->setText( "" );
|
||||
myZ->setText( "" );
|
||||
|
Loading…
Reference in New Issue
Block a user