EgtExecutor 1.9j3 :
- aggiunta funzione Exe e Lua CreateSurfTmConvexHullInBBox.
This commit is contained in:
+49
-1
@@ -46,6 +46,18 @@ GetVectorLocal( IGeomDB* pGeomDB, const Vector3d& vtV, int nRefType, const Frame
|
||||
return vtVL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Vector3d
|
||||
GetVectorInRef( IGeomDB* pGeomDB, const Vector3d& vtV, const Frame3d& frLoc, int nRefType)
|
||||
{
|
||||
Vector3d vtVL( vtV) ;
|
||||
if ( nRefType == RTY_GLOB)
|
||||
vtVL.ToGlob( frLoc) ;
|
||||
else if ( nRefType == RTY_GRID)
|
||||
vtVL.LocToLoc( frLoc, pGeomDB->GetGridFrame()) ;
|
||||
return vtVL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Point3d
|
||||
GetPointLocal( IGeomDB* pGeomDB, const Point3d& ptP, int nRefType, const Frame3d& frLoc)
|
||||
@@ -58,6 +70,18 @@ GetPointLocal( IGeomDB* pGeomDB, const Point3d& ptP, int nRefType, const Frame3d
|
||||
return ptPL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Point3d
|
||||
GetPointInRef( IGeomDB* pGeomDB, const Point3d& ptP, const Frame3d& frLoc, int nRefType)
|
||||
{
|
||||
Point3d ptPL( ptP) ;
|
||||
if ( nRefType == RTY_GLOB)
|
||||
ptPL.ToGlob( frLoc) ;
|
||||
else if ( nRefType == RTY_GRID)
|
||||
ptPL.LocToLoc( frLoc, pGeomDB->GetGridFrame()) ;
|
||||
return ptPL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Plane3d
|
||||
GetPlaneLocal( IGeomDB* pGeomDB, const Plane3d& plPlane, int nRefType, const Frame3d& frLoc)
|
||||
@@ -70,6 +94,18 @@ GetPlaneLocal( IGeomDB* pGeomDB, const Plane3d& plPlane, int nRefType, const Fra
|
||||
return plPlaneL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Plane3d
|
||||
GetPlaneInRef( IGeomDB* pGeomDB, const Plane3d& plPlane, const Frame3d& frLoc, int nRefType)
|
||||
{
|
||||
Plane3d plPlaneL( plPlane) ;
|
||||
if ( nRefType == RTY_GLOB)
|
||||
plPlaneL.ToGlob( frLoc) ;
|
||||
else if ( nRefType == RTY_GRID)
|
||||
plPlaneL.LocToLoc( frLoc, pGeomDB->GetGridFrame()) ;
|
||||
return plPlaneL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Frame3d
|
||||
GetFrameLocal( IGeomDB* pGeomDB, const Frame3d& frRef, int nRefType, const Frame3d& frLoc)
|
||||
@@ -82,6 +118,18 @@ GetFrameLocal( IGeomDB* pGeomDB, const Frame3d& frRef, int nRefType, const Frame
|
||||
return frRefL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
Frame3d
|
||||
GetFrameInRef( IGeomDB* pGeomDB, const Frame3d& frRef, const Frame3d& frLoc, int nRefType)
|
||||
{
|
||||
Frame3d frRefL( frRef) ;
|
||||
if ( nRefType == RTY_GLOB)
|
||||
frRefL.ToGlob( frLoc) ;
|
||||
else if ( nRefType == RTY_GRID)
|
||||
frRefL.LocToLoc( frLoc, pGeomDB->GetGridFrame()) ;
|
||||
return frRefL ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
TransformPoint( IGeomDB* pGeomDB, int nId, int nRefId, Point3d& ptP)
|
||||
@@ -269,4 +317,4 @@ VerifySameFrame( IGeomDB* pGeomDB, const INTVECTOR& vIds)
|
||||
}
|
||||
}
|
||||
return true ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user