-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Shapeshift wiki!
Truncation is an operation that cleaves vertices, leaving new faces behind. Truncation can cleave vertices to varying degrees. This is represented by a fractional argument of type sympy.Rational
. A value of 1 signifies a "full" truncation, also called rectification. This allows for adjacent new faces to touch at a vertex. Then a value of 0 would essentially be no truncation.
In addition to amount truncated, there are two methods for deciding on the location of the meeting vertex of a rectified polyhedron. The default implementation uses the intersections of the edges to the polyhedron's midsphere as the vertices for the new faces. This method allows for more centered, and usually more visually appealing polyhedra. However, not every polyhedron has a midsphere that can intersect with every edge. For these, we have to use the second, simpler implementation, which truncates with respect to the center of the edges.
A special case of truncation where the newly cleaved faces touch at a vertex. Polyhedron.rectify()
would be equivalent to Polyhedron.truncate(fraction=1)
.