# Having a hard time visualizing LazySets.HPolyHedron & HPolytope

**URL:** <https://discourse.julialang.org/t/having-a-hard-time-visualizing-lazysets-hpolyhedron-hpolytope/52721>\
**Category:** Visualization\
**Created:** [January 2, 2021, 1:39am UTC](https://discourse.julialang.org/t/having-a-hard-time-visualizing-lazysets-hpolyhedron-hpolytope/52721 "2021-01-02T01:39:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adropintheriver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adropintheriver/32/20634_2.png) [@adropintheriver](https://discourse.julialang.org/u/adropintheriver)\
**Post date:** [January 2, 2021, 1:39am UTC](https://discourse.julialang.org/t/having-a-hard-time-visualizing-lazysets-hpolyhedron-hpolytope/52721/1 "2021-01-02T01:39:31Z")

</div>

Q.1 what is the right way to render the following  
a. HPolyhedron/HPolytope  
b. Set of points (3D)

so the code below from Polyhedra docs

```julia
A = rand(HPolyhedron,dim=3)

HPoly = Polytope(constraints_list(A))
remove_redundant_constraints!(HPoly)
P_poly = polyhedron(HPoly)
P_poly_mesh = Mesh(P_poly)
pm = Polyhedra.Mesh(P_poly)

```

I’ve also tried LazySets.Plot3d but could not get it to work, eventually i would want to read a few .stl files using FileIO and build an interactive 3D view with contents from one or many .stl files

---

<div class="post-metadata">

**Author:** ![mforets](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mforets/32/298_2.png) [@mforets](https://discourse.julialang.org/u/mforets)\
**Post date:** [January 11, 2021, 6:10pm UTC](https://discourse.julialang.org/t/having-a-hard-time-visualizing-lazysets-hpolyhedron-hpolytope/52721/3 "2021-01-11T18:10:28Z")

</div>

About plotting sets in 3D, I’ve used Makie + Polyhedra (that’s what `LazySets.plot3d` boils down to, after computing the constraint representation of the set). It is of course easier to just plot a set of points in 3D (you can use `Plots`). I saw your similar question in [Error using LazySets.plot3d - #3 by adropintheriver](https://discourse.julialang.org/t/error-using-lazysets-plot3d/52994/3) and I presume the problem is related to package versions installed.
