An example of a frustum of a hexagonal pyramid (a.k.a. hexagonal frustum) from Wikipedia:

An example of hexagonal frustum

Is there a quick way to build one, given the Region of two $n$-sided polygon bases?

  • 3
    $\begingroup$ Are the two hexagons 1. already embedded in 3D; and 2. always guaranteed to be parallel? At the very least, one possibility is to use ConvexHullMesh[] on the points comprising the two faces. $\endgroup$
    – J. M.'s torpor
    Jan 26 at 17:36
  • $\begingroup$ @J.M. 1) Yes. 2) Yes. $\endgroup$ Jan 26 at 17:41
  • $\begingroup$ @J.M. Awesome! Its sibling ConvexHullRegion solves my problem completely! $\endgroup$ Jan 26 at 17:54
  • 1
    $\begingroup$ Please answer your own question, then. ;) $\endgroup$
    – J. M.'s torpor
    Jan 26 at 17:57

Solution comes from @J.M.'s ennui. Example:

pts1 = Append[0.] /@ N[CirclePoints[2, 6]]
pts2 = Append[3.5] /@ N[CirclePoints[{1, 0}, 1, 6]]
ConvexHullRegion[pts1~Join~pts2] // Region


  • $\begingroup$ Nicely done. $\phantom{}$ $\endgroup$
    – J. M.'s torpor
    Jan 26 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.