mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0027817: Visualization, StdSelect_BRepOwner - copy transformation persistence flag
This commit is contained in:
parent
413b1c1a97
commit
e7879c5796
@ -114,6 +114,7 @@ void StdSelect_BRepOwner::Hilight(const Handle(PrsMgr_PresentationManager)& PM,
|
||||
if (!aSel.IsNull())
|
||||
{
|
||||
myPrsSh->SetZLayer (aSel->ZLayer());
|
||||
myPrsSh->SetTransformPersistence (aSel->GetTransformPersistenceMode(), aSel->GetTransformPersistencePoint());
|
||||
}
|
||||
|
||||
// highlight and set layer
|
||||
@ -176,6 +177,7 @@ void StdSelect_BRepOwner::HilightWithColor(const Handle(PrsMgr_PresentationManag
|
||||
if (!aSel.IsNull())
|
||||
{
|
||||
myPrsSh->SetZLayer (aSel->ZLayer());
|
||||
myPrsSh->SetTransformPersistence (aSel->GetTransformPersistenceMode(), aSel->GetTransformPersistencePoint());
|
||||
}
|
||||
|
||||
// highlight with color and set layer
|
||||
|
17
tests/bugs/vis/bug27817
Normal file
17
tests/bugs/vis/bug27817
Normal file
@ -0,0 +1,17 @@
|
||||
puts "========"
|
||||
puts "StdSelect_BRepOwner - copy transformation persistence flag"
|
||||
puts "========"
|
||||
|
||||
pload MODELING VISUALIZATION
|
||||
|
||||
vclear
|
||||
vinit View1
|
||||
vtrihedron t
|
||||
vdisplay -trsfPers trihedron -trsfPersPos -1 -1 40 t
|
||||
box b 30 40 50
|
||||
vdisplay -trsfPers trihedron -trsfPersPos -1 -1 40 -dispMode 1 -highMode 1 b
|
||||
vselmode b 4 1
|
||||
vmoveto 50 350
|
||||
if { [vreadpixel 50 350 rgb name] != "DARKTURQUOISE" } { puts "Error: face is not highlighted" }
|
||||
|
||||
vdump $imagedir/${casename}.png
|
Loading…
x
Reference in New Issue
Block a user