v0.5.4
Pre-release
Pre-release
v0.5.4, Oct 3 2022
- Morphoview now supports text rendering. The
graphics
,plot
andpovray
modules have been updated to support this, including newScaleBar
andplotmeshlabels
. - Meshtools extensively revised, including new
MeshPruner
class to coarsen meshes. 3D refinement now supported. Improved refinement of Selections. - Variadic functions can accept variable numbers of parameters.
- New
System
class will become a repository for new system-related functionality. - Many bugfixes.
Detailed notes:
Meshtools
The meshtools
module has been extensively revised with many new features:
- New
MeshPruner
class added that enables coarsening of meshes, analogous toMeshRefiner
. - Refinement of 3D elements.
- Refinement of selections is improved.
- Bugfixes for
MeshRefiner
andMeshMerge
to prevent duplicate elements being generated in some circumstances.
Text
The morphoview
application now supports text rendering. A number of modules have been updated to take advantage of this:
plot
now providesScaleBar
objects that are useful forplotfield
, as well asplotmeshlabels
to label a mesh with element ids.graphics
now provides aText
class for textual elements, and has some performance improvements.color
now provides a number of newColorMap
s:ViridisMap
,InfernoMap
,MagmaMap
andPlasmaMap
, all of which are more friendly for people with color vision deficiency.
Variadic functions
You can now create functions that accept a variable number of parameters. Arguments passed to a function can be accessed as a List
.
fn func(x, ...v) {
for (a in v) print a
}
Other improvements:
- New
VolumeIntegral
module to complementAreaIntegral
andLineIntegral
. - Internal improvements to the morpho virtual machine.
- A
System
class to enable you to get platform information. - Numerous bugfixes.
- Numerous improvements to the documentation.
- Improvements to the
povray
module. - New examples for
plot
module. - You can now translate the view in
morphoview
by right click and dragging or using alt-arrow keys.