mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Merge branch 'master' into pre/penta18
This commit is contained in:
commit
30ce546b0c
@ -628,7 +628,7 @@ Driver_Mesh::Status DriverCGNS_Write::Perform()
|
|||||||
return addMessage( cg_get_error(), /*fatal = */true);
|
return addMessage( cg_get_error(), /*fatal = */true);
|
||||||
|
|
||||||
// write BC location
|
// write BC location
|
||||||
if ( location != CGNS_ENUMV( Vertex ))
|
if ( location != CGNS_ENUMV( Vertex ) || meshDim == 1 )
|
||||||
{
|
{
|
||||||
if ( cg_boco_gridlocation_write( _fn, iBase, iZone, iBC, location) != CG_OK )
|
if ( cg_boco_gridlocation_write( _fn, iBase, iZone, iBC, location) != CG_OK )
|
||||||
return addMessage( cg_get_error(), /*fatal = */false);
|
return addMessage( cg_get_error(), /*fatal = */false);
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include <VTKViewer_Transform.h>
|
#include <VTKViewer_Transform.h>
|
||||||
#include <VTKViewer_TransformFilter.h>
|
#include <VTKViewer_TransformFilter.h>
|
||||||
#include <VTKViewer_ExtractUnstructuredGrid.h>
|
#include <VTKViewer_ExtractUnstructuredGrid.h>
|
||||||
|
#include <VTKViewer_Actor.h>
|
||||||
|
|
||||||
// VTK Includes
|
// VTK Includes
|
||||||
#include <vtkObjectFactory.h>
|
#include <vtkObjectFactory.h>
|
||||||
@ -94,8 +95,8 @@ SMESH_DeviceActor
|
|||||||
myMapper = VTKViewer_PolyDataMapper::New();
|
myMapper = VTKViewer_PolyDataMapper::New();
|
||||||
myPlaneCollection = vtkPlaneCollection::New();
|
myPlaneCollection = vtkPlaneCollection::New();
|
||||||
|
|
||||||
vtkMapper::GetResolveCoincidentTopologyPolygonOffsetParameters(myPolygonOffsetFactor,
|
VTKViewer_Actor::GetDefaultPolygonOffsetParameters(myPolygonOffsetFactor,
|
||||||
myPolygonOffsetUnits);
|
myPolygonOffsetUnits);
|
||||||
|
|
||||||
myMapper->UseLookupTableScalarRangeOn();
|
myMapper->UseLookupTableScalarRangeOn();
|
||||||
myMapper->SetColorModeToMapScalars();
|
myMapper->SetColorModeToMapScalars();
|
||||||
|
@ -3108,17 +3108,14 @@ SMESH_MeshEditor_i::mirror(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode)
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh )
|
if ( theTargetMesh )
|
||||||
{
|
|
||||||
theTargetMesh->GetMeshDS()->Modified();
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
declareMeshModified( /*isReComputeSafe=*/false );
|
declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
|
|
||||||
SMESH_CATCH( SMESH::throwCorbaException );
|
SMESH_CATCH( SMESH::throwCorbaException );
|
||||||
@ -3375,16 +3372,12 @@ SMESH_MeshEditor_i::translate(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode )
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh )
|
if ( theTargetMesh )
|
||||||
{
|
|
||||||
theTargetMesh->GetMeshDS()->Modified();
|
theTargetMesh->GetMeshDS()->Modified();
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
declareMeshModified( /*isReComputeSafe=*/false );
|
declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
return theMakeGroups ? getGroups(groupIds.get()) : 0;
|
||||||
@ -3632,7 +3625,7 @@ SMESH_MeshEditor_i::rotate(TIDSortedElemSet & theElements,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode)
|
if ( !myIsPreviewMode)
|
||||||
{
|
{
|
||||||
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
||||||
else declareMeshModified( /*isReComputeSafe=*/false );
|
else declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
@ -3932,7 +3925,7 @@ SMESH_MeshEditor_i::scale(SMESH::SMESH_IDSource_ptr theObject,
|
|||||||
::SMESH_MeshEditor::PGroupIDs groupIds =
|
::SMESH_MeshEditor::PGroupIDs groupIds =
|
||||||
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
getEditor().Transform (*workElements, aTrsf, theCopy, theMakeGroups, theTargetMesh);
|
||||||
|
|
||||||
if ( theCopy && !myIsPreviewMode )
|
if ( !myIsPreviewMode )
|
||||||
{
|
{
|
||||||
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
if ( theTargetMesh ) theTargetMesh->GetMeshDS()->Modified();
|
||||||
else declareMeshModified( /*isReComputeSafe=*/false );
|
else declareMeshModified( /*isReComputeSafe=*/false );
|
||||||
|
Loading…
Reference in New Issue
Block a user