# \#geometrybasics

**URL:** https://discourse.julialang.org/tag/geometrybasics/736.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to increase number of facets for cylinder plotting in Makie](https://discourse.julialang.org/t/how-to-increase-number-of-facets-for-cylinder-plotting-in-makie/120984)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 1:55am UTC](https://discourse.julialang.org/t/how-to-increase-number-of-facets-for-cylinder-plotting-in-makie/120984 "2024-10-07T01:55:42Z")

</div>

I am plotting a cylinder in makie like so: julia\> cyl = GeometryBasics.Cylinder(GeometryBasics.Point(0.0,0.0,0.0),GeometryBasics.Point(0.0,1.0,0.0),.5) Cylinder3{Float64}(\[0.0, 0.0, 0.0\], \[0.0, 1.0, 0.0\], 0.5) julia\> m…

---

## [Putting obj files on the GPU with Metal.jl](https://discourse.julialang.org/t/putting-obj-files-on-the-gpu-with-metal-jl/118416)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 1:58pm UTC](https://discourse.julialang.org/t/putting-obj-files-on-the-gpu-with-metal-jl/118416 "2024-08-20T13:58:54Z")

</div>

How do I bring mesh from obj files onto the GPU? I am trying to do some GPU manipulation of meshes from .obj files. I was testing my code with the stanford bunny obj file, which I imported into a GeometryBasics Mesh usi…

---

## [Makie Basic Overloads for Composite Type](https://discourse.julialang.org/t/makie-basic-overloads-for-composite-type/103757)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [September 11, 2023, 9:25pm UTC](https://discourse.julialang.org/t/makie-basic-overloads-for-composite-type/103757 "2023-09-11T21:25:26Z")

</div>

I have a simple composite type I use to keep track of a 3D vector that looks like this. abstract type AbstractVec{T\<:Number} end " xyzVecT is the object definition to contain the cartesian information " struct xyzVecT{…

---

## [Does GeometryBasics work with SVectors?](https://discourse.julialang.org/t/does-geometrybasics-work-with-svectors/95327)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 1:19pm UTC](https://discourse.julialang.org/t/does-geometrybasics-work-with-svectors/95327 "2023-02-28T13:19:06Z")

</div>

I tried to construct a rectangle from boundary points but it doesn’t seem to recognize SVectors.

---

## [How to create the rotated cube with Makie.jl and GeometryBasics.jl](https://discourse.julialang.org/t/how-to-create-the-rotated-cube-with-makie-jl-and-geometrybasics-jl/93720)

<div class="topic-metadata">

**Author:** [@Mizu49](https://discourse.julialang.org/u/Mizu49)\
**Replies:** 3\
**Last updated:** [January 29, 2023, 12:44pm UTC](https://discourse.julialang.org/t/how-to-create-the-rotated-cube-with-makie-jl-and-geometrybasics-jl/93720 "2023-01-29T12:44:13Z")

</div>

I want to create the rotated cube with Makie.jl and GeometryBasics.jl. I made the following code, but it did not work well. using GLMakie, GeometryBasics # rotation matrix theta = pi/4 C = \[ 1 0 …

---

## [How to scale all the vertices in a GeometryBasics.Mesh?](https://discourse.julialang.org/t/how-to-scale-all-the-vertices-in-a-geometrybasics-mesh/93153)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 5\
**Last updated:** [January 20, 2023, 1:37pm UTC](https://discourse.julialang.org/t/how-to-scale-all-the-vertices-in-a-geometrybasics-mesh/93153 "2023-01-20T13:37:24Z")

</div>

I’m attempting to port Steven De Keninck’s 3D slicer example application (listed here and demonstrated here) from JavaScript to Julia. The example application loads a 3D model of a bunny (from https://enkimute.github.io/…

---

## [Polygon exterior and interiors](https://discourse.julialang.org/t/polygon-exterior-and-interiors/65190)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 5:25pm UTC](https://discourse.julialang.org/t/polygon-exterior-and-interiors/65190 "2021-07-23T17:25:17Z")

</div>

Hi, I’m using Julia’s GeometryBasics package, and in particular the Polygon class. I can create a square polygon by p=Polygon(\[ \[0,0\],\[1,0\],\[1,1\],\[0,1\],\[0,0\] \]) where p.exterior is a 4-element LineString object contain…

---

## [GeometryBasics Rect](https://discourse.julialang.org/t/geometrybasics-rect/64779)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [July 17, 2021, 2:42am UTC](https://discourse.julialang.org/t/geometrybasics-rect/64779 "2021-07-17T02:42:40Z")

</div>

Rect says Construct a HyperRectangle enclosing all points. which it does, but I think there is a better rectangle for this job than the one returned. julia\> Rect(Circle(Point((0.,0.)), 1.)) Rect2D{Float64}(\[-1.0, -1…
