Cancel
Showing results for 
Search instead for 
Did you mean: 

getBrep

Experimenter
Experimenter

Hi,

I want to get the face-information of each JtkPart so I try to get the JtkBrep.

I use the traverse example and the problem is that my JtkBrep is always Null.

 

Here some code:

case JtkEntity::JtkPART:
      {
         JtkUnits nodeUnits = JtkUNKNOWN;
         JtkPart* part = (JtkPart*)CurrNode;        
         JtkBrep   *partBrep = NULL;
         part->getBrep(partBrep);
         if (partBrep){

....

}

 

I checked the importer options.

importer->setBrepLoadOption(JtkCADImporter::JtkTESS_AND_BREP);

 

 

 

1 REPLY

Re: getBrep

Siemens Genius Siemens Genius
Siemens Genius

Are you sure there is JTBrep in the file? Could be XT B-Rep.

There are a couple settings to get the XT B-Rep loaded with the file. We don't load by default as it impacts performance.

Try this ... take from the example program called Traverse

importer->setBrepLoadOption( JtkCADImporter::JtkTESS_AND_BREP );

importer->setXTBrepEditOption( JtkCADImporter::JtkXTBREP_FOR_EDIT_ON );
importer->setShapeLoadOption( JtkCADImporter::JtkALL_LODS )

Mike Z