[cgma-dev] OCC test program

hongjun at mcs.anl.gov hongjun at mcs.anl.gov
Mon Jun 8 12:19:12 CDT 2009


Hi! All

I am trying to test if OCC based CGM is working correctly in my computer.
It looks OCC and CGM are installed well, but the test program "CGM/itaps/testgeom_occ" is not working.
When I try "testgeom_occ", I got an abort signal (SIGABRT).

The following is a backtrace function list from debugger.
--------------------------------------------------------------------------------------------------
(gdb) bt
#0  0x00007f3bf70877e0 in ?? () from /homes/hongjun/lib/OpenCASCADE6.3.0/lib/libTKMath.so.0
#1  0x0000000000000315 in ?? ()
#2  0x00007f3bf7134e9c in gp_Trsf::SetValues (this=0x7fff05745f90, a11=<value optimized out>, a12=<value optimized out>, a13=<value optimized out>, a14=0, a21=<value optimized out>, a22=<value optimized out>, a23=<value optimized out>, a24=38, a31=0, a32=0, a33=1, a34=0, TolDist=9.9999999999999995e-08) at ../../../src/gp/gp_Trsf.cxx:308
#3  0x00007f3bf819324e in TopTools_LocationSet::Read (this=0x7fff05746418, IS=@0x7fff05746540) at ../../../src/TopTools/TopTools_LocationSet.cxx:223
#4  0x000000000064cc6b in OCCShapeAttributeSet::Read ()
#5  0x0000000000440abc in OCCQueryEngine::Read ()
#6  0x00000000004490c5 in OCCQueryEngine::import_solid_model ()
#7  0x00000000005963e0 in GeometryQueryTool::import_solid_model (this=0xab4760, file_name=0xabb890 "./../test/LeverArm.brep", file_type=0x6e0895 "OCC", logfile_name=0x0, heal_step=true, import_bodies=true, import_surfaces=true, import_curves=true, import_vertices=true, free_surfaces=true, imported_entities=0x0) at GeometryQueryTool.cpp:624
#8  0x0000000000596567 in GeometryQueryTool::read_geometry_file (this=0xab4760, fileName=0xabb488 "./../test/LeverArm.brep", includePath=0x7fff057469e0 "°´«", type=0x6e0895 "OCC") at GeometryQueryTool.cpp:213
#9  0x0000000000431912 in igeom_load_ ()
#10 0x0000000000422932 in gLoad_test ()
#11 0x0000000000422c4e in main ()
--------------------------------------------------------------------------------------------------

When I stepped into "gp_Trsf::SetValues" in #2, a value from matrix is larger than the given tolerance and it makes program is stopped.
So, I'd like to check at first if "testgeom_occ" and the input file "test/LeverArm.brep" are really working for others.
Otherwise, could anybody tell me some advices to solve this problem?
Thank you.

Hong-Jun Kim


More information about the cgma-dev mailing list