# Drawing a surface boundary around scattered points

**URL:** https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785
**Category:** General Usage
**Tags:** question, plotting
**Created:** [February 20, 2022, 6:05am UTC](https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785 "2022-02-20T06:05:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gojira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gojira/32/31180_2.png) [@gojira](https://discourse.julialang.org/u/gojira)
#### Post date: [February 20, 2022, 6:05am UTC](https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785/1 "2022-02-20T06:05:07Z")

</div>

I was wondering if there was a way to collect all of the boundary points to a 3D scatter plot? All of the points are generated randomly. I guess more specifically if I have a structure that has a field with 100 data points how could I collect the boundary points from this field?

---

<div class="post-metadata">

### Author: ![vettert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vettert/32/30599_2.png) [@vettert](https://discourse.julialang.org/u/vettert)
#### Post date: [February 20, 2022, 6:22am UTC](https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785/2 "2022-02-20T06:22:36Z")

</div>

Boundary can mean many things. Are you looking for the points on the convex hull of this group of points?

---

<div class="post-metadata">

### Author: ![gojira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gojira/32/31180_2.png) [@gojira](https://discourse.julialang.org/u/gojira)
#### Post date: [February 20, 2022, 6:31am UTC](https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785/3 "2022-02-20T06:31:13Z")

</div>

Thank you for your reply! Yes, I do mean the convex boundary.

---

<div class="post-metadata">

### Author: ![vettert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vettert/32/30599_2.png) [@vettert](https://discourse.julialang.org/u/vettert)
#### Post date: [February 20, 2022, 7:43am UTC](https://discourse.julialang.org/t/drawing-a-surface-boundary-around-scattered-points/76785/4 "2022-02-20T07:43:40Z")

</div>

This could help:  
[https://juliareach.github.io/LazySets.jl/v1.11/man/convex\_hulls.html#Higher-dimensional-convex-hull-1](https://juliareach.github.io/LazySets.jl/v1.11/man/convex_hulls.html#Higher-dimensional-convex-hull-1)

You could also use most triangulation methods for this; for example Triangulate.jl  
(but check whether licensing constraints are fine for your purpose)
