(for some reason it doesn't render for me unless I download it then
open it in my browser, or inkscape)
https://raw.githubusercontent.com/nmz787/microfluidic-cad/master/implicitCAD/output/tobacco_mesophyll_protoplast_fusion_device.svg
and the source code:
https://github.com/nmz787/microfluidic-cad/blob/master/implicitCAD/tobacco_mesophyll_protoplast_fusion_device.escad
The 3D STL snapshot created is 50MB. Both the STL and SVG have flaws... the posts are still not well-defined everywhere, and the STL particularly looks bad.
I just bumped the $quality up to 1400 from 400 and let it render when I went to bed. This morning I have a 145MB STL file, and a weird 'skin' effect where the extrusion seems to have only had the 'difference()' operation applied to the bulk but not the surface.
Here are 4 snapshots from meshlab that try to show the strange outcome:
http://imgur.com/sXVkRnL,si4Rp2r,sraO5Va,EHoZ5XB
I also experienced this at some lower quality settings (around 50), and was able to slightly change the quality setting to a nearby value (say 60) and the problem would disappear. I guess I will try bumping up the quality and re-render, for now.
Here's what I am trying now:
union()
{
linear_extrude(protoplast_chamber_height)
{
difference()
{
pdms_slab(distance_output_port_from_center);
protoplast_bottom_layer_2d(args);
}
}
linear_extrude(io_height)
{
difference()
{
pdms_slab(distance_output_port_from_center);
protoplast_io(args);
}
}
}
Ok, I will try that next. Do you think this will mitigate the issue, or just confirm that it is most likely z-fighting?