diff --git a/src/GEOMGUI/GEOM_msg_en.ts b/src/GEOMGUI/GEOM_msg_en.ts
index ef6042244..ba2b35507 100644
--- a/src/GEOMGUI/GEOM_msg_en.ts
+++ b/src/GEOMGUI/GEOM_msg_en.ts
@@ -515,6 +515,14 @@ Please, select face, shell or solid and try again
Create a single solid
+
+
+ Bézier Curve
+
+
+
+ B-Spline Curve
+
Curve
@@ -555,6 +563,10 @@ Please, select face, shell or solid and try again
D2 :
+
+
+ Degree :
+
Detect
@@ -864,6 +876,10 @@ Please, select face, shell or solid and try again
Tol. 3D :
+
+
+ Focal Length :
+
Free boundaries
@@ -948,6 +964,10 @@ Please, select face, shell or solid and try again
Holes
+
+
+ Hyperbola
+
Initial shape
@@ -988,6 +1008,14 @@ Please, select face, shell or solid and try again
Keep Object
+
+
+ Knot #%1 :
+
+
+
+ Knots
+
Length :
@@ -1224,10 +1252,30 @@ Please, select face, shell or solid and try again
Nodes
+
+
+ Non-Periodic
+
+
+
+ Number of knots :
+
+
+
+ Number of multiplicities :
+
+
+
+ Number of poles :
+
Number of splitting points
+
+
+ Number of weights :
+
Object
@@ -1256,10 +1304,34 @@ Please, select face, shell or solid and try again
Offset Surface
+
+
+ Parabola
+
+
+
+ Parameters
+
Division pattern
+
+
+ Periodic
+
+
+
+ Periodicity :
+
+
+
+ Pole #%1 :
+
+
+
+ Poles
+
Projection on Face
diff --git a/src/GEOMGUI/GEOM_msg_fr.ts b/src/GEOMGUI/GEOM_msg_fr.ts
index b58f0550b..b61174223 100644
--- a/src/GEOMGUI/GEOM_msg_fr.ts
+++ b/src/GEOMGUI/GEOM_msg_fr.ts
@@ -515,6 +515,14 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Créer un solide unique
+
+
+ Courbe de Bézier
+
+
+
+ Courbe B-Spline
+
Courbe
@@ -555,6 +563,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
D2 :
+
+
+ Degré :
+
Détecter
@@ -864,6 +876,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Tol. 3D :
+
+
+ Distance Focale :
+
Contours libres
@@ -948,6 +964,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Trous
+
+
+ Hyperbole
+
Objet d'origine
@@ -988,6 +1008,14 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Garder l'objet
+
+
+ Noeud #%1 :
+
+
+
+ Noeuds
+
Longueur :
@@ -1224,10 +1252,30 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Noeuds
+
+
+ Non Périodique
+
+
+
+ Nombre de Noeuds :
+
+
+
+ Nombre de Multiplicités :
+
+
+
+ Nombre de Pôles :
+
Nombre de points de découpe
+
+
+ Nombre de Poids :
+
Objet
@@ -1256,10 +1304,34 @@ Choisissez une face, une coque ou un solide et essayez de nouveau
Décaler une surface
+
+
+ Parabole
+
+
+
+ Paramètres
+
Schema de découpe
+
+
+ Périodique
+
+
+
+ Périodicité :
+
+
+
+ Pôle #%1 :
+
+
+
+ Pôles
+
Projection sur une face
diff --git a/src/GEOMGUI/GEOM_msg_ja.ts b/src/GEOMGUI/GEOM_msg_ja.ts
index 6fbd8f6ef..a485d6a7d 100644
--- a/src/GEOMGUI/GEOM_msg_ja.ts
+++ b/src/GEOMGUI/GEOM_msg_ja.ts
@@ -511,6 +511,14 @@
1 つのソリッドを作成します。
+
+
+ ベジェ曲線
+
+
+
+ B-スプライン曲線
+
Curve
@@ -551,6 +559,10 @@
D2:
+
+
+ 程度 :
+
検出
@@ -859,6 +871,10 @@
Tol. 3D :
+
+
+ 焦点距離 :
+
自由境界
@@ -943,6 +959,10 @@
穴
+
+
+ 双曲線
+
元のオブジェクト
@@ -983,6 +1003,14 @@
オブジェクトを維持します。
+
+
+ 結び目 #%1 :
+
+
+
+ 結び目
+
長さ:
@@ -1219,10 +1247,30 @@
節点
+
+
+ 非定期的
+
+
+
+ ノット数 :
+
+
+
+ 多重度の数 :
+
+
+
+ 極数 :
+
分割点の数
+
+
+ ウェイトの数 :
+
オブジェクト
@@ -1251,10 +1299,34 @@
サーフェスをオフセット
+
+
+ 放物線
+
+
+
+ パラメーター
+
加工図
+
+
+ 定期的
+
+
+
+ 周期性 :
+
+
+
+ 極 #%1 :
+
+
+
+ 極
+
面上の投影
diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
index 6b507190f..e191364bb 100644
--- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
+++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
@@ -749,7 +749,7 @@ GEOMImpl_IMeasureOperations::ShapeKind GEOMImpl_IMeasureOperations::KindOfShape
break;
case GEOMAlgo_KN_CURVEBSPLINE:
{
- // (+) geompy.kind.CRV_BSPLINE np nk nw nm x1 y1 z1 ... xnp ynp znp k1 ... knk w1 ... wnw m1 ... mnm
+ // (+) geompy.kind.CRV_BSPLINE p d np nk nw nm x1 y1 z1 ... xnp ynp znp k1 ... knk w1 ... wnw m1 ... mnm
aKind = SK_CRV_BSPLINE;
Standard_Integer aNbPoles = anInfo.NbPoles();
Standard_Integer aNbKnots = anInfo.NbKnots();
diff --git a/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx b/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx
index a333bd4f9..bf9417691 100644
--- a/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx
+++ b/src/MeasureGUI/MeasureGUI_WhatisDlg.cxx
@@ -263,6 +263,7 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
return aKindStr;
#define PRINT_DOUBLE(val, tol) QString(" %1").arg( DlgRef::PrintDoubleValue( val, tol ) )
+#define PRINT_INTEGER(val) QString(" %1").arg( val )
#define TITLE(val) QString("%1").arg(tr(val))
#define TITLE_I(val, i) QString("%1").arg(tr(val).arg(i))
switch ( aKind )
@@ -543,7 +544,15 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
"
" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
"
" + TITLE( "GEOM_DIMENSIONS" ) +
"
" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
- "
" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ "
" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "
" + TITLE( "GEOM_X_AXIS") +
+ "
" + "Xx :" + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "
" + "Xy :" + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "
" + "Xz :" + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "
" + TITLE( "GEOM_Y_AXIS") +
+ "
" + "Yx :" + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
+ "
" + "Yy :" + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
+ "
" + "Yz :" + PRINT_DOUBLE( aDbls[13], aLenPrecision );
break;
case GEOM::GEOM_IKindOfShape::ARC_ELLIPSE:
aKindStr = tr( "GEOM_ARC_ELLIPSE" );
@@ -565,7 +574,15 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
"
" + TITLE_I( "GEOM_POINT_I", 2 ) +
"
" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
"
" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
- "
" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[13], aLenPrecision );
+ "
" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[13], aLenPrecision ) +
+ "
" + TITLE( "GEOM_X_AXIS") +
+ "
" + "Xx :" + PRINT_DOUBLE( aDbls[14], aLenPrecision ) +
+ "
" + "Xy :" + PRINT_DOUBLE( aDbls[15], aLenPrecision ) +
+ "
" + "Xz :" + PRINT_DOUBLE( aDbls[16], aLenPrecision ) +
+ "
" + TITLE( "GEOM_Y_AXIS") +
+ "
" + "Yx :" + PRINT_DOUBLE( aDbls[17], aLenPrecision ) +
+ "
" + "Yy :" + PRINT_DOUBLE( aDbls[18], aLenPrecision ) +
+ "
" + "Yz :" + PRINT_DOUBLE( aDbls[19], aLenPrecision );
break;
case GEOM::GEOM_IKindOfShape::LINE:
aKindStr = tr( "GEOM_LINE" );
@@ -589,6 +606,135 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
"
" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
"
" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
break;
+ case GEOM::GEOM_IKindOfShape::CRV_BSPLINE:
+ {
+ aKindStr = tr( "GEOM_CRV_BSPLINE" );
+ theParameters = TITLE( "GEOM_PARAMETERS" ) +
+ "
" + tr( "GEOM_PERIODICITY" ) + tr( anInts[0] ? "GEOM_PERIODIC" : "GEOM_NON_PERIODIC") +
+ "
" + tr( "GEOM_DEGREE" ) + PRINT_INTEGER( anInts[1] ) +
+ "
" + tr( "GEOM_NUM_POLES" ) + PRINT_INTEGER( anInts[2] ) +
+ "
" + tr( "GEOM_NUM_WEIGHTS" ) + PRINT_INTEGER( anInts[4] ) +
+ "
" + tr( "GEOM_NUM_KNOTS" ) + PRINT_INTEGER( anInts[3] ) +
+ "
" + tr( "GEOM_NUM_MULTIS" ) + PRINT_INTEGER( anInts[5] ) +
+ "
" + TITLE( "GEOM_POLES" );
+ // Show max. 5 poles
+ Standard_Integer i, nb = std::min(5, anInts[2]);
+ if (anInts[4] == anInts[2]) {
+ // Each pole has a specific weight associated
+ Standard_Integer widx = anInts[2] * 3 + anInts[3]; // skip poles and knots
+ for (i=0; i" + tr( "GEOM_POLE_I" ).arg( i+1 ) +
+ "(" + PRINT_DOUBLE( aDbls[i*3], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+1], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+2], aLenPrecision ) +
+ " )\t" + PRINT_DOUBLE( aDbls[widx+i], aLenPrecision );
+ }
+ } else {
+ for (i=0; i" + tr( "GEOM_POLE_I" ).arg( i+1 ) + "(" + PRINT_DOUBLE( aDbls[i*3], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+1], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+2], aLenPrecision ) + " )";
+ }
+ }
+ if (nb < anInts[2])
+ theParameters += "
...";
+ // Show max. 5 knots
+ theParameters += "
" + TITLE( "GEOM_KNOTS" );
+ nb = std::min(5, anInts[3]);
+ Standard_Integer kidx = anInts[2] * 3; // skip poles
+ if (anInts[5] == anInts[3]) {
+ // Each knot has a multiplicity associated
+ for (i=0; i" + tr( "GEOM_KNOT_I" ).arg( i+1 ) + PRINT_DOUBLE( aDbls[kidx+i], aLenPrecision ) +
+ "\t" + PRINT_INTEGER( anInts[6+i] );
+ }
+ } else {
+ // Each pole has a uniform weight of 1 (do not show it)
+ for (i=0; i" + tr( "GEOM_POLE_I" ).arg( i+1 ) + PRINT_DOUBLE( aDbls[kidx+i], aLenPrecision );
+ }
+ }
+ if (nb < anInts[3])
+ theParameters = theParameters + "
...";
+ }
+ break;
+ case GEOM::GEOM_IKindOfShape::CRV_BEZIER:
+ {
+ aKindStr = tr( "GEOM_CRV_BEZIER" );
+ theParameters = TITLE( "GEOM_PARAMETERS" ) +
+ "
" + tr( "GEOM_NUM_POLES" ) + PRINT_INTEGER( anInts[0] ) +
+ "
" + tr( "GEOM_NUM_WEIGHTS" ) + PRINT_INTEGER( anInts[1] ) +
+ "
" + TITLE( "GEOM_POLES" );
+ Standard_Integer i, nb = std::min(5, anInts[0]); // show max. 5 poles
+ if (anInts[1] > 0) {
+ Standard_Integer widx = anInts[2] * 3 + anInts[3];
+ for (i=0; i" + tr( "GEOM_POLE_I" ).arg( i+1 ) + "(" + PRINT_DOUBLE( aDbls[i*3], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+1], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+2], aLenPrecision ) +
+ ") " + PRINT_DOUBLE( aDbls[widx+i], aLenPrecision );
+ }
+ } else {
+ for (i=0; i" + tr( "GEOM_POLE_I" ).arg( i+1 ) + "(" + PRINT_DOUBLE( aDbls[i*3], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+1], aLenPrecision ) +
+ ", " + PRINT_DOUBLE( aDbls[i*3+2], aLenPrecision ) + ")";
+ }
+ }
+ if (nb < anInts[0])
+ theParameters = theParameters + "
...";
+ }
+ break;
+ case GEOM::GEOM_IKindOfShape::HYPERBOLA:
+ aKindStr = tr( "GEOM_HYPERBOLA" );
+ theParameters = TITLE( "GEOM_CENTER" ) +
+ "
" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "
" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "
" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "
" + TITLE( "GEOM_NORMAL" ) +
+ "
" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "
" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "
" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "
" + TITLE( "GEOM_DIMENSIONS" ) +
+ "
" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "
" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "
" + TITLE( "GEOM_X_AXIS") +
+ "
" + "Xx :" + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "
" + "Xy :" + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "
" + "Xz :" + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "
" + TITLE( "GEOM_Y_AXIS") +
+ "
" + "Yx :" + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
+ "
" + "Yy :" + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
+ "
" + "Yz :" + PRINT_DOUBLE( aDbls[13], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::PARABOLA:
+ aKindStr = tr( "GEOM_PARABOLA" );
+ theParameters = TITLE( "GEOM_CENTER" ) +
+ "
" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "
" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "
" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "
" + TITLE( "GEOM_NORMAL" ) +
+ "
" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "
" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "
" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "
" + TITLE( "GEOM_DIMENSIONS" ) +
+ "
" + tr( "GEOM_FOCAL_LENGTH" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "
" + TITLE( "GEOM_X_AXIS") +
+ "
" + "Xx :" + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "
" + "Xy :" + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "
" + "Xz :" + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "
" + TITLE( "GEOM_Y_AXIS") +
+ "
" + "Yx :" + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "
" + "Yy :" + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
+ "
" + "Yz :" + PRINT_DOUBLE( aDbls[12], aLenPrecision );
+ break;
+
case GEOM::GEOM_IKindOfShape::EDGE:
aKindStr = tr( "GEOM_EDGE" );
break;