5
$\begingroup$

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?

$\endgroup$
4
  • 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$ Commented Jan 26, 2021 at 17:36
  • $\begingroup$ @J.M. 1) Yes. 2) Yes. $\endgroup$ Commented Jan 26, 2021 at 17:41
  • $\begingroup$ @J.M. Awesome! Its sibling ConvexHullRegion solves my problem completely! $\endgroup$ Commented Jan 26, 2021 at 17:54
  • 1
    $\begingroup$ Please answer your own question, then. ;) $\endgroup$ Commented Jan 26, 2021 at 17:57

1 Answer 1

5
$\begingroup$

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

Result

$\endgroup$
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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