<div dir="ltr"><div><div><div><br>Hi,<br><br>There has been some update in this topic?<br><br></div>How can I do it without making a triangulation?<br><br></div>Thanks in advance<br><br></div>Best regards</div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-04 14:28 GMT+01:00 Andy Yeh <span dir="ltr"><<a href="mailto:a.yeh@qut.edu.au" target="_blank">a.yeh@qut.edu.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi All,
<div><br>
</div>
<div>I believe this should have been fixed with the PR #581 <a href="https://github.com/x3dom/x3dom/pull/581" target="_blank">https://github.com/x3dom/x3dom/pull/581</a> by Andreas Plesch.</div>
<div>If you use the current dev version of x3dom <a href="http://x3dom.org/download/dev/x3dom.js" target="_blank">http://x3dom.org/download/dev/x3dom.js</a> the polygons should render correctly.</div>
<div><br>
</div>
<div>
<div>--<br>
Andy</div>
<br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On 4 Dec 2015, at 7:53 PM, Bederov, Sergey <<a href="mailto:bederov@cortona3d.com" target="_blank">bederov@cortona3d.com</a>> wrote:</div>
<br>
</div></div><div>
<div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div class="h5">
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US">Hello Cris and all,<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US">Apparently X3DOM is having problems rendering large non-convex polygons, even if convex=“false”. Try triangulating the red polygon or separating it into smaller
 pieces.<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US">A note to X3DOM developers. In the source code I have found the following line:<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:9pt;font-family:'Lucida Console';color:navy" lang="EN-US">while(linklist.length >= 3  && count < 15) {<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US">Apparently the “15” was added to avoid infinite recursion. In fact, it is limiting the number of “ears” clipped from the non-convex polygon. If a polygon is too
 complex, the algorithm tessellates a number of “ears” and then stops, leaving the remaining “ears” and the interior of the polygon empty. Increasing this value to 30 renders Cris’s polygon correctly. Anyway, I think it’s not a good solution because the polygons
 can have arbitrary complexity. Probably a different mechanism of detecting infinite recursion should be used?<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif;text-align:right">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US">                                                                                          Sergey Bederov<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:10pt;font-family:Arial,sans-serif;color:navy" lang="EN-US"><u></u> <u></u></span></div>
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-US"><u></u> <u></u></span></div>
</div></div><div style="border-style:none none none solid;border-left-color:blue;border-left-width:1.5pt;padding:0cm 0cm 0cm 4pt"><div><div class="h5">
<div>
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0cm 0cm">
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US"><span> </span>x3d-public [<a href="mailto:x3d-public-bounces@web3d.org" style="color:purple;text-decoration:underline" target="_blank">mailto:x3d-public-bounces@web3d.org</a>]<span> </span><b>On
 Behalf Of<span> </span></b>Roy Walmsley<br>
<b>Sent:</b><span> </span>Wednesday, December 02, 2015 6:23 PM<br>
<b>To:</b><span> </span>'Cris Lacumba'; 'x3dom mlist';<span> </span><a href="mailto:x3d-public@web3d.org" style="color:purple;text-decoration:underline" target="_blank">x3d-public@web3d.org</a><br>
<b>Subject:</b><span> </span>Re: [x3d-public] 3D wrong visualization<u></u><u></u></span></div>
</div>
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-US"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">Cris,<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">I don’t know the answer, but I can suggest some questions.<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">Are your polygons being drawn on both sides? When you look at the X3DOM visualization, are the polygons being drawn on the other side?<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">How are you specifying the polygons in your model? Are you able to supply a listing of the model?<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">Regards,<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB">Roy<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" lang="EN-GB"><u></u> <u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif" lang="EN-US"><span> </span>x3d-public [<a href="mailto:x3d-public-bounces@web3d.org" style="color:purple;text-decoration:underline" target="_blank">mailto:x3d-public-bounces@web3d.org</a>]<span> </span><b>On
 Behalf Of<span> </span></b>Cris Lacumba<br>
<b>Sent:</b><span> </span>02 December 2015 11:44<br>
<b>To:</b><span> </span>x3dom mlist;<span> </span><a href="mailto:x3d-public@web3d.org" style="color:purple;text-decoration:underline" target="_blank">x3d-public@web3d.org</a><br>
<b>Subject:</b><span> </span>[x3d-public] 3D wrong visualization<u></u><u></u></span></div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB"><u></u> <u></u></span></div>
</div></div><div><div><div class="h5">
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin:0cm 0cm 12pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">Hi all,<u></u><u></u></span></p>
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">I'm visualizing some polygons in X3DOM and they are not correctly visualized.<u></u><u></u></span></div>
</div>
<p class="MsoNormal" style="margin:0cm 0cm 12pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">In InstantReality (black background) is correctly visualized, however, in X3DOM I get an incorrect visualization.<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin:0cm 0cm 12pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">Is there some solution?<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin:0cm 0cm 12pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">Thanks in advance<u></u><u></u></span></p>
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB">Best regards<span> </span><u></u><u></u></span></div>
</div></div><div>
<div>
<div>
<div>
<div>
<div>
<div style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif">
<span lang="EN-GB"><br>
</span><span><image001.jpg></span><span><image002.jpg></span><span lang="EN-GB"><u></u><u></u></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><span class="">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">------------------------------------------------------------------------------</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Go
 from Idea to Many App Stores Faster with Intel(R) XDK</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Give
 your users amazing mobile app experiences with Intel(R) XDK.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Use
 one codebase in this all-in-one HTML5 development environment.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Design,
 debug & build mobile apps & 2D/3D high-impact games for multiple OSs.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140_______________________________________________" style="color:purple;text-decoration:underline;font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140_______________________________________________</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">X3dom-users
 mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="mailto:X3dom-users@lists.sourceforge.net" style="color:purple;text-decoration:underline;font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">X3dom-users@lists.sourceforge.net</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="https://lists.sourceforge.net/lists/listinfo/x3dom-users" style="color:purple;text-decoration:underline;font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.sourceforge.net/lists/listinfo/x3dom-users</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</span></div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div><br></div>