mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 01:20:34 +05:00
52540: TC7.5.0: Renumbering Elements and Nodes does not work
This commit is contained in:
parent
add89bac19
commit
5b6af39e27
@ -32,8 +32,8 @@ newMesh = smesh.CopyMesh( mesh, "whole mesh copy")
|
||||
# 2. copy a group of 2D elements along with groups
|
||||
newMesh = smesh.CopyMesh( fGroup, "face group copy with groups",toCopyGroups=True)
|
||||
|
||||
# 3. copy a group of nodes with preseving their ids
|
||||
newMesh = smesh.CopyMesh( nGroup, "node group copy", toKeepIDs=True)
|
||||
# 3. copy a group of nodes
|
||||
newMesh = smesh.CopyMesh( nGroup, "node group copy")
|
||||
|
||||
# 4. copy some faces
|
||||
faceIds = fGroup.GetIDs()[-10:]
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 23 KiB |
@ -42,9 +42,6 @@ selection_filter_library_page "Selection filter library" page.</li>
|
||||
<ul>
|
||||
<li>activate <b>Generate groups</b> checkbox to copy the groups of
|
||||
elements of the source mesh to the newly created mesh.</li>
|
||||
<li>activate <b>Preserve IDs of elements</b> checkbox to keep
|
||||
the IDs of new nodes and elements the same as the IDs of source nodes
|
||||
and elements.</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
@ -12,8 +12,6 @@ nodes to polyhedrons at an arbitrary place in the mesh.</li>
|
||||
elements (used in quadratic meshes) from quadratic nodes to quadratic polyhedrons at an arbitrary place in the mesh.</li>
|
||||
<li>\subpage removing_nodes_and_elements_page "Remove" any existing
|
||||
mesh elements.</li>
|
||||
<li>\subpage renumbering_nodes_and_elements_page "Renumber" nodes and
|
||||
elements of the mesh.</li>
|
||||
<li>\subpage translation_page "Translate" in the indicated direction the mesh or some of
|
||||
its elements.</li>
|
||||
<li>\subpage rotation_page "Rotate" by the indicated axis and angle
|
||||
|
@ -3866,8 +3866,8 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
createSMESHAction( SMESHOp::OpRemoveOrphanNodes, "REMOVE_ORPHAN_NODES", "ICON_DLG_REM_ORPHAN_NODES" );
|
||||
createSMESHAction( SMESHOp::OpClearMesh, "CLEAR_MESH", "ICON_CLEAR_MESH" );
|
||||
|
||||
createSMESHAction( SMESHOp::OpRenumberingNodes, "RENUM_NODES", "ICON_DLG_RENUMBERING_NODES" );
|
||||
createSMESHAction( SMESHOp::OpRenumberingElements, "RENUM_ELEMENTS", "ICON_DLG_RENUMBERING_ELEMENTS" );
|
||||
//createSMESHAction( SMESHOp::OpRenumberingNodes, "RENUM_NODES", "ICON_DLG_RENUMBERING_NODES" );
|
||||
//createSMESHAction( SMESHOp::OpRenumberingElements, "RENUM_ELEMENTS", "ICON_DLG_RENUMBERING_ELEMENTS" );
|
||||
|
||||
createSMESHAction( SMESHOp::OpTranslation, "TRANS", "ICON_SMESH_TRANSLATION_VECTOR" );
|
||||
createSMESHAction( SMESHOp::OpRotation, "ROT", "ICON_DLG_MESH_ROTATION" );
|
||||
@ -3976,7 +3976,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
volumeId = createMenu( tr( "MEN_VOLUME_CTRL" ), ctrlId, -1, 10 ),
|
||||
addId = createMenu( tr( "MEN_ADD" ), modifyId, 402 ),
|
||||
removeId = createMenu( tr( "MEN_REMOVE" ), modifyId, 403 ),
|
||||
renumId = createMenu( tr( "MEN_RENUM" ), modifyId, 404 ),
|
||||
//renumId = createMenu( tr( "MEN_RENUM" ), modifyId, 404 ),
|
||||
transfId = createMenu( tr( "MEN_TRANSF" ), modifyId, 405 ),
|
||||
basicPropId = createMenu( tr( "MEN_BASIC_PROPERTIES" ), measureId, -1, 10 );
|
||||
|
||||
@ -4098,8 +4098,8 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
createMenu( separator(), removeId, -1 );
|
||||
createMenu( SMESHOp::OpClearMesh, removeId, -1 );
|
||||
|
||||
createMenu( SMESHOp::OpRenumberingNodes, renumId, -1 );
|
||||
createMenu( SMESHOp::OpRenumberingElements, renumId, -1 );
|
||||
//createMenu( SMESHOp::OpRenumberingNodes, renumId, -1 );
|
||||
//createMenu( SMESHOp::OpRenumberingElements, renumId, -1 );
|
||||
|
||||
createMenu( SMESHOp::OpTranslation, transfId, -1 );
|
||||
createMenu( SMESHOp::OpRotation, transfId, -1 );
|
||||
@ -4144,7 +4144,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
addElemTb = createTool( tr( "TB_ADD" ), QString( "SMESHAddElementToolbar" ) ),
|
||||
addNonElemTb = createTool( tr( "TB_ADDNON" ), QString( "SMESHAddElementToolbar" ) ),
|
||||
remTb = createTool( tr( "TB_REM" ), QString( "SMESHRemoveToolbar" ) ),
|
||||
renumbTb = createTool( tr( "TB_RENUMBER" ), QString( "SMESHRenumberingToolbar" ) ),
|
||||
//renumbTb = createTool( tr( "TB_RENUMBER" ), QString( "SMESHRenumberingToolbar" ) ),
|
||||
transformTb = createTool( tr( "TB_TRANSFORM" ), QString( "SMESHTransformationToolbar" ) ),
|
||||
modifyTb = createTool( tr( "TB_MODIFY" ), QString( "SMESHModificationToolbar" ) ),
|
||||
measuremTb = createTool( tr( "TB_MEASUREM" ), QString( "SMESHMeasurementsToolbar" ) ),
|
||||
@ -4232,8 +4232,8 @@ void SMESHGUI::initialize( CAM_Application* app )
|
||||
createTool( SMESHOp::OpRemoveOrphanNodes, remTb );
|
||||
createTool( SMESHOp::OpClearMesh, remTb );
|
||||
|
||||
createTool( SMESHOp::OpRenumberingNodes, renumbTb );
|
||||
createTool( SMESHOp::OpRenumberingElements, renumbTb );
|
||||
//createTool( SMESHOp::OpRenumberingNodes, renumbTb );
|
||||
//createTool( SMESHOp::OpRenumberingElements, renumbTb );
|
||||
|
||||
createTool( SMESHOp::OpTranslation, transformTb );
|
||||
createTool( SMESHOp::OpRotation, transformTb );
|
||||
|
@ -166,9 +166,10 @@ SMESHGUI_CopyMeshDlg::SMESHGUI_CopyMeshDlg( SMESHGUI* theModule )
|
||||
myCopyGroupsCheck = new QCheckBox(tr("SMESH_MAKE_GROUPS"), GroupArguments);
|
||||
myCopyGroupsCheck->setChecked(false);
|
||||
|
||||
// CheckBox for keeping ids
|
||||
// CheckBox for keeping ids ( OBSOLETE )
|
||||
myKeepIdsCheck = new QCheckBox(tr("SMESH_KEEP_IDS"), GroupArguments);
|
||||
myKeepIdsCheck->setChecked(true);
|
||||
myKeepIdsCheck->hide();
|
||||
|
||||
// layout
|
||||
GroupArgumentsLayout->addWidget(myTextLabelElements, 0, 0);
|
||||
@ -178,7 +179,7 @@ SMESHGUI_CopyMeshDlg::SMESHGUI_CopyMeshDlg( SMESHGUI* theModule )
|
||||
GroupArgumentsLayout->addWidget(meshNameLabel, 2, 0);
|
||||
GroupArgumentsLayout->addWidget(myMeshNameEdit, 2, 1, 1, 5);
|
||||
GroupArgumentsLayout->addWidget(myCopyGroupsCheck, 3, 0, 1, 6);
|
||||
GroupArgumentsLayout->addWidget(myKeepIdsCheck, 4, 0, 1, 6);
|
||||
// GroupArgumentsLayout->addWidget(myKeepIdsCheck, 4, 0, 1, 6);
|
||||
|
||||
/***************************************************************/
|
||||
GroupButtons = new QGroupBox(this);
|
||||
|
@ -627,7 +627,7 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen):
|
||||
# pass result of Mesh.GetIDSource( list_of_ids, type ) as meshPart
|
||||
# @param meshName a name of the new mesh
|
||||
# @param toCopyGroups to create in the new mesh groups the copied elements belongs to
|
||||
# @param toKeepIDs to preserve IDs of the copied elements or not
|
||||
# @param toKeepIDs to preserve order of the copied elements or not
|
||||
# @return an instance of Mesh class
|
||||
def CopyMesh( self, meshPart, meshName, toCopyGroups=False, toKeepIDs=False):
|
||||
if (isinstance( meshPart, Mesh )):
|
||||
@ -3477,12 +3477,12 @@ class Mesh:
|
||||
if mesh: mesh = self.smeshpyD.Mesh(mesh)
|
||||
return nb, mesh, group
|
||||
|
||||
## Renumber mesh nodes
|
||||
## Renumber mesh nodes (Obsolete, does nothing)
|
||||
# @ingroup l2_modif_renumber
|
||||
def RenumberNodes(self):
|
||||
self.editor.RenumberNodes()
|
||||
|
||||
## Renumber mesh elements
|
||||
## Renumber mesh elements (Obsole, does nothing)
|
||||
# @ingroup l2_modif_renumber
|
||||
def RenumberElements(self):
|
||||
self.editor.RenumberElements()
|
||||
|
Loading…
Reference in New Issue
Block a user