Home
Reply
Regular Contributor
xpz
Posts: 46

wrong output in exporting IGES file with option "TranslateSolidBodies"

[ Edited ]

When we test some IGES export cases, we find following code make the wrong output if we use option "TranslateSolidBodies",  but it is correct if do not use option "TranslateSolidBodies".

 

 // create 2 spheres
 outcome res;
 BODY *pSphere0 = NULL;
 res = api_solid_sphere(SPAposition( 0.0, 0.0, 0.0 ),// center
    			100,       // r
    			pSphere0      
    			);

 BODY *pSphere1 = NULL;
 res = api_solid_sphere(SPAposition( 50, 0.0, 0.0 ), // center
    			100,    // r
    			pSphere1      
    			);

 // subtract pSphere1 from pSphere0
 res = api_subtract( pSphere1, pSphere0 );

 // recreate pSphere1
 res = api_solid_sphere( SPAposition( 50, 0.0, 0.0 ), // center
    			100,    // r
    			pSphere1      
    			);

 // conversion
 ENTITY_LIST ipAcisEntities;
 ipAcisEntities.add( pSphere0 );
 ipAcisEntities.add( pSphere1 );

 SPAIAcisDocument src( &ipAcisEntities );
 SPAIDocument dst( "model.igs" );

 SPAIOptions options;
 SPAIValue solid( true );
 options.Add( SPAIOptionName::TranslateSolidBodies, solid );

 SPAIConverter converter;
 converter.SetOptions( options );
 converter.Convert( src, dst );

 // release BODY
 api_del_entity( pSphere1 );
 api_del_entity( pSphere0 );
 

The 1st figure is the output IGES shade with option "TranslateSolidBodies".

 

The 2nd figure is the output IGES shade without option "TranslateSolidBodies".

 

we use R19 sp3.

 

Thanks in advance.

w1.JPG
c1.JPG
Spatial Employee
bikash_parida
Posts: 23

Re: wrong output in exporting IGES file with option "TranslateSolidBodies"

Hi,

 

The issue appears to be fixed in latest build. Can you check using our R20 SP2 release?

 

Thanks

Bikash Parida
InterOp Developer
Regular Contributor
xpz
Posts: 46

Re: wrong output in exporting IGES file with option "TranslateSolidBodies"

We try R20 sp2, still get the same wrong result as r19 sp3.