EgtInterface 1.5j5 :

- aggiunte funzioni di trasformazione elementi geometrici base (Point, Vector, Frame).
This commit is contained in:
Dario Sassi
2014-10-20 14:02:10 +00:00
parent 46c5fce044
commit 4b52489cf8
11 changed files with 478 additions and 37 deletions
+3 -3
View File
@@ -277,7 +277,7 @@ __stdcall EgtSetGeoLine( const double ptP1[3], const double ptP2[3], BOOL bRedra
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_SCENE( pGseCtx, FALSE)
// disegno linea per distanza o similari
pGseCtx->m_pScene->SetGeoLine( Point3d( ptP1), Point3d( ptP2)) ;
pGseCtx->m_pScene->SetGeoLine( ptP1, ptP2) ;
if ( bRedraw)
pGseCtx->m_pScene->RedrawWindow() ;
return TRUE ;
@@ -372,7 +372,7 @@ __stdcall EgtSetViewCenter( const double ptP[3], BOOL bRedraw)
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_SCENE( pGseCtx, FALSE)
// imposto vista
pGseCtx->m_pScene->SetCenter( Point3d( ptP)) ;
pGseCtx->m_pScene->SetCenter( ptP) ;
if ( bRedraw)
pGseCtx->m_pScene->RedrawWindow() ;
return TRUE ;
@@ -442,7 +442,7 @@ __stdcall EgtProjectPoint( const double ptP[3], double ptWin[3])
VERIFY_SCENE( pScene, FALSE)
// eseguo la proiezione
Point3d ptView ;
if ( ! pScene->Project( Point3d( ptP), ptView))
if ( ! pScene->Project( ptP, ptView))
return FALSE ;
ptWin[0] = ptView.x ;
ptWin[1] = ptView.y ;