mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 19:40:34 +05:00
Mantis issue 0020685: GetShapesOnShape: correct argument theCheckShape description.
This commit is contained in:
parent
ad71fc6606
commit
e1c960b46a
@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
\page shapesonshape_page Get Shapes on Shape
|
\page shapesonshape_page Get Shapes on Shape
|
||||||
|
|
||||||
This operation is a special case of <b>Explode</b> operation. It produces a group of sub-shapes of the exploded shape, which are located in a definite way relatively another reference shape.
|
This operation is a special case of <b>Explode</b> operation. It
|
||||||
|
produces a group of sub-shapes of the exploded shape, which are
|
||||||
|
located in a definite way relatively another reference shape. The
|
||||||
|
reference shape should be a solid.
|
||||||
|
|
||||||
To use this operation, select in the Main Menu <b>Operations -> Get Shapes on Shape.</b> The following dialog box will appear.
|
To use this operation, select in the Main Menu <b>Operations -> Get Shapes on Shape.</b> The following dialog box will appear.
|
||||||
|
|
||||||
@ -11,7 +14,8 @@ To use this operation, select in the Main Menu <b>Operations -> Get Shapes on Sh
|
|||||||
<ul>
|
<ul>
|
||||||
<li> <b>Name</b> is the name of the resulting group of shapes; </li>
|
<li> <b>Name</b> is the name of the resulting group of shapes; </li>
|
||||||
<li> <b>Shape for exploding</b> is the shape that will be exploded; </li>
|
<li> <b>Shape for exploding</b> is the shape that will be exploded; </li>
|
||||||
<li> <b>Shape for checking</b> is the reference shape; </li>
|
<li> <b>Solid for checking</b> is the reference shape, which should be
|
||||||
|
a solid; </li>
|
||||||
<li> <b>Reconstruction Limit</b> is the type of created sub-shapes:
|
<li> <b>Reconstruction Limit</b> is the type of created sub-shapes:
|
||||||
solid, shell, face, wire, edge, vertex; </li>
|
solid, shell, face, wire, edge, vertex; </li>
|
||||||
<li> <b>State</b> is the position of the created sub-shapes relatively the reference shapes:
|
<li> <b>State</b> is the position of the created sub-shapes relatively the reference shapes:
|
||||||
|
@ -1719,7 +1719,7 @@ module GEOM
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Find subshapes complying with given status
|
* \brief Find subshapes complying with given status
|
||||||
* \param theCheckShape - the shape to check state of subshapes against
|
* \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
|
||||||
* \param theShape - the shape to explore
|
* \param theShape - the shape to explore
|
||||||
* \param theShapeType - type of subshape of theShape
|
* \param theShapeType - type of subshape of theShape
|
||||||
* \param theState - required state
|
* \param theState - required state
|
||||||
@ -1732,7 +1732,7 @@ module GEOM
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Find subshapes complying with given status
|
* \brief Find subshapes complying with given status
|
||||||
* \param theCheckShape - the shape to check state of subshapes against
|
* \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
|
||||||
* \param theShape - the shape to explore
|
* \param theShape - the shape to explore
|
||||||
* \param theShapeType - type of subshape of theShape
|
* \param theShapeType - type of subshape of theShape
|
||||||
* \param theState - required state
|
* \param theState - required state
|
||||||
@ -1745,7 +1745,7 @@ module GEOM
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Find subshapes complying with given status
|
* \brief Find subshapes complying with given status
|
||||||
* \param theCheckShape - the shape to check state of subshapes against
|
* \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
|
||||||
* \param theShape - the shape to explore
|
* \param theShape - the shape to explore
|
||||||
* \param theShapeType - type of subshape of theShape
|
* \param theShapeType - type of subshape of theShape
|
||||||
* \param theState - required state
|
* \param theState - required state
|
||||||
|
@ -3745,7 +3745,7 @@ Please, select face, shell or solid and try again</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SHAPES_ON_SHAPE_CSHAPE</source>
|
<source>GEOM_SHAPES_ON_SHAPE_CSHAPE</source>
|
||||||
<translation>Shape for checking</translation>
|
<translation>Solid for checking</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>GEOM_SHAPES_ON_SHAPE_STATE</source>
|
<source>GEOM_SHAPES_ON_SHAPE_STATE</source>
|
||||||
|
@ -1738,10 +1738,15 @@ Handle(TColStd_HSequenceOfInteger)
|
|||||||
Standard_Integer iErr = aFinder.ErrorStatus();
|
Standard_Integer iErr = aFinder.ErrorStatus();
|
||||||
// the detailed description of error codes is in GEOMAlgo_FinderShapeOn1.cxx
|
// the detailed description of error codes is in GEOMAlgo_FinderShapeOn1.cxx
|
||||||
if (iErr) {
|
if (iErr) {
|
||||||
|
if (iErr == 41) {
|
||||||
|
SetErrorCode("theCheckShape must be a solid");
|
||||||
|
}
|
||||||
|
else {
|
||||||
MESSAGE(" iErr : " << iErr);
|
MESSAGE(" iErr : " << iErr);
|
||||||
TCollection_AsciiString aMsg (" iErr : ");
|
TCollection_AsciiString aMsg (" iErr : ");
|
||||||
aMsg += TCollection_AsciiString(iErr);
|
aMsg += TCollection_AsciiString(iErr);
|
||||||
SetErrorCode(aMsg);
|
SetErrorCode(aMsg);
|
||||||
|
}
|
||||||
return aSeqOfIDs;
|
return aSeqOfIDs;
|
||||||
}
|
}
|
||||||
Standard_Integer iWrn = aFinder.WarningStatus();
|
Standard_Integer iWrn = aFinder.WarningStatus();
|
||||||
@ -3177,6 +3182,10 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetInPlace (Handle(GEOM_Object)
|
|||||||
if (Tol_2D < Precision::Confusion()) Tol_2D = Precision::Confusion();
|
if (Tol_2D < Precision::Confusion()) Tol_2D = Precision::Confusion();
|
||||||
if (Tol_3D < Precision::Confusion()) Tol_3D = Precision::Confusion();
|
if (Tol_3D < Precision::Confusion()) Tol_3D = Precision::Confusion();
|
||||||
|
|
||||||
|
//if (Tol_1D > 1.0) Tol_1D = 1.0;
|
||||||
|
//if (Tol_2D > 1.0) Tol_2D = 1.0;
|
||||||
|
//if (Tol_3D > 1.0) Tol_3D = 1.0;
|
||||||
|
|
||||||
Tol_Mass = Tol_3D;
|
Tol_Mass = Tol_3D;
|
||||||
if ( iType == TopAbs_EDGE ) Tol_Mass = Tol_1D;
|
if ( iType == TopAbs_EDGE ) Tol_Mass = Tol_1D;
|
||||||
else if ( iType == TopAbs_FACE ) Tol_Mass = Tol_2D;
|
else if ( iType == TopAbs_FACE ) Tol_Mass = Tol_2D;
|
||||||
|
@ -1891,7 +1891,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
|
|||||||
## Find in \a theShape all sub-shapes of type \a theShapeType,
|
## Find in \a theShape all sub-shapes of type \a theShapeType,
|
||||||
# situated relatively the specified \a theCheckShape by the
|
# situated relatively the specified \a theCheckShape by the
|
||||||
# certain way, defined through \a theState parameter.
|
# certain way, defined through \a theState parameter.
|
||||||
# @param theCheckShape Shape for relative comparing.
|
# @param theCheckShape Shape for relative comparing. It must be a solid.
|
||||||
# @param theShape Shape to find sub-shapes of.
|
# @param theShape Shape to find sub-shapes of.
|
||||||
# @param theShapeType Type of sub-shapes to be retrieved.
|
# @param theShapeType Type of sub-shapes to be retrieved.
|
||||||
# @param theState The state of the subshapes to find. It can be one of
|
# @param theState The state of the subshapes to find. It can be one of
|
||||||
|
Loading…
Reference in New Issue
Block a user