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

How to plot a 3D-object type in GeometryBasics such as Tetrahedron #3705

Open
zkk960317 opened this issue Mar 15, 2024 · 1 comment
Open
Labels
enhancement Feature requests and enhancements GeometryBasics

Comments

@zkk960317
Copy link

zkk960317 commented Mar 15, 2024

Feature description

using GeometryBasics
using GLMakie
result = GeometryBasics.Mesh(Point3{Float64}[(0.0, 0.0, 0.0), (2.0, 0.0, 0.0),
    (2.0, 2.0, 2.0), (0.0, 2.0, 0.0)],[TetrahedronFace(1,2,3,4)])
GLMakie.mesh(result, color=(:blue, 0.5), transparency=true)
GLMakie.wireframe(result)

The above code outputs the undesirable result shown below. It only draws two faces or four lines. mesh or wireframe interprets a 3D solid as a 3D surface. Is there a way to draw the volume of the 3d solid object, or plot all its surfaces and all its boundary lines.
image
image

@zkk960317 zkk960317 added the enhancement Feature requests and enhancements label Mar 15, 2024
@ffreyer
Copy link
Collaborator

ffreyer commented Aug 27, 2024

Poking JuliaGeometry/GeometryBasics.jl#173 for later reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests and enhancements GeometryBasics
Projects
None yet
Development

No branches or pull requests

2 participants