Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frustums with polygonal bases #592

Closed
cserteGT3 opened this issue Sep 12, 2023 · 1 comment
Closed

Frustums with polygonal bases #592

cserteGT3 opened this issue Sep 12, 2023 · 1 comment
Labels
enhancement New feature or request feature help wanted Extra attention is needed

Comments

@cserteGT3
Copy link
Contributor

As discussed in #586 we should discover the options for implementing polygon/Ngon based frustums. I found these Wolfram MathWorld links useful:

@juliohm juliohm added enhancement New feature or request help wanted Extra attention is needed feature labels Sep 12, 2023
@juliohm
Copy link
Member

juliohm commented Jul 20, 2024

This is already possible via discretization of FrustumSurface:

f = rand(FrustumSurface)
viz(f)

# frustum with pentagon as the basis
m = discretize(f, RegularDiscretization(5, 2))
viz(m, showsegments=true)

image
image

The particular case with triangle basis is also known as Wedge and is already implemented as a Polytope.

@juliohm juliohm closed this as completed Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants