mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 09:50:34 +05:00
0023197: [CEA] Extract and rebuild: documentation
This commit is contained in:
parent
48b2400d5c
commit
af9ca32e52
@ -66,6 +66,7 @@ INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/GEOM DESTINATION ${SALOME_INSTALL_
|
|||||||
INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM)
|
INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM)
|
||||||
INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM/geompy_doc)
|
INSTALL(FILES images/head.png DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM/geompy_doc)
|
||||||
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/static/SALOME_BOA_PA.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM)
|
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/static/SALOME_BOA_PA.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM)
|
||||||
|
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/static/ExtractAndRebuild.pdf DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM)
|
||||||
INSTALL(FILES input/geompy_migration.doc input/tui_auto_completion_documentation.doc input/tui_execution_distribution.doc DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM/input)
|
INSTALL(FILES input/geompy_migration.doc input/tui_auto_completion_documentation.doc input/tui_execution_distribution.doc DESTINATION ${SALOME_INSTALL_DOC}/gui/GEOM/input)
|
||||||
|
|
||||||
FILE(GLOB tag_files ${CMAKE_CURRENT_BINARY_DIR}/*.tag)
|
FILE(GLOB tag_files ${CMAKE_CURRENT_BINARY_DIR}/*.tag)
|
||||||
|
BIN
doc/salome/gui/GEOM/images/extract_init.png
Normal file
BIN
doc/salome/gui/GEOM/images/extract_init.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
BIN
doc/salome/gui/GEOM/images/extract_rebuild.png
Normal file
BIN
doc/salome/gui/GEOM/images/extract_rebuild.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
doc/salome/gui/GEOM/images/extract_result.png
Normal file
BIN
doc/salome/gui/GEOM/images/extract_result.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
82
doc/salome/gui/GEOM/input/extract_and_rebuild.doc
Normal file
82
doc/salome/gui/GEOM/input/extract_and_rebuild.doc
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
/*!
|
||||||
|
|
||||||
|
\page extract_and_rebuild_page Extract and Rebuild
|
||||||
|
|
||||||
|
|
||||||
|
This operation allows extraction of sub-shapes from a given
|
||||||
|
shape.
|
||||||
|
|
||||||
|
To use this operation, select in the Main Menu <b>Operations -> Extract and Rebuild</b>.
|
||||||
|
The following dialog box appears:
|
||||||
|
|
||||||
|
\image html extract_rebuild.png "Extract and Rebuild Dialog"
|
||||||
|
|
||||||
|
In this dialog:
|
||||||
|
<ul>
|
||||||
|
<li> \b Name is a result object name.</li>
|
||||||
|
<li> <b>Main Object</b> is the main object selected for the operation. It is
|
||||||
|
possible to select the object in the Object Browser or in the viewer using
|
||||||
|
"selection" button.</li>
|
||||||
|
<li> <b>Sub-shape type</b> is the type filter for sub-shapes to be chosen
|
||||||
|
for the extraction.</li>
|
||||||
|
<li> <b>Filtered shapes</b> is the list of filtered sub-shape IDs available
|
||||||
|
for the extraction.</li>
|
||||||
|
<li> <b>Shapes to extract</b> is the list of sub-shape IDs to be extracted
|
||||||
|
grouped by shape types.</li>
|
||||||
|
<li> \b >> is the button to copy object IDs from <b>Filtered shapes</b> to
|
||||||
|
<b>Shapes to extract</b>.</li>
|
||||||
|
<li> \b << is the button to copy object IDs from <b>Shapes to extract</b> to
|
||||||
|
<b>Filtered shapes</b>.</li>
|
||||||
|
<li> <b>Show Only Selected</b> is the button to show objects selected in the
|
||||||
|
<b>Filtered shapes</b> list and hide all other objects.</li>
|
||||||
|
<li> <b>Hide Selected</b> is the button to hide objects selected in the
|
||||||
|
<b>Filtered shapes</b> list.</li>
|
||||||
|
<li> <b>Show all sub-shapes</b> is the button to show all objects from the
|
||||||
|
<b>Filtered shapes</b> list.</li>
|
||||||
|
<li> \b Rebuild is the button to perform extraction and show the operation
|
||||||
|
statistics.</li>
|
||||||
|
<li> The block of \b Statistics shows how many shapes of a certain type
|
||||||
|
are \b Removed, \b Modified and \b Added.</li>
|
||||||
|
<li> \b Apply is the button to create the result.</li>
|
||||||
|
<li> <b>Apply and Close</b> is the button to create the result and close
|
||||||
|
the dialog.</li>
|
||||||
|
<li> \b Close is the button to close this dialog.</li>
|
||||||
|
<li> \b Help is the button to show this help page.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<b>TUI Command:</b> <em>geompy.MakeExtraction(theShape, theListOfID),</em>
|
||||||
|
<br> where \em theShape is the main shape, \em theListOfID is a list of
|
||||||
|
sub-shape IDs to be extracted.
|
||||||
|
|
||||||
|
Our <b>TUI Scripts</b> provide you with useful example of the use of
|
||||||
|
\ref swig_MakeExtraction "Extract and Rebuild" functionality.
|
||||||
|
|
||||||
|
<b>More details</b>
|
||||||
|
|
||||||
|
If a sub-shape is extracted, all its ancestors should be modified. An ancestors
|
||||||
|
of extracted sub-shapes can be either:
|
||||||
|
- created anew without extracted sub-shapes, or
|
||||||
|
- extracted if it is not possible to create a valid shape without extracted
|
||||||
|
sub-shape.
|
||||||
|
|
||||||
|
E.g. it is necessary to extract the vertex from the box:
|
||||||
|
|
||||||
|
\image html extract_init.png "Extraction of the vertex from the box"
|
||||||
|
|
||||||
|
In this case 3 ancestor edges are removed as they can't be valid without
|
||||||
|
this vertex. 3 faces that contain these edges are also removed. It is because
|
||||||
|
the wires without edges are not closed and it is not possible to create
|
||||||
|
a valid face on not closed wire. These wires should contain two remaining
|
||||||
|
edges, but they are removed as they are the part of the remaining shell.
|
||||||
|
So these wires become empty that means that they should be removed as well.
|
||||||
|
|
||||||
|
The shell is replaced by another one that contains 3 not modified faces. As
|
||||||
|
It is not possible to construct a valid solid from not closed shell the solid
|
||||||
|
is removed. So the result of the extraction is a shell that contains 3 faces:
|
||||||
|
|
||||||
|
\image html extract_result.png "Result shape"
|
||||||
|
|
||||||
|
Please, refer to <a href="ExtractAndRebuild.pdf">this document</a> for a detailed
|
||||||
|
description of Extract and Rebuild operation.
|
||||||
|
|
||||||
|
*/
|
@ -7,4 +7,6 @@ that can be useful for reading.
|
|||||||
<a href="SALOME_BOA_PA.pdf">General Fuse Algorithm, Partition
|
<a href="SALOME_BOA_PA.pdf">General Fuse Algorithm, Partition
|
||||||
Algorithm, Boolean Operations Algorithm. Backgrounds.</a>
|
Algorithm, Boolean Operations Algorithm. Backgrounds.</a>
|
||||||
|
|
||||||
|
<a href="ExtractAndRebuild.pdf">Extract and Rebuild algorithm specification.</a>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -27,6 +27,8 @@ special case of \b Explode operation. </li>
|
|||||||
special case of \b Explode operation. </li>
|
special case of \b Explode operation. </li>
|
||||||
<li>\subpage transfer_data_page "Transfer Data" operation, which copies
|
<li>\subpage transfer_data_page "Transfer Data" operation, which copies
|
||||||
non-topological data from one shape to another. </li>
|
non-topological data from one shape to another. </li>
|
||||||
|
<li>\subpage extract_and_rebuild_page "Extract and Rebuild" operation, which
|
||||||
|
extracts sub-shapes from the main shape. </li>
|
||||||
|
|
||||||
|
|
||||||
<li>\subpage restore_presentation_parameters_page "Restore presentation parameters".
|
<li>\subpage restore_presentation_parameters_page "Restore presentation parameters".
|
||||||
|
@ -105,6 +105,9 @@
|
|||||||
\until geompy.GetSubShapeEdgeSorted(Sketcher3d_2, p3, "OrderedEdges")
|
\until geompy.GetSubShapeEdgeSorted(Sketcher3d_2, p3, "OrderedEdges")
|
||||||
|
|
||||||
\anchor swig_GetSubShapesWithTolerance
|
\anchor swig_GetSubShapesWithTolerance
|
||||||
|
\until geompy.GetSubShapesWithTolerance(Box, GEOM.FACE, GEOM.CC_LE, 1.e-7, "le")
|
||||||
|
|
||||||
|
\anchor swig_MakeExtraction
|
||||||
\until print "DONE"
|
\until print "DONE"
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
BIN
doc/salome/gui/GEOM/static/ExtractAndRebuild.pdf
Normal file
BIN
doc/salome/gui/GEOM/static/ExtractAndRebuild.pdf
Normal file
Binary file not shown.
@ -590,5 +590,10 @@ def TestAll (geompy, math):
|
|||||||
geompy.GetSubShapesWithTolerance(Box, GEOM.FACE, GEOM.CC_LT, 2.e-7, "lt")
|
geompy.GetSubShapesWithTolerance(Box, GEOM.FACE, GEOM.CC_LT, 2.e-7, "lt")
|
||||||
geompy.GetSubShapesWithTolerance(Box, GEOM.FACE, GEOM.CC_LE, 1.e-7, "le")
|
geompy.GetSubShapesWithTolerance(Box, GEOM.FACE, GEOM.CC_LE, 1.e-7, "le")
|
||||||
|
|
||||||
|
# MakeExtraction
|
||||||
|
geompy.MakeExtraction(Box, [13], "Ext_no_face")
|
||||||
|
geompy.MakeExtraction(Box, [18], "Ext_no_edge")
|
||||||
|
geompy.MakeExtraction(Box, [16], "Ext_no_vertex")
|
||||||
|
|
||||||
|
|
||||||
print "DONE"
|
print "DONE"
|
||||||
|
@ -6665,7 +6665,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
|||||||
# @return New GEOM.GEOM_Object, containing the shape without
|
# @return New GEOM.GEOM_Object, containing the shape without
|
||||||
# extracted sub-shapes.
|
# extracted sub-shapes.
|
||||||
#
|
#
|
||||||
# @ref tui_multi_transformation "Example"
|
# @ref swig_MakeExtraction "Example"
|
||||||
@ManageTransactions("ShapesOp")
|
@ManageTransactions("ShapesOp")
|
||||||
def MakeExtraction(self, theShape, theListOfID, theName=None):
|
def MakeExtraction(self, theShape, theListOfID, theName=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user