<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1440623997177_25121"><span id="yui_3_16_0_1_1440623997177_25327">Yes, create a PR. We'll run in through buildbot.</span></div><div></div><div id="yui_3_16_0_1_1440623997177_25122"> </div><div class="signature" id="yui_3_16_0_1_1440623997177_25124"><div id="yui_3_16_0_1_1440623997177_25123"><div id="yui_3_16_0_1_1440623997177_20748" class=""> </div><div class="" id="yui_3_16_0_1_1440623997177_20236"><div id="yui_3_16_0_1_1440623997177_21501" dir="ltr" class=""><blockquote id="yui_3_16_0_1_1440623997177_21500" style="margin: 0px 0px 0px 0.8ex; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;" class=""><font face="monospace, monospace" size="1" id="yui_3_16_0_1_1440623997177_21502" class="">Rajeev Jain<br id="yui_3_16_0_1_1440623997177_25141" class="">Software Development Specialist<br id="yui_3_16_0_1_1440623997177_25143" class="">MCS, Argonne National Laboratory<br id="yui_3_16_0_1_1440623997177_25145" class="">1147, Bldg 240, O: 630-252-3176 </font></blockquote><blockquote id="yui_3_16_0_1_1440623997177_21674" style="margin: 0px 0px 0px 0.8ex; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;" class=""><font face="monospace, monospace" size="1" id="yui_3_16_0_1_1440623997177_21675" class="">Gmail: rajeeja GVoice 312-RAJ-EEV0<a rel="nofollow" style="color: rgb(17, 85, 204);" id="yui_3_16_0_1_1440623997177_25149" class="" href=""><br id="yui_3_16_0_1_1440623997177_25151" class=""></a>jain@anl.gov</font></blockquote></div></div></div></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, August 26, 2015 4:42 PM, "Vander Zee, Evan B." <vanderzee@anl.gov> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv9061476047">
<style><!--
#yiv9061476047
_filtered #yiv9061476047 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
_filtered #yiv9061476047 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
_filtered #yiv9061476047 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv9061476047 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv9061476047 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv9061476047
#yiv9061476047 p.yiv9061476047MsoNormal, #yiv9061476047 li.yiv9061476047MsoNormal, #yiv9061476047 div.yiv9061476047MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 a:link, #yiv9061476047 span.yiv9061476047MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv9061476047 a:visited, #yiv9061476047 span.yiv9061476047MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv9061476047 p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 p.yiv9061476047MsoAcetate, #yiv9061476047 li.yiv9061476047MsoAcetate, #yiv9061476047 div.yiv9061476047MsoAcetate
{margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv9061476047 span.yiv9061476047BalloonTextChar
{font-family:"Tahoma", "sans-serif";}
#yiv9061476047 p.yiv9061476047msoacetate, #yiv9061476047 li.yiv9061476047msoacetate, #yiv9061476047 div.yiv9061476047msoacetate
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 p.yiv9061476047msonormal, #yiv9061476047 li.yiv9061476047msonormal, #yiv9061476047 div.yiv9061476047msonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 p.yiv9061476047msochpdefault, #yiv9061476047 li.yiv9061476047msochpdefault, #yiv9061476047 div.yiv9061476047msochpdefault
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 p.yiv9061476047msonormal1, #yiv9061476047 li.yiv9061476047msonormal1, #yiv9061476047 div.yiv9061476047msonormal1
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 p.yiv9061476047msoacetate1, #yiv9061476047 li.yiv9061476047msoacetate1, #yiv9061476047 div.yiv9061476047msoacetate1
{margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv9061476047 p.yiv9061476047msochpdefault1, #yiv9061476047 li.yiv9061476047msochpdefault1, #yiv9061476047 div.yiv9061476047msochpdefault1
{margin:0in;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Times New Roman", "serif";}
#yiv9061476047 span.yiv9061476047msohyperlink
{}
#yiv9061476047 span.yiv9061476047msohyperlinkfollowed
{}
#yiv9061476047 span.yiv9061476047emailstyle18
{}
#yiv9061476047 span.yiv9061476047balloontextchar
{}
#yiv9061476047 span.yiv9061476047msohyperlink1
{color:blue;text-decoration:underline;}
#yiv9061476047 span.yiv9061476047msohyperlinkfollowed1
{color:purple;text-decoration:underline;}
#yiv9061476047 span.yiv9061476047emailstyle181
{font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv9061476047 span.yiv9061476047balloontextchar1
{font-family:"Tahoma", "sans-serif";}
#yiv9061476047 span.yiv9061476047EmailStyle34
{font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv9061476047 span.yiv9061476047EmailStyle35
{font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv9061476047 .yiv9061476047MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv9061476047 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv9061476047 div.yiv9061476047WordSection1
{}
--></style>
<div>
<div class="yiv9061476047WordSection1">
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">I have pushed up my changes to the vanderzee/faceVolSense branch. Should I create a pull request for this branch?</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">At this point I do not follow the convention of having surfaces oriented to return outward-facing normals if there is only one volume. Instead, I updated the code so that
if you ask for the face-to-volume sense, then you will get the proper answer – forward if the normal faces outward and reversed if the normal faces inward. Moreover, the facets that are returned from get_graphics agree with the normal vector, i.e., they are
oriented to be counterclockwise if you were looking down at the surface from the direction that the normal points toward. In other words, the triangle normal computed by the cross product of v1 – v0 with v2 – v0 would point in the same direction as the surface
normal.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">I think this works in most situations, but I suspect that there are some corner cases that I do not know enough about where this would fail. In particular, I am concerned
that merge, imprint, or other cases that make essential use of the bridge_sense may fail. Please let me know if you run across a case where what I’ve described is not the case.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">If we require support for getting all of the triangles returned from get_graphics to be counterclockwise with respect to normals facing outward from a particular volume,
then let’s discuss what an appropriate API would be for supporting that use case. It should be quite easy to implement something like that now, but in my opinion the API would have to include specifying the volume from which you want the triangle normal vectors
to face outward.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">-Evan</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv9061476047MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> cgma-dev-bounces@mcs.anl.gov [mailto:cgma-dev-bounces@mcs.anl.gov]
<b>On Behalf Of </b>Vander Zee, Evan B.<br>
<b>Sent:</b> Wednesday, August 26, 2015 11:57 AM<br>
<b>To:</b> cgma-dev@mcs.anl.gov<br>
<b>Subject:</b> Re: [cgma-dev] cgma-dev Digest, Vol 81, Issue 3</span></div>
</div>
</div>
<div class="yiv9061476047MsoNormal"> </div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">I’ve found the problem. My original diagnosis was incorrect.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">Here’s what the problem was. For the Cubit-generated bricks I was not traversing the edges in the expected order, so after I set up all of the edge senses properly, some
later code was reversing all of the edge senses for the Cubit-generated files. When I changed the code to traverse the edges in the expected order, I pass my modified test_edge_orient for brick_2.stp as well as for a box created inside of CGM and when reading
the file that contains the box created inside of CGM.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">After the latest code change, a new test is failing. This is the point_project test. The way the test is written, it projects a point onto a surface using the closest_point_trimmed
method. There are two edges that the point could project onto that are equally close. In the current CGM/OCC implementation, the edge that is chosen depends on the internal ordering of the edges, so it makes sense that my code changes could have flipped the
test to choose the other of the two equally close edges. I don’t see any documentation saying that the tie should be broken in a particular fashion, so I plan to change the test to allow projecting the point to either of the equally close edges.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">Thanks for your help. You should see some commits to my vanderzee/faceVolSense branch later today after I clean up the code a bit.</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;"> </span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;">-Evan</span></div>
<div class="yiv9061476047MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv9061476047MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;">
<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a> [<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">mailto:jain@mcs.anl.gov</a>]
<br>
<b>Sent:</b> Wednesday, August 26, 2015 10:41 AM<br>
<b>To:</b> Vander Zee, Evan B.; <a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
<b>Cc:</b> Andrew Davis<br>
<b>Subject:</b> Re: [cgma-dev] cgma-dev Digest, Vol 81, Issue 3</span></div>
</div>
</div>
<div class="yiv9061476047MsoNormal"> </div>
<div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41183">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Hi Evan,</span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41162">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;"> </span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41185">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">I'd say get the same file from CUBIT and from OCC directly, compare, but follow and adhere to OCC and submit a patch to CUBIT to update
their CGM. In my understanding CUBIT gets STEP support via CGM.</span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41200">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Specifically these two dev-lists would be better for specific discussions and understanding:</span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41165">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">1. OCE dev list: <a rel="nofollow" target="_blank" href="https://groups.google.com/forum/#!forum/oce-dev" id="yiv9061476047yui_3_16_0_1_1440534502235_41163">https://groups.google.com/forum/#!forum/oce-dev</a></span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41199">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">2. CUBIT help list:
<a rel="nofollow" ymailto="mailto:cubit-help@sandia.gov" target="_blank" href="mailto:cubit-help@sandia.gov">cubit-help@sandia.gov</a> </span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41198">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;"> </span></div>
</div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_41197">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">==</span></div>
<div id="yiv9061476047yui_3_16_0_1_1440534502235_42219">
<div id="yiv9061476047yui_3_16_0_1_1440534502235_42218">
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Rajeev Jain</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Software Development Specialist</span></div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">1134, Building 240</span></div>
</div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Mathematics and Computer Science Division</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Argonne National Laboratory</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Argonne IL, 60439, USA</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">O: 630-252-3176</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">Google: rajeeja, Voice: 312-725-3380</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">==</span></div>
</div>
</div>
</div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;"> </span></div>
<div>
<div class="yiv9061476047MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:10.0pt;color:black;"> </span></div>
</div>
<div>
<div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">On Tuesday, August 25, 2015 3:54 PM, "Vander Zee, Evan B." <<a rel="nofollow" ymailto="mailto:vanderzee@anl.gov" target="_blank" href="mailto:vanderzee@anl.gov">vanderzee@anl.gov</a>> wrote:</span><span style="color:black;"></span></div>
</div>
<div class="yiv9061476047MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;"> </span></div>
<div>
<div id="yiv9061476047">
<div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">I tried bringing the .sat file into Cubit 13.1 and exporting it as an .stp file. The result .stp file is not the same as brick_2.stp,
but it is similar. I also tried creating a brick in Cubit 13 and exporting to an .stp file. Then I tried creating a brick in Cubit 14.9 and exporting that to an .stp file. All of these have the same problem with edge orientation in the .stp file, and all
of them have the same problem when I test them against my revised test_edge_orient.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">One way to fix the problem by editing these .stp files is to change the geometry in the .stp file so that all normal vectors in the
brick face geometries point outward from the brick. The way these .stp files are written, the normal points outward from the top face of the brick, but points inward from the other five faces of the brick.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">I have deciphered some of the syntax for an STP file, but not all. The website that has helped me the most, I think, is the NIST website.
At <a rel="nofollow" target="_blank" href="http://www.nist.gov/el/msid/infotest/step-file-analyzer.cfm">
http://www.nist.gov/el/msid/infotest/step-file-analyzer.cfm</a> there is a STEP analyzer that can create a spreadsheet summary of the entities that are in an STP file. From looking at some sample output of this tool that the website provided at
<a rel="nofollow" target="_blank" href="http://www.nist.gov/el/msid/infotest/upload/STEP-File-Analyzer_stp.xlsx">
http://www.nist.gov/el/msid/infotest/upload/STEP-File-Analyzer_stp.xlsx</a> you can at least see the names of the attributes of some of the entities. I had also looked at a couple things on Wikipedia, including the link that Rajeev sent, but I did not find
them very helpful.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">For example, you can see that ADVANCED_FACE is defined from (1) a name, (2) a list of bounds, (3) a face_geometry, and (4) a same_sense
attribute. The same_sense attribute identifies the sense relative to any CLOSED_SHELL that the ADVANCED_FACE belongs to, if I am interpreting it correctly.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">In the .stp files that Cubit writes out for a brick, the bounds list for an ADVANCED_FACE happens to consists of one FACE_OUTER_BOUND,
which has an attribute that is an EDGE_LOOP, and the EDGE_LOOP has an edge_list attribute that is a list of ORIENTED_EDGE. Digging down into the entites inside an "oriented edge" and the attributes it has you find that for a Cubit brick the "oriented edge"
happens to be a sense together with an edge "curve" defined from two vertices and a line that passes through the two points. The line is defined by a point and a direction vector. I won't bore you with all of the specific entities involved. The key thing
to notice is that ORIENTED_EDGE defines the sense of the edge relative to the loop it belongs to, i.e., relative to the face that is bounded by that loop, and the direction vector tells the parametrization of the edge that gives the edge its native orientation.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">The face geometry in .stp files that Cubit writes out for a brick is a PLANE, which is defined by an AXIS2_PLACEMENT_3D. The spreadsheet
tells me that AXIS2_PLACEMENT_3D consists of (1) a name, (2) a location, (3) an axis, and (4) a ref_direction. Based on that and some of my reading of Open Cascade reference documention for Geom_Axis2Placement, as well as what makes sense when looking at
the data, I interpret the axis to be a normal vector to the plane, and the ref_direction to be a direction vector within the plane, probably in the direction of the u parameter, though I'm not sure yet whether that matters. The axis/normal vector defines
the native orientation of the plane so that we know what "counterclockwise" or "to the left of the edge" means and can interpret the same_sense attribute of the advanced face.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">Open Cascade clearly states that it supports STEP, as documented at the web page
<a rel="nofollow" target="_blank" href="http://www.opencascade.org/doc/occt-6.9.0/overview/html/occt_user_guides__step.html">
http://www.opencascade.org/doc/occt-6.9.0/overview/html/occt_user_guides__step.html</a>, and appears to do a good job of supporting it. We are using their STEPControl_Reader in the import_solid_model method in OCCQueryEngine.cpp to read .stp files into an
OCC geometry model.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">The issue appears to be whether the sense in an ORIENTED_EDGE should be multiplied by the sense in an ADVANCED_FACE. In the file written
by Cubit, the sense of the oriented edge <i>is</i> multiplied by the sense of the ADVANCED_FACE, but the way that it is being interpreted by OCC, it seems that the sense of the oriented edge
<i>should not be</i> multiplied by the sense of the advanced face. I haven’t finished researching how OCC interprets the ADVANCED_FACE and its sense when it reads STEP format, so I suppose that there could be a disconnect there.</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:black;">-Evan</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="font-size:11.0pt;color:#1F497D;"> </span><span style="color:black;"></span></div>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">From:</span></b><span style="font-size:10.0pt;color:black;"> Grindeanu, Iulian R.
<br>
<b>Sent:</b> Tuesday, August 25, 2015 12:48 PM<br>
<b>To:</b> Andrew Davis; <a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
<b>Cc:</b> Vander Zee, Evan B.<br>
<b>Subject:</b> RE: [cgma-dev] cgma-dev Digest, Vol 81, Issue 3</span><span style="color:black;"></span></div>
</div>
</div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
<div>
<div style="margin-bottom:12.0pt;">
<div class="yiv9061476047MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="font-size:10.0pt;color:black;">hmmm,<br>
I don't remember how I got the sat file.<br>
<br>
Maybe we could import the stp file again in cubit, "regularize" or something, and export again (with cubit 14, as an stp )<br>
will you see the same problems in your test?<br>
<br>
Evan, did you decipher the orientation issues/ syntax in an STP file? <br>
what websites did you find? standards, etc? What do OCC/OCE say about stp format? Is it fully supported? What do we do when we read stp with our OCC engine?
</span><span style="color:black;"></span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" align="center" style="text-align:center;background:white;">
<span style="color:black;">
<hr size="2" width="100%" align="center">
</span></div>
<div id="yiv9061476047divRpF368227">
<div style="margin-bottom:12.0pt;">
<div class="yiv9061476047MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">From:</span></b><span style="font-size:10.0pt;color:black;">
<a rel="nofollow" ymailto="mailto:cgma-dev-bounces@mcs.anl.gov" target="_blank" href="mailto:cgma-dev-bounces@mcs.anl.gov">cgma-dev-bounces@mcs.anl.gov</a> [cgma-dev-bounces@mcs.anl.gov] on behalf of Andrew Davis [andrewdavis.davis@gmail.com]<br>
<b>Sent:</b> Tuesday, August 25, 2015 12:06 PM<br>
<b>To:</b> <a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
<b>Subject:</b> Re: [cgma-dev] cgma-dev Digest, Vol 81, Issue 3</span><span style="color:black;"></span></div>
</div>
</div>
<div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">Hi Evan
</span></div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">My assumption would be that it was converted via Cubit from the equivalent *.sat file.</span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">Looking at git blame its from Hong-Jun Kim (stp), the sat is from Iulian. </span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">However, the stp is older than the sat by about a year</span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">Andy</span></div>
</div>
</div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
<div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">On Tue, Aug 25, 2015 at 12:00 PM, <<a rel="nofollow" ymailto="mailto:cgma-dev-request@mcs.anl.gov" target="_blank" href="mailto:cgma-dev-request@mcs.anl.gov">cgma-dev-request@mcs.anl.gov</a>> wrote:</span></div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;">Send cgma-dev mailing list submissions to<br>
<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a rel="nofollow" target="_blank" href="https://lists.mcs.anl.gov/mailman/listinfo/cgma-dev">
https://lists.mcs.anl.gov/mailman/listinfo/cgma-dev</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a rel="nofollow" ymailto="mailto:cgma-dev-request@mcs.anl.gov" target="_blank" href="mailto:cgma-dev-request@mcs.anl.gov">cgma-dev-request@mcs.anl.gov</a><br>
<br>
You can reach the person managing the list at<br>
<a rel="nofollow" ymailto="mailto:cgma-dev-owner@mcs.anl.gov" target="_blank" href="mailto:cgma-dev-owner@mcs.anl.gov">cgma-dev-owner@mcs.anl.gov</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of cgma-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. CGM brick orientation test (Vander Zee, Evan B.)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 25 Aug 2015 16:54:28 +0000<br>
From: "Vander Zee, Evan B." <<a rel="nofollow" ymailto="mailto:vanderzee@anl.gov" target="_blank" href="mailto:vanderzee@anl.gov">vanderzee@anl.gov</a>><br>
To: "Jain, Rajeev" <<a rel="nofollow" ymailto="mailto:jain@mcs.anl.gov" target="_blank" href="mailto:jain@mcs.anl.gov">jain@mcs.anl.gov</a>><br>
Cc: "<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>" <<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a>><br>
Subject: [cgma-dev] CGM brick orientation test<br>
Message-ID: <<a rel="nofollow" ymailto="mailto:553D5F34658FB846ACEA00D6140EAC6897ADB09F@PAYTON.anl.gov" target="_blank" href="mailto:553D5F34658FB846ACEA00D6140EAC6897ADB09F@PAYTON.anl.gov">553D5F34658FB846ACEA00D6140EAC6897ADB09F@PAYTON.anl.gov</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Do you know the source of the file itaps/brick_2.stp in the CGM repository? It looks to me like the edges in the file have improper edge orientations.<br>
<br>
I have some local changes to CGM that, I thought, fix the face-to-volume sense bug. I am testing the changes in various ways and learning more about OCC and CGM. This version of itaps/brick_2.stp has been used by the test_edge_orient test in the itaps directory.
I disabled the test previously in my edgeFaceSense branch when I fixed an edge-to-face orientation problem. I am working on rewriting the test now so that it properly tests the face-to-volume sense and the edge-to-face sense for both OCC and ACIS.<br>
<br>
I have the face-to-volume part of the test working fine for OCC now, but my revised edge orientation part of the test is failing. This part of the test tests edge orientation after reading the itaps/brick_2.stp file. When I create a 2 x 2 x 2 brick using
iGeom_createBrick rather than reading the brick from file, my revised edge orientation part of the test passes. If I save that brick to a file, then I can also read the file I've saved, and the edge orientation part of the test passes.<br>
<br>
I looked at the brick_2.stp file and my human-readable interpretation is that the edge orientations are encoded incorrectly. I think I could correct it by hand within the file by changing the orientation of some of the oriented edges at entities 106 through
144. I want to know whether it's okay to do that or the STEP file came from some source outside of CGM that we need to be able to support. The brick that CGM writes out after iGeom_createBrick is represented quite differently from the way the one in itaps/brick_2.stp
is represented.<br>
<br>
It would help me if I could get a reference for the geometric STEP entities. I have pieced together a few things through Internet searches, but I have not been able to find good reference documentation for the parts of STEP that are used by CGM. Do you know
of any?<br>
<br>
-Evan<br>
<a rel="nofollow" ymailto="mailto:vanderzee@anl.gov" target="_blank" href="mailto:vanderzee@anl.gov">vanderzee@anl.gov</a><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
cgma-dev mailing list<br>
<a rel="nofollow" ymailto="mailto:cgma-dev@mcs.anl.gov" target="_blank" href="mailto:cgma-dev@mcs.anl.gov">cgma-dev@mcs.anl.gov</a><br>
<a rel="nofollow" target="_blank" href="https://lists.mcs.anl.gov/mailman/listinfo/cgma-dev">https://lists.mcs.anl.gov/mailman/listinfo/cgma-dev</a><br>
<br>
<br>
End of cgma-dev Digest, Vol 81, Issue 3<br>
***************************************</span></div>
</div>
</div>
<div>
<div class="yiv9061476047MsoNormal" style="background:white;"><span style="color:black;"> </span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="yiv9061476047MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;"> </span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><br><br></div> </div> </div> </div></div></body></html>