| 
  | 
Experiencing very unblob-like behaviour.   Any ideas why?
I'm sure I'm missing some small thing.
When I decrese the strength to 0.5 and the threshold is at 1, it gets
decidededly blobby - but in the reverse manner which I desire.   :(
#macro DiamondCubicBlob (Corner, S)
    #declare Quarter =
    blob {
    threshold 0.01
    sphere   {<0.25, 0.25, 0.25>, Sph, S texture {T1}}               // center
    sphere   {<0, 0, 0>, Sph, S texture {T1}}
    //cylinder {<0, 0, 0>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }
    sphere   {<0.5, 0, 0.5>, Sph, S texture {T1}}
    //cylinder {<0.5, 0, 0.5>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }
    sphere   {<0.5, 0.5, 0>, Sph, S texture {T1}}
    //cylinder {<0.5, 0.5, 0>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }
    sphere   {<0, 0.5, 0.5>, Sph, S texture {T1}}
    //cylinder {<0, 0.5, 0.5>, <0.25, 0.25, 0.25>, Cyl, S texture {T2} }
    } // end union Quarter
    union {
        object {Quarter}
        object {Quarter translate <0.5, 0.5, 0>}
        object {Quarter translate <0, 0.5, 0.5>}
        object {Quarter translate <0.5, 0, 0.5>}
        //threshold 1
        translate Corner
        }
#end // end macro DiamondCubicBlob
#declare Strength = 100;
#declare Step = 1;
#for (Z, 0, 10, Step)
    #for (Y, 0, 10, Step)
        #for (X, 0, 10, Step)
            #local Coordinate = <X, Y, Z>;
            DiamondCubicBlob (Coordinate, Strength)
        #end // end for X
    #end // end for Y
#end // end for Z
 Post a reply to this message 
 | 
  |