PolyhedronOperations`
PolyhedronOperations`

Truncate

As of Version 12.0, all the functionality of the PolyhedronOperations package is built into the Wolfram System. >>

Truncate[expr]

truncates each edge of each polygon in graphics expression expr.

Truncate[expr,ratio]

truncates to the specified ratio of the edge length.

Details

  • To use Truncate, you first need to load the Polyhedron Operations Package using Needs["PolyhedronOperations`"].
  • Truncate[expr] uses a truncation ratio of 3/10.
  • Truncate[PolyhedronData[poly]] creates a truncated polyhedron.
  • ratio must be between 0 and 1/2.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Truncate works on graphics primitives:

In[2]:=
Click for copyable input
Out[2]=

Truncate also works on graphics objects:

In[3]:=
Click for copyable input
Out[3]=