So this is a noob question, but I hope to learn something.
If I take two concentric rectangles with rounded corners and make a surface between them and then extrude it to get a rectangular ring, it looks great in Rhino as a baked brep, but when I Export it as an stl file, the internal corners get completely messed up,
Alternatively, if I use the two rectangles to make extruded blocks, and then use Solid Difference to cut one out of the other, then the resulting baked brep looks very similar (although with slight difference in how the internal corners are presented), but the Exported stl is correct.
Clearly I have a workaround here, but I would like to understand the principles involved in using trimmed surfaces and why I keep getting strange effects from rounded rectangles when exporting them as stl files.
Whoosh! Now that is not something I would have thought of for myself! Many thanks!
So the conclusion is that either technique for generating the shape is good, but that the stl export may generate quite different output for the two if you get this wrong.
Looking up the parameter, google tells me:
For standard Rhino .stl exports, it is best to set the Maximum aspect ratio to 0 (disabled) or a value between 4 and 7. Setting it to 0 removes restrictions, yielding the most evenly distributed triangles, while a value like 4 to 7 restricts long, skinny triangles. [1, 2, 3]
Recommended Best Practices
Disable it: For the cleanest mesh generation, clear this setting by setting it to 0.
Constraining narrow areas: If your mesh is generating poorly in specific narrow areas, use a value of 4 to 7.
so I see why your fix works for me. Interesting stuff!