Skip to content

Commit

Permalink
Redirect documentation to website
Browse files Browse the repository at this point in the history
  • Loading branch information
AleMorales committed Nov 9, 2023
1 parent 4f03862 commit f3a56fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 134 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/Docs.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# PlantGeomPrimitives

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://VirtualPlantLab.github.io/PlantGeomPrimitives.jl/stable/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://VirtualPlantLab.github.io/PlantGeomPrimitives.jl/dev/)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://virtualplantlab.com/stable/api/geometry/)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://virtualplantlab.com/dev/api/geometry/)
[![CI](https://github.com/VirtualPlantLab/PlantGeomPrimitives.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/VirtualPlantLab/PlantGeomPrimitives.jl/actions/workflows/CI.yml)
[![Coverage](https://codecov.io/gh/VirtualPlantLab/PlantGeomPrimitives.jl/branch/master/graph/badge.svg?token=LCZHPERHUN)](https://codecov.io/gh/VirtualPlantLab/PlantGeomPrimitives.jl)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
Expand Down
117 changes: 12 additions & 105 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,117 +1,24 @@

# Geometry
# PlantGeomPrimitives.jl

```@meta
CurrentModule = PlantGeomPrimitives
```

## Scenes
## API documentation

```@docs
Scene
add!
```@autodocs
Modules = [PlantGeomPrimitives]
Public = true
Private = false
```

```@docs
colors(scene::Scene)
mesh(scene::Scene)
materials(scene::Scene)
```

## 3D vectors

```@docs
Vec
O(::Type{FT} = Float64) where FT
X(::Type{FT} = Float64) where FT
Y(::Type{FT} = Float64) where FT
Z(::Type{FT} = Float64) where FT
X(s::FT) where FT
Y(s::FT) where FT
Z(s::FT) where FT
```

## Geometry primitives

### Triangle

```@docs
Triangle(;length::FT = 1.0, width::FT = 1.0) where FT
```

### Rectangle

```@docs
Rectangle(;length::FT = 1.0, width::FT = 1.0) where FT
```

### Trapezoid

```@docs
Trapezoid(;length::FT = 1.0, width::FT = 1.0, ratio::FT = 1.0) where FT
```

### Ellipse

```@docs
Ellipse(;length::FT = 1.0, width::FT = 1.0 , n::Int = 20) where FT
```

### Hollow cylinder

```@docs
HollowCylinder(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, n::Int = 40) where FT
SolidCylinder(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, n::Int = 80) where FT
```

### Hollow cone

```@docs
HollowCone(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, n::Int = 20) where FT
SolidCone(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, n::Int = 40) where FT
```

### Cube

```@docs
SolidCube(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0) where FT
HollowCube(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0) where FT
```

### Solid frustum

```@docs
SolidFrustum(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, ratio::FT = 1.0, n::Int = 80) where FT
HollowFrustum(;length::FT = 1.0, width::FT = 1.0, height::FT = 1.0, ratio::FT = 1.0, n::Int = 40) where FT
```

### Bounding box

```@docs
BBox(m::Mesh{VT}) where VT <: Vec{FT} where FT
BBox(pmin::Vec{FT}, pmax::Vec{FT}) where FT
```

## Rotations, scaling and translations

```@docs
scale!(m::Mesh, vec::Vec)
rotatex!(m::Mesh, θ)
rotatey!(m::Mesh, θ)
rotatez!(m::Mesh, θ)
rotate!(m::Mesh; x::Vec{FT}, y::Vec{FT}, z::Vec{FT}) where FT
translate!(m::Mesh, v::Vec)
```
## Un-exported

## Other mesh-related methods
Private functions, types or constants from `PlantGeomPrimitives`. These are not exported, so you need to prefix the function name with `PlantGeomPrimitives.` to access them:

```@docs
Mesh(::Type{FT} = Float64) where FT <: AbstractFloat
Mesh(nt, nv = nt*3, ::Type{FT} = Float64) where FT <: AbstractFloat
ntriangles(mesh::Mesh)
nvertices(mesh::Mesh)
area(m::Mesh)
areas(m::Mesh)
load_mesh(filename)
save_mesh(mesh; fileformat = STL_BINARY, filename)
```@autodocs
Modules = [PlantGeomPrimitives]
Public = false
Private = true
```

0 comments on commit f3a56fb

Please sign in to comment.