Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

weird spikes #64

timthelion opened this Issue Sep 30, 2012 · 6 comments


None yet
4 participants
>import Graphics.Implicit.Primitives
>import Graphics.Implicit
>import Data.NumInstances

>main =
> writeSTL
>  1
>  "foo.stl" $
>  squarePipe (10,10,10) 1 30 -- Change this value up or down, from 30 try 10 or 100, neither have spikes

> (x,y,z)
> diameter
> precision
>  =
> union $
> map
>  (\start->
>    translate
>     start
>     (rect3R 0 (0,0,0) (diameter,diameter,diameter))) $
> zip3
>  (map (\n->(n/precision)*x) [0..precision])
>  (map (\n->(n/precision)*y) [0..precision])
>  (map (\n->(n/precision)*z) [0..precision])

Hmm, actually you don't need Data.NumInstances there...


colah commented Sep 30, 2012

Thanks. This is an unpleasant bug in the rendering algorithm I really need to hunt down...


bgamari commented Nov 18, 2012

I think I've also seen problems along these lines, although I can't recall which models were affected. If I stumble upon one I can post it here if that would be helpful.


julialongtin commented Mar 7, 2017

I think i've hunted down all of the weird spikes.


julialongtin commented Mar 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment