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.
withgeom3d:
Define triangle ABC with vertices A, B and C
triangleABC,pointA,0,0,0,pointB,2,0,0,pointC,1,3,0:
Find the area of ABC
areaABC
3
Define an icosahedron with center o(1,2,5) and the radius of the circum-sphere is 1
icosahedronico,pointo,1,2,5,1
ico
Find the surface area of ico
areaico
43512+52
drawico,style=patch,lightmodel=light4,orientation=−136,56,title=icosahedron
See Also
geom3d[volume]
Download Help Document