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

Closed
timthelion opened this Issue Sep 30, 2012 · 6 comments

Comments

Projects
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

>squarePipe
> (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...
Sorry.

Owner

colah commented Sep 30, 2012

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

Contributor

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.

Collaborator

julialongtin commented Mar 7, 2017

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

Collaborator

julialongtin commented Mar 7, 2017

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