Extracting discontinuity points in pairs along a curve. C# - Grasshopper2024-03-29T10:07:35Zhttps://www.grasshopper3d.com/forum/topics/extracting-discontinuity-points-in-pairs-along-a-curve-c?commentId=2985220%3AComment%3A1563030&feed=yes&xn_auth=noHi Birk, I just got around to…tag:www.grasshopper3d.com,2016-07-15:2985220:Comment:15668352016-07-15T17:44:34.509ZWilliam Dunnhttps://www.grasshopper3d.com/profile/WilliamDunn
<p>Hi Birk, I just got around to looking at the fillet component you placed in my description and how it economized the flow. It really works out well in this case. Thanks again for being a part of this thread.</p>
<p>Hi Birk, I just got around to looking at the fillet component you placed in my description and how it economized the flow. It really works out well in this case. Thanks again for being a part of this thread.</p> It's very nice of you to make…tag:www.grasshopper3d.com,2016-07-11:2985220:Comment:15641042016-07-11T18:12:55.289ZWilliam Dunnhttps://www.grasshopper3d.com/profile/WilliamDunn
<p>It's very nice of you to make the added effort. I find it of great interest, and valuable learning, and it has led me to where I was ultimately intending to go - a 3D print (small scale), the Escher fort will need to wait until another day (epoch) after I overcome the dizziness.</p>
<p>It's very nice of you to make the added effort. I find it of great interest, and valuable learning, and it has led me to where I was ultimately intending to go - a 3D print (small scale), the Escher fort will need to wait until another day (epoch) after I overcome the dizziness.</p> Hi Joseph - thanks for your e…tag:www.grasshopper3d.com,2016-07-11:2985220:Comment:15640822016-07-11T16:41:48.702ZBirk Binnardhttps://www.grasshopper3d.com/profile/BirkBinnard
<p>Hi Joseph - thanks for your encouraging reply. To answer your questions:</p>
<p>1. The Jackalope add-on is excellent and I use it a lot. I have never had a problem with it, but the twisting algorithm it uses can result in some unexpected (to me anyway) results. What can happen is it produces a "waist" in the twisted result which I guess should be expected but is not always desired. Here is an example of how I used it twice in the same part: …</p>
<p>Hi Joseph - thanks for your encouraging reply. To answer your questions:</p>
<p>1. The Jackalope add-on is excellent and I use it a lot. I have never had a problem with it, but the twisting algorithm it uses can result in some unexpected (to me anyway) results. What can happen is it produces a "waist" in the twisted result which I guess should be expected but is not always desired. Here is an example of how I used it twice in the same part: <a href="http://www.thingiverse.com/thing:1601550" target="_blank">http://www.thingiverse.com/thing:1601550</a></p>
<p>2. I took out your code at bottom right because it just didn't seem to be needed for the filleted surfaces I made. Of course I could be wrong about this - the fillet function is clearly very sensitive to points of discontinuity, so maybe I got lucky and just stumbled on a few values that worked.</p>
<p>And yes, I know about how sensitive ruled and lofted surfaces can be. I was pleasantly surprise to discover some of those problems can be fixed by reversing an edge curve 's direction. The concept of a curve's direction had never occurred to me and, as you pointed out, I learned about it from some posts in this forum. </p>
<p>And would you believe my first job after graduating was in the Loft Lines department of an aerospace firm? There is some irony there I think.</p>
<p>3. I'm not sure what to say about the green surfaces in your image. My guess is they are the result of some quirks in the filleting or lofting code that have to do with connections between curve and surface segments. I spent many hours trying to get continuous, smooth surfaces lofted from what appeared to be smooth edge curves so I could make objects like this: <a href="http://www.thingiverse.com/thing:1596100" target="_blank">http://www.thingiverse.com/thing:1596100</a>. I finally was able to find a method that worked - again, adapted from something I found in a post here.</p>
<p>4. On my printed part there is no fillet between the side and the top. It just looks like that because the part is small and no printer can make truly sharp edges. It is just melted plastic after all. I have made parts with top/side fillets and I think those look much better than ones made without them (<a href="http://www.thingiverse.com/thing:1118050" target="_blank">http://www.thingiverse.com/thing:1118050</a>) , but again it requires some extra fussing to get the filleting to work properly.</p>
<p></p> The 3D printing is very cool.…tag:www.grasshopper3d.com,2016-07-11:2985220:Comment:15641192016-07-11T13:15:01.873ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>The 3D printing is very cool. I don't have the Jackalope plugin so not sure what I'm missing in your model?</p>
<p>No need to be shy about sharing code. I think "<span>amateur/self-taught GH user" applies to many of us here. </span>I enjoy this forum for two reasons:</p>
<ul>
<li>To see how other people do things - MUCH can be learned that way!</li>
<li>I enjoy solving puzzles.</li>
</ul>
<p>Curious that you discarded the code I wrote using discontinuity points to extract matching…</p>
<p>The 3D printing is very cool. I don't have the Jackalope plugin so not sure what I'm missing in your model?</p>
<p>No need to be shy about sharing code. I think "<span>amateur/self-taught GH user" applies to many of us here. </span>I enjoy this forum for two reasons:</p>
<ul>
<li>To see how other people do things - MUCH can be learned that way!</li>
<li>I enjoy solving puzzles.</li>
</ul>
<p>Curious that you discarded the code I wrote using discontinuity points to extract matching segments from the top and bottom perimeter curves? Using a Ruled or Lofted surface without that yields a badly twisted result, which was the reason William started this thread.</p>
<p>Adding your 'Fillet' to my code works great (the baked/red surface) but the 'RuleSrf' (green) is all messed up.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769168311?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769168311?profile=RESIZE_1024x1024" width="721" class="align-full"/></a>Your 3D print appears to have a fillet between the side and top surfaces but I don't see anything in your GH code to produce that?</p>
<p></p> I whomped up a quick 3D pri…tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15634822016-07-10T23:09:36.945ZBirk Binnardhttps://www.grasshopper3d.com/profile/BirkBinnard
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769168094?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769168094?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p></p>
<p>I whomped up a quick 3D print using my fillet modification. There is a trick to 3D printing things with fillets, and it is the necessity to invoke Rhino's _DivideAlongCreases _SplitAtTangents=_Yes function on the baked GH output before you export it as an STL file for printing. If this is not done the filleted surfaces will print with plane facets instead of…</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769168094?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769168094?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p></p>
<p>I whomped up a quick 3D print using my fillet modification. There is a trick to 3D printing things with fillets, and it is the necessity to invoke Rhino's _DivideAlongCreases _SplitAtTangents=_Yes function on the baked GH output before you export it as an STL file for printing. If this is not done the filleted surfaces will print with plane facets instead of smooth curves.</p>
<p>This is an obscure bug/feature in Rhino that drove me nuts for quite a while. I don't know if it's a recognized issue or will be fixed in Rhino 6. I sure hope so. </p>
<p>I am rather reluctant to post my fillet mods because I am strictly an amateur/self-taught GH user and therefore I tend to do things using comparatively crude/brute-force methods. In this case i deleted some of the original components and added a few to make the filleted shapes. The stuff in the top-right group is just for experimentation. It works but I'm not sure it's worth pursuing.</p> Yes, it looks like a great de…tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15637452016-07-10T22:22:58.173ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Yes, it looks like a great design for a fort.</p>
<p>Show us your Fillet Curve mod?</p>
<p>This isn't as beautiful as William's design but I got inspired by this image of a seven-sided fort:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769167107?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769167107?profile=original" width="400"></img></a></p>
<p>So wrote this bit that generates three different styles of "star forts", selected by the 'Value List' in the blue group and driven by point order lists:</p>
<ul>
<li>Fat…</li>
</ul>
<p>Yes, it looks like a great design for a fort.</p>
<p>Show us your Fillet Curve mod?</p>
<p>This isn't as beautiful as William's design but I got inspired by this image of a seven-sided fort:</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769167107?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769167107?profile=original" width="400" class="align-full"/></a></p>
<p>So wrote this bit that generates three different styles of "star forts", selected by the 'Value List' in the blue group and driven by point order lists:</p>
<ul>
<li>Fat 7</li>
<li>Thin 7</li>
<li>Eight</li>
</ul>
<p>The top offset can be negative (like William's) or positive, creating walls that slope out at the top. The radius of the inner cylinder must be adjusted so it doesn't overlap the inner points of the stars.</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769167270?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769167270?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Fascinating - and very instru…tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15637342016-07-10T19:56:10.796ZBirk Binnardhttps://www.grasshopper3d.com/profile/BirkBinnard
<p>Fascinating - and very instructive and illuminating. Thanks for posting. 2 comments:</p>
<p>1. Medieval architects would have loved to use this for castle design.</p>
<p>2. Perimeter curve behaves quite surprisingly when you wire it to the Fillet Curve function. I was investigating more organic looking shapes.</p>
<p>Fascinating - and very instructive and illuminating. Thanks for posting. 2 comments:</p>
<p>1. Medieval architects would have loved to use this for castle design.</p>
<p>2. Perimeter curve behaves quite surprisingly when you wire it to the Fillet Curve function. I was investigating more organic looking shapes.</p>
... and elegant!tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15637282016-07-10T17:48:47.345ZWilliam Dunnhttps://www.grasshopper3d.com/profile/WilliamDunn
<p></p>
<p>... and elegant!</p>
<p></p>
<p>... and elegant!</p> It's good to see the anatomy…tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15634602016-07-10T17:47:33.257ZWilliam Dunnhttps://www.grasshopper3d.com/profile/WilliamDunn
<p>It's good to see the anatomy of these machinations (strickly speaking in the indicative). It does shed light upon the darkness.</p>
<p><em>"Though wise men at their end know dark is right,</em></p>
<p><em>Because their words had forked no lightning they</em></p>
<p><em>Do not go gentle into that good night".</em></p>
<p>It's good to see the anatomy of these machinations (strickly speaking in the indicative). It does shed light upon the darkness.</p>
<p><em>"Though wise men at their end know dark is right,</em></p>
<p><em>Because their words had forked no lightning they</em></p>
<p><em>Do not go gentle into that good night".</em></p> Let me be the candle to dispe…tag:www.grasshopper3d.com,2016-07-10:2985220:Comment:15634342016-07-10T12:03:53.289ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Let me be the candle to dispel this darkness.</p>
<p>The problem that William described was solved with standard GH components, no "darkness" (C code) required.</p>
<p>The offset curve used for the top of this structure contained more segments (120) than the original curve created for the bottom (56), as revealed by using 'Explode' on both of them.</p>
<p>Using 'Disc (Discontinuity)' instead of 'Explode', however, returned the same number of points for both top and bottom: 56. So the 't'…</p>
<p>Let me be the candle to dispel this darkness.</p>
<p>The problem that William described was solved with standard GH components, no "darkness" (C code) required.</p>
<p>The offset curve used for the top of this structure contained more segments (120) than the original curve created for the bottom (56), as revealed by using 'Explode' on both of them.</p>
<p>Using 'Disc (Discontinuity)' instead of 'Explode', however, returned the same number of points for both top and bottom: 56. So the 't' values from 'Disc' were used to 'Shatter' both top and bottom curves, yielding 56 curve segments for both. Lofting these segment pairs worked perfectly.</p>
<p></p>
<p><em>I NEVER look at your posted code anymore Peter; once was enough for me.</em></p>