<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi, Hong-Jun<br><br>Please see r5105 for fix of your model. Thanks.<br><br>Jane<br><br>--- On <b>Tue, 8/16/11, Hong-Jun Kim <i>&lt;hongjun@mcs.anl.gov&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Hong-Jun Kim &lt;hongjun@mcs.anl.gov&gt;<br>Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>To: "Jiangtao Hu" &lt;jiangtao_ma@yahoo.com&gt;<br>Cc: cgma-dev@mcs.anl.gov<br>Date: Tuesday, August 16, 2011, 5:27 PM<br><br><div class="plainMail">Hi, Jane<br><br>I thought merged entities had wrong edge directions, but it is because the original geometry had wrong edge directions set in loading, then merge comparison failed to find overlapped pairs merged.<br><br>So, I attached the original step geometry with modified "test_edge_orient" test code which checks edge directions respect to
 2 parent faces for all imported volumes.<br><br>Please check the "test_edge_orient" test in OCC with the attached step file which is passed in ACIS kernel.<br>Thanks.<br><br>Hong-Jun<br><br><br>----- Original Message -----<br>&gt; From: "Hong-Jun Kim" &lt;<a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>&gt;<br>&gt; To: "Jiangtao Hu" &lt;<a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt; Sent: Monday, August 15, 2011 4:06:57 PM<br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; Thank you for your fix.<br>&gt; <br>&gt; It works for most test geometries except the one with merged entities.<br>&gt; It looks there are wrong merged edge directions respect to parent<br>&gt; surfaces.<br>&gt;
 <br>&gt; I am trying to make a test code for this, but before that, can you<br>&gt; think any suspected code for this problem?<br>&gt; Thanks.<br>&gt; <br>&gt; -----------------------------<br>&gt; Hong-Jun Kim<br>&gt; Post-doc researcher<br>&gt; MCS, Argonne National Laboratory<br>&gt; 9700 S. Cass Ave. B240/R2147<br>&gt; Argonne, IL 60439<br>&gt; 630-252-4791<br>&gt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a><br>&gt; -----------------------------<br>&gt; <br>&gt; ----- Original Message -----<br>&gt; From: "Jiangtao Hu" &lt;<a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a>&gt;<br>&gt; To: "Jane Hu" &lt;<a ymailto="mailto:janejhu@gmail.com" href="/mc/compose?to=janejhu@gmail.com">janejhu@gmail.com</a>&gt;, "Hong-Jun Kim"<br>&gt; &lt;<a ymailto="mailto:hongjun@mcs.anl.gov"
 href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>&gt;<br>&gt; Cc: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt; Sent: Monday, August 15, 2011 12:32:21 PM<br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; <br>&gt; Hi, Hong-Jun,<br>&gt; <br>&gt; Please see r5102 for fix of your model. Thanks for fixing the nightly<br>&gt; build issues.<br>&gt; <br>&gt; Jane<br>&gt; <br>&gt; --- On Fri, 8/12/11, Hong-Jun Kim &lt;<a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>&gt; wrote:<br>&gt; <br>&gt; <br>&gt; <br>&gt; From: Hong-Jun Kim &lt;<a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a>&gt;<br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; To: "Jane Hu" &lt;<a ymailto="mailto:janejhu@gmail.com"
 href="/mc/compose?to=janejhu@gmail.com">janejhu@gmail.com</a>&gt;<br>&gt; Cc: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>, "Jiangtao Hu" &lt;<a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a>&gt;<br>&gt; Date: Friday, August 12, 2011, 5:53 PM<br>&gt; <br>&gt; <br>&gt; Hi, Jane<br>&gt; <br>&gt; Could you please check the attached step file for "test_edge_orient"<br>&gt; again?<br>&gt; 4 similar shaped faces have problems in the test with OCC kernel.<br>&gt; Thanks.<br>&gt; <br>&gt; -----------------------------<br>&gt; Hong-Jun Kim<br>&gt; Post-doc researcher<br>&gt; MCS, Argonne National Laboratory<br>&gt; 9700 S. Cass Ave. B240/R2147<br>&gt; Argonne, IL 60439<br>&gt; 630-252-4791<br>&gt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a><br>&gt;
 -----------------------------<br>&gt; <br>&gt; ----- Original Message -----<br>&gt; From: "Jane Hu" &lt; <a ymailto="mailto:janejhu@gmail.com" href="/mc/compose?to=janejhu@gmail.com">janejhu@gmail.com</a> &gt;<br>&gt; To: "Jiangtao Hu" &lt; <a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a> &gt;<br>&gt; Cc: "Hong-Jun Kim" &lt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a> &gt;, <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt; Sent: Friday, August 12, 2011 12:31:22 PM<br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; <br>&gt; Hi, Hong-Jun<br>&gt; <br>&gt; Please use r5098 to fix the problem seen in your model. Thanks.<br>&gt; <br>&gt; Jane<br>&gt; <br>&gt; <br>&gt; On Thu, Aug 11, 2011 at 10:58 PM, Jiangtao Hu &lt; <a
 ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a><br>&gt; &gt; wrote:<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Sure, I'll look into this case tomorrow. Thanks for the model and your<br>&gt; time finding it.<br>&gt; <br>&gt; Jane<br>&gt; <br>&gt; --- On Thu, 8/11/11, Hong-Jun Kim &lt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a> &gt; wrote:<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; From: Hong-Jun Kim &lt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a> &gt;<br>&gt; <br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; To: <a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a><br>&gt; Cc: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt;
 Date: Thursday, August 11, 2011, 5:12 PM<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Hi, jane<br>&gt; <br>&gt; I attached a step geometry file (with a picture) having problem in OCC<br>&gt; kernel.<br>&gt; It passes the "test_edge_orient" in ACIS kernel but doesn't in OCC.<br>&gt; Could you please check this file?<br>&gt; Thanks.<br>&gt; <br>&gt; Hong-Jun<br>&gt; <br>&gt; ----- Original Message -----<br>&gt; From: "Hong-Jun Kim" &lt; <a ymailto="mailto:hongjun@mcs.anl.gov" href="/mc/compose?to=hongjun@mcs.anl.gov">hongjun@mcs.anl.gov</a> &gt;<br>&gt; To: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt; Sent: Thursday, August 11, 2011 3:06:25 PM<br>&gt; Subject: Re: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; <br>&gt; Thank you for this change.<br>&gt; <br>&gt; I am testing it with complex geometries and it looks there are some<br>&gt; improvement but it is not working for
 some cases.<br>&gt; I am still finding where the problem is coming from and let me inform<br>&gt; you the result.<br>&gt; Thanks.<br>&gt; <br>&gt; Hong-Jun<br>&gt; <br>&gt; ----- Original Message -----<br>&gt; &gt; From: "jiangtao ma" &lt; <a ymailto="mailto:jiangtao_ma@yahoo.com" href="/mc/compose?to=jiangtao_ma@yahoo.com">jiangtao_ma@yahoo.com</a> &gt;<br>&gt; &gt; To: <a ymailto="mailto:cgma-dev@mcs.anl.gov" href="/mc/compose?to=cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>&gt; &gt; Sent: Thursday, August 11, 2011 9:21:55 AM<br>&gt; &gt; Subject: [cgma-dev] r5088 - cgm/trunk/geom/OCC<br>&gt; &gt; Author: janehu<br>&gt; &gt; Date: 2011-08-11 09:21:55 -0500 (Thu, 11 Aug 2011)<br>&gt; &gt; New Revision: 5088<br>&gt; &gt;<br>&gt; &gt; Modified:<br>&gt; &gt; cgm/trunk/geom/OCC/OCCCurve.cpp<br>&gt; &gt; cgm/trunk/geom/OCC/OCCModifyEngine.cpp<br>&gt; &gt; cgm/trunk/geom/OCC/OCCQueryEngine.cpp<br>&gt; &gt; cgm/trunk/geom/OCC/OCCSurface.cpp<br>&gt; &gt;
 Log:<br>&gt; &gt; Added changes to make coedge and loop direction correct. For<br>&gt; &gt; surfaces,<br>&gt; &gt; opposite to acis where face is always forward direction respect to<br>&gt; &gt; its<br>&gt; &gt; volume, OCC surfaces and shell might be reversed direction with<br>&gt; &gt; respect to its solid. This may cause volume mesh fail, I am looking<br>&gt; &gt; into it now, and might need to change some logic in the geom level<br>&gt; &gt; of<br>&gt; &gt; cgm.<br>&gt; &gt;<br>&gt; &gt; Modified: cgm/trunk/geom/OCC/OCCCurve.cpp<br>&gt; &gt; ===================================================================<br>&gt; &gt; --- cgm/trunk/geom/OCC/OCCCurve.cpp 2011-08-09 22:27:32 UTC (rev<br>&gt; &gt; 5087)<br>&gt; &gt; +++ cgm/trunk/geom/OCC/OCCCurve.cpp 2011-08-11 14:21:55 UTC (rev<br>&gt; &gt; 5088)<br>&gt; &gt; @@ -123,10 +123,10 @@<br>&gt; &gt;<br>&gt; &gt; void OCCCurve::set_TopoDS_Edge(TopoDS_Edge edge)<br>&gt; &gt; {<br>&gt; &gt; -
 if(edge.IsEqual(*myTopoDSEdge))<br>&gt; &gt; + if(edge.IsSame(*myTopoDSEdge))<br>&gt; &gt; return;<br>&gt; &gt;<br>&gt; &gt; - if(!edge.IsSame(*myTopoDSEdge))<br>&gt; &gt; + else<br>&gt; &gt; {<br>&gt; &gt; DLIList&lt;OCCPoint*&gt; points ;<br>&gt; &gt; this-&gt;get_points(points);<br>&gt; &gt; @@ -737,8 +737,7 @@<br>&gt; &gt; double OCCCurve::start_param()<br>&gt; &gt; {<br>&gt; &gt; double start = 0.0, end = 0.0;<br>&gt; &gt; -<br>&gt; &gt; - get_param_range( start, end );<br>&gt; &gt; + get_param_range( start, end );<br>&gt; &gt; return start;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; @@ -781,29 +780,22 @@<br>&gt; &gt; {<br>&gt; &gt; TopTools_IndexedMapOfShape M;<br>&gt; &gt; TopExp::MapShapes(*myTopoDSEdge, TopAbs_VERTEX, M);<br>&gt; &gt; - TopologyBridge *point1, *point2;<br>&gt; &gt; - if (M.Extent()==1) {<br>&gt; &gt; - point1 = OCCQueryEngine::instance()-&gt;occ_to_cgm(M(1));<br>&gt; &gt; - if (point1)<br>&gt; &gt; -
 children.append_unique(point1);<br>&gt; &gt; - } else if (M.Extent()==2) {<br>&gt; &gt; - if ( fabs(BRep_Tool::Parameter(TopoDS::Vertex(M(1)),<br>&gt; &gt; *myTopoDSEdge)-start_param()) &gt;<br>&gt; &gt; - fabs(BRep_Tool::Parameter(TopoDS::Vertex(M(2)),<br>&gt; &gt; *myTopoDSEdge)-start_param()) ) {<br>&gt; &gt; - point1 = OCCQueryEngine::instance()-&gt;occ_to_cgm(M(2));<br>&gt; &gt; - point2 = OCCQueryEngine::instance()-&gt;occ_to_cgm(M(1));<br>&gt; &gt; - } else {<br>&gt; &gt; - point1 = OCCQueryEngine::instance()-&gt;occ_to_cgm(M(1));<br>&gt; &gt; - point2 = OCCQueryEngine::instance()-&gt;occ_to_cgm(M(2));<br>&gt; &gt; - }<br>&gt; &gt; - if (point1 &amp;&amp; point1 == point2) {<br>&gt; &gt; - children.append_unique(point1);<br>&gt; &gt; - } else {<br>&gt; &gt; - if (point1)<br>&gt; &gt; - children.append_unique(point1);<br>&gt; &gt; - if (point2)<br></div></blockquote></td></tr></table>