[cgma-dev] Fwd: r5257 - cgm/trunk/geom/OCC
Iulian Grindeanu
iulian at mcs.anl.gov
Mon Dec 12 16:32:00 CST 2011
Hi Jane,
I was trying to build occ 6.5.1 on mcs network, but I had to modify the file
src/OSD/OSD_MAllocHook.cxx
according to this patch:
diff -urp ros/src/OSD/OSD_MAllocHook.cxx ../OCC651/ros/src/OSD/OSD_MAllocHook.cxx
--- ros/src/OSD/OSD_MAllocHook.cxx 2011-05-19 06:24:52.000000000 -0500
+++ ../OCC651/ros/src/OSD/OSD_MAllocHook.cxx 2011-12-12 11:52:45.193338446 -060
0
@@ -14,6 +14,7 @@
#include <set>
#include <map>
+#include <stdlib.h>
#ifndef SIZE_MAX
#define SIZE_MAX UINT_MAX
...
Otherwise, it errors out about missing atol() definition in this file.
What compilers are you using ?
I configured with this command:
./configure --enable-shared --enable-static --with-gl=/usr --with-xmu=/usr --with-
tcl=/usr/lib --with-tk=/usr/lib --disable-debug --enable-production --prefix=/home
s/fathom/3rdparty/occ/OpenCASCADE6.5.1/gcc CXXFLAGS=-I/homes/fathom/3rdparty/FTGL/
lib/include/FTGL --with-ftgl=/homes/fathom/3rdparty/FTGL/lib --with-freetype=/home
s/fathom/3rdparty/freetype-2.3.7/lib
Thanks,
Iulian
----- Original Message -----
From: "jiangtao ma" <jiangtao_ma at yahoo.com>
To: cgma-dev at mcs.anl.gov
Sent: Monday, December 12, 2011 9:47:41 AM
Subject: [cgma-dev] r5257 - cgm/trunk/geom/OCC
Author: janehu
Date: 2011-12-12 09:47:39 -0600 (Mon, 12 Dec 2011)
New Revision: 5257
Modified:
cgm/trunk/geom/OCC/occ_patches_6.5.1
Log:
Temporally fixed the mcnp2cad/INP-complement case, it's been there for quitely a long time that whenever it detected a curve curve intersection at middle point, it came out with a crash for finding next intersection of the intersect function in OCC, the code there said it's impossible, but it quite often happen. I know this might not be a best fix, but by not crash out and allow the flow going on, it returns the next intersection if it indicates so, will file a bug report, don't know if they will accept since it's an internal process, no UI command corresponding to this function.
Modified: cgm/trunk/geom/OCC/occ_patches_6.5.1
===================================================================
--- cgm/trunk/geom/OCC/occ_patches_6.5.1 2011-12-12 05:14:53 UTC (rev 5256)
+++ cgm/trunk/geom/OCC/occ_patches_6.5.1 2011-12-12 15:47:39 UTC (rev 5257)
@@ -92,3 +92,30 @@
if ((myuinf-U) <= mytolu && (U-myusup) <= mytolu &&
(myvinf-V) <= mytolv && (V-myvsup) <= mytolv) {
+--- TopOpeBRep_EdgesIntersector_1.cxx 2011-12-07 12:06:45.000000000 -0600
++++ ../src/TopOpeBRep/TopOpeBRep_EdgesIntersector_1.cxx 2011-12-07 12:15:44.000000000 -0600
+@@ -215,8 +215,8 @@
+ staB = staINON;
+ staA = staINON;
+ }
+- else // Middle/Middle is impossible
+- Standard_Failure::Raise("TopOpeBRep_EdgesIntersector : Situation Unknown MM");
++ //else // Middle/Middle is impossible
++ // Standard_Failure::Raise("TopOpeBRep_EdgesIntersector : Situation Unknown MM");
+ }
+ else { // posother = Head or End
+ Standard_Boolean opposite = IsOpposite1();
+@@ -258,9 +258,9 @@
+ staB = TopAbs_OUT;
+ staA = staINON;
+ }
+- else { // Middle is impossible
+- Standard_Failure::Raise("TopOpeBRep_EdgesIntersector : Situation Unknown M");
+- }
++ //else { // Middle is impossible
++ //Standard_Failure::Raise("TopOpeBRep_EdgesIntersector : Situation Unknown M");
++ //}
+ } // point is not a segment point
+
+ } // T.Situation == IntRes2d_Unknown
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20111212/7b9c15ca/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch651
Type: text/x-patch
Size: 6037 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20111212/7b9c15ca/attachment.bin>
More information about the cgma-dev
mailing list