Computer Graphics-2D and 3D Shapes
Computer Graphics-2D and 3D Shapes
What is 2D Shapes?
2D Shapes
A 2D shape is a flat shape that has only two dimensions – length and
width, with no thickness or depth, that is the reason why it is called a
two-dimensional shape. For example, a sheet of paper is two-
dimensional in shape. It consists of a length and a width but does not
have any depth or height. Some common 2D shapes are squares,
rectangles, triangles, circles, and hexagons. In comparison to these, a
3D (three-dimensional) shape has three dimensions – length, width, and
height. For example, a dice is three-dimensional because it consists of
a length, a width, and a height. Some common 3D shapes are cuboids,
cones, pyramids, and cylinders. Let us learn more about two-dimensional
shapes in this note.
2D Shapes 3D Shapes
Definition 2D shapes are flat and have only two A 3D shape has 3 dimensions of
dimensions of length and width with no length, width, and height.
thickness or depth.
Examples Rectangle, square, circle, triangle, etc. Cylinder, sphere, cube, prism, et
Properties of 2D Shapes
2-D shapes are flat and can be drawn on a sheet of paper. There are
different types of regular and irregular 2D shapes like a circle,
triangle, square, rectangle, pentagon, and hexagon. Let us learn about a
few of them along with their properties.
3D Shapes
3D shapes are solids that consist of 3 dimensions - length, breadth
(width), and height. 3D in the word 3D shapes means three-dimensional.
Every 3D geometric shape occupies some space based on its dimensions
and we can see many 3D shapes all around us in our day-to-day life.
Some examples of 3D shapes are cube, cuboid, cone, and cylinder.
Types of 3D Shapes
There are many 3 dimensional shapes (3D shapes) that have different
bases, volumes, and surface areas. Let us discuss each one of them.
Sphere
Sphere - 3D shape
Cube and cuboid are three-dimensional shapes (3D shapes) that have
the same number of faces, vertices, and edges. The main difference
between a cube and a cuboid is that in a cube, all its six faces are
squares and, in a cuboid, all its six faces are rectangles. A cube and a
cuboid occupy different volumes and have different surface areas. The
length, width, and height of a cube are the same, while for a cuboid,
length, height, and width are different.
Cylinder
A cylinder is a 3D shape that has two circular faces, one at the top and
one at the bottom, and one curved surface. A cylinder has a height and
a radius. The height of a cylinder is the perpendicular distance
between the top and bottom faces. Some important features of a
cylinder are listed below.
The shape stays the same from the base to the top.
A cylinder in which both the circular bases lie on the same line is called
a right cylinder. A cylinder in which one base is placed away from
another is called an oblique cylinder.
Based on how the apex is aligned to the center of the base, a right
cone or an oblique cone is formed.
A cone in which the apex (or the pointed tip) is perpendicular to the
base is called a right circular cone. A cone in which the apex lies
anywhere away from the center of the base is called an oblique cone.
A cone has a height and a radius. Apart from the height, a cone has a
slant height, which is the distance between the apex and any point on
the circumference of the circular base of the cone.
Cone - a 3d geometric shape
Torus
Pyramid
Prisms
Prisms are solids with identical polygon ends and flat parallelogram
sides. Some of the characteristics of a prism are:
Prisms are also broadly classified into regular prisms and oblique
prisms.
3D shapes - Types of Prisms
Now, let us learn about 3-dimensional shapes that are platonic solids.
Polyhedrons
Properties of 3D Shapes