EgtMachKernel 2.1c3 :
- corretto un piccolo errore di approssimazione in AddRawPartWithPart.
This commit is contained in:
Binary file not shown.
+3
-3
@@ -189,7 +189,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color
|
||||
// calcolo il punto di inserimento nel grezzo
|
||||
// determino l'ingombro del pezzo
|
||||
BBox3d b3Part ;
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part))
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT))
|
||||
return GDB_ID_NULL ;
|
||||
// recupero il box del solido del grezzo in globale
|
||||
int nRawSolidId = m_pGeomDB->GetFirstNameInGroup( nRawId, MACH_RAW_SOLID) ;
|
||||
@@ -203,7 +203,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color
|
||||
else if ( ( nGtype & GEO_CURVE) != 0) {
|
||||
// determino l'ingombro del pezzo
|
||||
BBox3d b3Part ;
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part))
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT))
|
||||
return GDB_ID_NULL ;
|
||||
// inserisco il grezzo
|
||||
double dZmin = b3Part.GetMin().z ;
|
||||
@@ -224,7 +224,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color
|
||||
else {
|
||||
// determino l'ingombro del pezzo
|
||||
BBox3d b3Part ;
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part))
|
||||
if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT))
|
||||
return GDB_ID_NULL ;
|
||||
// deduco i dati del grezzo
|
||||
b3Part.Expand( dOverMat, dOverMat, 0) ;
|
||||
|
||||
Reference in New Issue
Block a user