Skip to content

Commit 47900ac

Browse files
committed
Update to 1.0.2
1 parent e9a5459 commit 47900ac

3 files changed

Lines changed: 35 additions & 7 deletions

File tree

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "VPLDocs"
22
uuid = "19246b20-85cd-4f94-a989-28bb6828320f"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = ["Alejandro Morales Sierra <alejandro.moralessierra@wur.nl> and contributors"]
55

66
[workspace]
@@ -22,12 +22,12 @@ VirtualPlantLab = "b977ecfa-1b9a-418d-909d-4ebe565736ce"
2222
[compat]
2323
Ecophys = "0.1.1"
2424
PlantBiophysics = "0.17.0"
25-
PlantGeomPrimitives = "1.0.1"
26-
PlantGeomTurtle = "1.0.0"
25+
PlantGeomPrimitives = "1.0.3"
26+
PlantGeomTurtle = "1.0.1"
2727
PlantGraphs = "1.0.0"
2828
PlantRayTracer = "1.0.1"
2929
PlantSimEngine = "0.14.1"
3030
PlantViz = "1.0.1"
3131
SkyDomes = "1.0.1"
32-
VirtualPlantLab = "1.0.1"
32+
VirtualPlantLab = "1.0.2"
3333
julia = "1.12"

docs/src/NEWS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ in this website for convenience but do not keep track of updates to those
88
packages, so please check their (more detailed) individual documentation
99
sites and Github repositories.
1010

11+
# VPL 1.0.2
12+
13+
- VPL now supports creating spheres, spheroids and ellipsoids with the primitive
14+
constructors `Ellipsoid` and `Ellipsoid!`. Please consult documentation for details.
15+
16+
# Ecophys 0.1.2
17+
18+
Bug fixes and improve test suite (output will change stomatal conductance, gs, when using both C3 and C4 models, no changes to API).
19+
20+
- Switch to solving for Ci and then calculate gs inside the analytical functions of C3 and C4 photosynthesis instead of solving for gs directly (this was causing wrong values of gs).
21+
22+
- Add a bunch of tests to better verify several properties of response curves of CO2 assimilation and stomatal conductance.
23+
1124
# VPL 1.0.1
1225

1326
- All functions across all VPLcore packages and SkyDomes.jl now use angles in

docs/src/manual/Geometry/Primitives.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The lower is number n, cicle base shape will be more rough (e.g., n = 20, base s
9898
The higher is number n, cicle base shape will be more smooth (e.g., n = 80, base shape is a circle).
9999
The same analogy also apply to ellipse; see above, in this case n = 5 the shape is a pentagon, and n = 30 the shape is elipsoidal.
100100

101-
## Cylinder
101+
### Cylinder
102102

103103
Solid version
104104

@@ -116,7 +116,7 @@ p = HollowCylinder!(turtle; length = 1.0, width = 1.0, height = 1.0, n = 80, col
116116
render(Mesh(turtle), wireframe = true)
117117
```
118118

119-
## Frustum
119+
### Frustum
120120

121121
Solid version
122122

@@ -134,7 +134,7 @@ p = HollowFrustum!(turtle; length = 1.0, width = 1.0, height = 1.0, ratio = 0.5,
134134
render(Mesh(turtle), wireframe = true)
135135
```
136136

137-
## Cone
137+
### Cone
138138

139139
Solid version
140140

@@ -151,3 +151,18 @@ turtle = Turtle()
151151
p = HollowCone!(turtle; length = 1.0, width = 1.0, height = 1.0, n = 80, colors = rand(RGBA))
152152
render(Mesh(turtle), wireframe = true)
153153
```
154+
155+
## Ellipsoid
156+
157+
An ellipsoid is the generalization of a sphere where every radius can be different. Thus we can
158+
create spheres, spheroids and ellipsoids with the same constructor.
159+
The meshing is done by creating quad tiles (which are then divided into two triangles) defined
160+
by fixed intervals of latitude and longitude. The user specifies the number of fixed intervals to
161+
be use (`n`, assumed equal for both types of angles). This means that the total number of triangles
162+
is given by the formula `2n(n - 1)`.
163+
164+
```julia
165+
turtle = Turtle()
166+
p = Ellipsoid!(turtle; length = 1.0, width = 1.0, height = 1.0, n = 20, colors = rand(RGBA))
167+
render(Mesh(turtle), wireframe = true)
168+
```

0 commit comments

Comments
 (0)