17th-century Italian mathematician. The Principle can be stated like this: If
you take a series of slices through two objects parallel to the base, you can
compare the area of the cross-section where they were cut. If, for every pos-
sible parallel cut, the two objects have equal-area cross-sections, then the
volumes of those objects are also equal, even if the shapes of the cross-sec-
tions are different.
MODIFYING THE MODELS
The model prism.scad and pyramid.scad have these variables:
• v = 50000;
• volume in cubic mm (cc * 1000)
• h = 30;
• height in mm
• n = 6;
• number of sides (not including top/bottom); use 300 to get a
cylinder
• wall = 1;
• Wall thickness, in mm; should be about twice the line width
for your printer. If wall = 0, the model will output the
solid model. If wall is greater than zero, the pieces print
out hollow and open, with an interior volume equal to the
parameter v.
• lid = false;
• Changing this parameter to “true” creates an additional
removable lid that fits over the open end of the part. Note
that these lids tend to add quite a bit to the print time of the
part. (Default is no lid.) This variable is ignored if wall = 0.
• oset = [0, 0]; (right prism or pyramid), or
• oset = [30, 0]; (oblique prism shown here - any nonzero values
work)
• The x, y coordinate offset of the top of the prism relative to
the bottom
In addition, the pyramid.scad model allows you to add a little ball on the top
to make it easier to handle. The ball parameter specifies the radius. If ball
is left set to its default value of zero, the point will still be rounded-off with a
radius equal to the wall value.
Create a triangular (n = 3), rectangular (n = 4) and hexagonal (n = 6)
prism, all with the same volume. Make one of them oblique. Try the exercise
of filling them with salt one after each other to see if they are the same as
Make: Geometry 157
156 Chapter 8: Volume, Density, and Displacement
Geometry_Chapter10_v15.indd 156Geometry_Chapter10_v15.indd 156 6/23/2021 9:10:05 AM6/23/2021 9:10:05 AM