[cgma-dev] [Fwd: Re: [MOAB-dev] Problems with ReadCGM]

Tim Tautges tautges at mcs.anl.gov
Mon Oct 26 22:08:33 CDT 2009


[Sorry, response should've gone to moab-dev, not cgma-dev.]

-------- Original Message --------
Subject: Re: [MOAB-dev] Problems with ReadCGM
Date: Mon, 26 Oct 2009 22:07:24 -0500
From: Tim Tautges <tautges at mcs.anl.gov>
To: Steve Jackson <sjackson at cae.wisc.edu>,  Developer information for cgma <cgma-dev at lists.mcs.anl.gov>
References: <91F3D8E0-5082-4CE9-BFCD-A63EFFF2CB62 at cae.wisc.edu>

This might be related to calling the wrong overloaded function in CGM, for get_graphics or something related to it.

Could you run the cubit-based code under gdb, stop in GeometryQueryEngine::get_graphics (all instances, if multiple),
and print a stack trace?  That would help determine which variants are being called on the way down to the function.

- tim

Steve Jackson wrote:
> I have an issue with ReadCGM that's been puzzling me for a couple of 
> days.  Perhaps someone on this list can help me determine the problem.
> 
> Below is a simple program that loads an acis .sat geometry into MOAB.  
> When MOAB is compiled with an acis-based CGM, the code below works 
> fine.  However, when MOAB is compiled against a cubit-based CGM, the 
> code below fails.
> 
>> #include "MBCore.hpp"
>> #include <iostream>
>>
>> int main(){
>>
>>   MBErrorCode rval;
>>   MBEntityHandle file_set;
>>   MBCore* MBI = new MBCore();
>>
>>   rval = MBI->load_file("geom.sat", file_set, "", NULL, 0, 0);
>>   if (MB_SUCCESS != rval) {
>>     std::cerr << "Couldn't read file. " << std::endl;
>>     return rval;
>>   }
>>
>>   return 0;
>> }
> 
> 
> The initial failure occurs in ReadCGM::load_file, at line 393 of 
> ReadCGM.cpp.  The first call to gqe->get_graphics() produces an error 
> message (below) and returns failure.  This in turn causes 
> ReadCGM::load_file() to fail.
> 
> The error message produced within the get_graphics() call is:
> 
>> ERROR: In AcisQueryEngine::get_Body
>>        Body is not a BodyACIS.
> 
> Note that get_graphics() is being called with a Curve object, not a Body.
> 
> The error happens predictably and seems to occur with any .sat file I 
> provide.  My CGM is built against Cubit 10.22, and MOAB is the latest 
> revision from SVN.  I also tried compiling MOAB with svn revision 3005, 
> just before the last major revision to ReadCGM.cpp, but got the same error.
> 
> Has anyone encountered this issue before?
> 
> Thanks,
> ~S
> 
> 

-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



-- 
================================================================
"You will keep in perfect peace him whose mind is
   steadfast, because he trusts in you."               Isaiah 26:3

              Tim Tautges            Argonne National Laboratory
          (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
          phone: (608) 263-8485      1500 Engineering Dr.
            fax: (608) 263-4499      Madison, WI 53706



More information about the cgma-dev mailing list