<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[V2 Feedback : script hangs]]></title><description><![CDATA[<p dir="auto">Hello, I just updated to last V2 version (alpha 6) and my converted script that worked well with previous update now hangs (keep running after 10 minutes).<br />
<img src="/assets/uploads/files/1599814584193-capture-d-%C3%A9cran-de-2020-09-11-10-48-28-resized.png" alt="Capture d’écran de 2020-09-11 10-48-28.png" class=" img-responsive img-markdown" /><br />
The script is here : <a href="https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js" rel="nofollow ugc">https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js</a></p>
]]></description><link>https://openjscad.nodebb.com/topic/153/v2-feedback-script-hangs</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 03:19:23 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/153.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Sep 2020 08:59:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to V2 Feedback : script hangs on Sat, 12 Sep 2020 06:37:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/1">@z3dev</a> You're right, the problem was about winding and by correcting it for MeasureArea() &lt; 0 and triangulating was enough to make it work. I updated my source here : <a href="https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js" rel="nofollow ugc">https://github.com/gilboonet/gilboonet.github.io/blob/master/demos/gigi.js</a> It contains a volume exported from Wings3d, with Cube1_default() that contains data with quads and table() with this :</p>
<pre><code>function table() {
	
	var a = Cube1_default();
	
	var tmp = [];
	for(var i = 0; i &lt; a.polygons.length; i++){
		if (measureArea(a.polygons[i]) &lt; 0){
			a.polygons[i] = a.polygons[i].reverse();
		}
		for(var j = 1; j&lt; a.polygons[i].length-1; j++){
			tmp.push([a.polygons[i][0], a.polygons[i][j], a.polygons[i][j+1&rsqb;&rsqb;);
		}
	}
	
	return scale([8,8,8], polyhedron({points:a.points, faces:tmp}));
	
}

</code></pre>
<p dir="auto">There is certainly a way to write this code a more modern way with map() to speed it up.</p>
]]></description><link>https://openjscad.nodebb.com/post/349</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/349</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sat, 12 Sep 2020 06:37:31 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Sat, 12 Sep 2020 05:23:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> can you provide an example of the quad polygons? we may be able to fix this when converting from OBJ files.</p>
]]></description><link>https://openjscad.nodebb.com/post/347</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/347</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sat, 12 Sep 2020 05:23:23 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Sat, 12 Sep 2020 05:20:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> very nice!</p>
<p dir="auto">it seems that the issues were about the winding of the 2D geometries, and correcting geometries to wind CCW about the Z axis. is that correct? Any bugs that we need to look at?</p>
]]></description><link>https://openjscad.nodebb.com/post/346</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/346</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Sat, 12 Sep 2020 05:20:54 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Fri, 11 Sep 2020 16:26:44 GMT]]></title><description><![CDATA[<p dir="auto">I did the version with the little code that modify a polyhedron polygons if needed (first it checks the winding using measureArea() as I just read on a recent issue on github, then it turns it to triangles) . And it's nice to be able to have 3d and 2d rendered together.<br />
<img src="/assets/uploads/files/1599841579316-capture-d-%C3%A9cran-de-2020-09-11-18-21-24-resized.png" alt="Capture d’écran de 2020-09-11 18-21-24.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/344</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/344</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 11 Sep 2020 16:26:44 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Fri, 11 Sep 2020 12:52:08 GMT]]></title><description><![CDATA[<p dir="auto">I have it, the polyhedron that I exported from Wings3d to .jscad had quads, hopefully there's an option to export tris and it works with such polyhedron. About polyhedra with polygons instead of triangles, I now use a little code to do the conversion when reading a .obj file on my vanilla js unfolder, but didn't try it with jscad. I will try it with this example.<br />
<img src="/assets/uploads/files/1599828722734-capture-d-%C3%A9cran-de-2020-09-11-14-51-07-resized.png" alt="Capture d’écran de 2020-09-11 14-51-07.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/343</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/343</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 11 Sep 2020 12:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Fri, 11 Sep 2020 12:04:28 GMT]]></title><description><![CDATA[<p dir="auto">It seems to be an intersect problem, I try to get the intersection between my volume ( a polyhedron) and a cuboid and it hangs. Are there rules for CSG boolean operations ?<br />
<img src="/assets/uploads/files/1599825381053-capture-d-%C3%A9cran-de-2020-09-11-13-53-21-resized.png" alt="Capture d’écran de 2020-09-11 13-53-21.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/342</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/342</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 11 Sep 2020 12:04:28 GMT</pubDate></item><item><title><![CDATA[Reply to V2 Feedback : script hangs on Fri, 11 Sep 2020 10:18:36 GMT]]></title><description><![CDATA[<p dir="auto">With my first example which uses the extrudeWobble() from BezierSimpleExtrude.jscad example, it works, it is with a polyhedron that is more complex that it hangs, I will try to reduce it.<br />
(working example rendered with alpha 6)<br />
<img src="/assets/uploads/files/1599819482408-capture-d-%C3%A9cran-de-2020-09-11-12-13-12.png" alt="Capture d’écran de 2020-09-11 12-13-12.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/341</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/341</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 11 Sep 2020 10:18:36 GMT</pubDate></item></channel></rss>