mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-06 21:24:17 +05:00
Fix for Problem 1 of Bug IPAL10464:
SMESH: Add Polyhedron
This commit is contained in:
parent
d75a1bc257
commit
5a37347fb2
@ -114,19 +114,17 @@ class TPolySimulation{
|
|||||||
|
|
||||||
float anRGB[3];
|
float anRGB[3];
|
||||||
vtkProperty* aProp = vtkProperty::New();
|
vtkProperty* aProp = vtkProperty::New();
|
||||||
GetColor( "SMESH", "fill_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
|
GetColor( "SMESH", "selection_element_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
|
||||||
aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
|
aProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
|
||||||
myPreviewActor->SetProperty( aProp );
|
myPreviewActor->SetProperty( aProp );
|
||||||
|
float aFactor,aUnits;
|
||||||
|
myPreviewActor->SetResolveCoincidentTopology(true);
|
||||||
|
myPreviewActor->GetPolygonOffsetParameters(aFactor,aUnits);
|
||||||
|
myPreviewActor->SetPolygonOffsetParameters(aFactor,0.2*aUnits);
|
||||||
aProp->Delete();
|
aProp->Delete();
|
||||||
|
|
||||||
vtkProperty* aBackProp = vtkProperty::New();
|
|
||||||
GetColor( "SMESH", "backface_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 0, 255 ) );
|
|
||||||
aBackProp->SetColor(anRGB[0],anRGB[1],anRGB[2]);
|
|
||||||
myPreviewActor->SetBackfaceProperty( aBackProp );
|
|
||||||
aBackProp->Delete();
|
|
||||||
|
|
||||||
myViewWindow->AddActor( myPreviewActor );
|
myViewWindow->AddActor( myPreviewActor );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +137,7 @@ class TPolySimulation{
|
|||||||
vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
|
vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
|
||||||
myGrid->SetPoints(aGrid->GetPoints());
|
myGrid->SetPoints(aGrid->GetPoints());
|
||||||
|
|
||||||
if (theReset) ResetGrid(theReset);
|
ResetGrid(theReset);
|
||||||
|
|
||||||
vtkIdList *anIds = vtkIdList::New();
|
vtkIdList *anIds = vtkIdList::New();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user