geom3d
area
compute the area of a triangle, or the surface area of a sphere or a regular polyhedron
Calling Sequence
Parameters
Description
Examples
area(obj)
obj
-
triangle, sphere, or regular polyhedron
The routine area returns the area or surface area of the input object which is a triangle, a sphere, or a regular polyhedron.
The command with(geom3d,area) allows the use of the abbreviated form of this command.
with⁡geom3d:
Define triangle ABC with vertices A, B and C
triangle⁡ABC,point⁡A,0,0,0,point⁡B,2,0,0,point⁡C,1,3,0:
Find the area of ABC
area⁡ABC
3
Define an icosahedron with center o(1,2,5) and the radius of the circum-sphere is 1
icosahedron⁡ico,point⁡o,1,2,5,1
ico
Find the surface area of ico
area⁡ico
4⁢3⁢512+52
draw⁡ico,style=patch,lightmodel=light4,orientation=−136,56,title=icosahedron
See Also
geom3d[volume]
Download Help Document