mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027567: VIS - possible memory leaks due to use of plain pointers: Fix also the VIS guide. Add the test v3d/ivtk/bug27567. Add a draw command "ivtkremove".
0027734: Configuration - TKIVtkDraw build fails with TBB: Remove unnecessary define statement (windows specific). Small correction of test case for issue CR27567
This commit is contained in:
@@ -161,7 +161,8 @@ bool IVtkVTK_View::DisplayToWorld (const gp_XY& theDisplayPnt, gp_XYZ& theWorldP
|
||||
return false;
|
||||
}
|
||||
|
||||
theWorldPnt = gp_XYZ (aCoords[0] / aCoords[3], aCoords[1] / aCoords[3], aCoords[2] / aCoords[3]);
|
||||
theWorldPnt = gp_XYZ (aCoords[0] / aCoords[3],
|
||||
aCoords[1] / aCoords[3], aCoords[2] / aCoords[3]);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -188,9 +189,10 @@ void IVtkVTK_View::GetCamera (Graphic3d_Mat4d& theProj,
|
||||
theIsOrtho = !IsPerspective();
|
||||
|
||||
vtkMatrix4x4* aCompositeProj =
|
||||
myRenderer->GetActiveCamera()->GetCompositeProjectionTransformMatrix (myRenderer->GetTiledAspectRatio(),
|
||||
0,
|
||||
1);
|
||||
myRenderer->GetActiveCamera()->
|
||||
GetCompositeProjectionTransformMatrix (myRenderer->GetTiledAspectRatio(),
|
||||
0,
|
||||
1);
|
||||
for (Standard_Integer aRow = 0; aRow < 4; ++aRow)
|
||||
{
|
||||
for (Standard_Integer aCol = 0; aCol < 4; ++aCol)
|
||||
|
Reference in New Issue
Block a user